aboutsummaryrefslogtreecommitdiff
path: root/src/js/ui/sections/myPageSection.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-03 12:15:31 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-03 12:15:31 +0200
commitad0f59fbc2dea546d1e33e2f4ee515827e698eed (patch)
treea0931bb97a482fa087d78a2218453f16c24a8a3c /src/js/ui/sections/myPageSection.js
parentfb2428fb2eff87150d40d84b83c66ccdd7ea47b3 (diff)
downloadarching-kaos-web-ui-ad0f59fbc2dea546d1e33e2f4ee515827e698eed.tar.gz
arching-kaos-web-ui-ad0f59fbc2dea546d1e33e2f4ee515827e698eed.tar.bz2
arching-kaos-web-ui-ad0f59fbc2dea546d1e33e2f4ee515827e698eed.zip
Separating content from layout
Diffstat (limited to 'src/js/ui/sections/myPageSection.js')
-rw-r--r--src/js/ui/sections/myPageSection.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/js/ui/sections/myPageSection.js b/src/js/ui/sections/myPageSection.js
index 4976691..5dbd2ab 100644
--- a/src/js/ui/sections/myPageSection.js
+++ b/src/js/ui/sections/myPageSection.js
@@ -20,11 +20,10 @@ export function myPageSection()
{ element: "h2", innerText: "My Page" }
]
};
- var myPageSection = {
+ var content = {
element: "div",
- id: "mypage-section",
+ className: "content",
innerHTML: [
- whereAmI,
{ element: "h2", innerText: "My page" },
{ element: "button", id: "stellar-freigher-connect-address-button", onclick:"connect()", innerText:"Connect with Freighter wallet" },
{ element: "div", id:"my-news", innerHTML:[
@@ -41,6 +40,14 @@ export function myPageSection()
]}
]
};
+ var myPageSection = {
+ element: "div",
+ id: "mypage-section",
+ innerHTML: [
+ whereAmI,
+ content
+ ]
+ };
makeElement(myPageSection, document.querySelector('.main'));
}