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/statsSection.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/js/ui/sections/statsSection.js') diff --git a/src/js/ui/sections/statsSection.js b/src/js/ui/sections/statsSection.js index 115cd68..c88bfe5 100644 --- a/src/js/ui/sections/statsSection.js +++ b/src/js/ui/sections/statsSection.js @@ -20,11 +20,10 @@ export function statsSection() { element: "h2", innerText:"Stats"} ] }; - var statsSection = { - element: 'div', - id: "stats-section", + var content = { + element : "div", + className: "content", innerHTML: [ - whereAmI, { element: "div", className: "available-networks", innerHTML: [ { element: "h3", innerText: "Networks" }, { element: "details", className: "stellar-network", innerHTML:[ @@ -39,6 +38,14 @@ export function statsSection() ]} ] }; + var statsSection = { + element: 'div', + id: "stats-section", + innerHTML: [ + whereAmI, + content + ] + }; makeElement(statsSection, document.querySelector('.main')); } // @license-end -- cgit v1.2.3