From ad0f59fbc2dea546d1e33e2f4ee515827e698eed Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 3 Dec 2024 12:15:31 +0200 Subject: Separating content from layout --- src/js/ui/sections/myPageSection.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/js/ui/sections/myPageSection.js') 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')); } -- cgit v1.2.3