diff --git a/static/css/components/layout.css b/static/css/components/layout.css index be66ab0..8238fa6 100644 --- a/static/css/components/layout.css +++ b/static/css/components/layout.css @@ -27,8 +27,3 @@ body.with-sidebar { color: var(--text-muted); margin-bottom: 1.5em; } - -/* Layout adjustments */ -.with-sidebar { - padding-top: 3rem; -} \ No newline at end of file diff --git a/static/css/components/topbar.css b/static/css/components/topbar.css index c5af00d..3882316 100644 --- a/static/css/components/topbar.css +++ b/static/css/components/topbar.css @@ -1,16 +1,13 @@ /* Top bar styles */ .top-bar { - background-color: #333; + background-color: var(--sidebar-bg); color: white; padding: 0.5rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 1000; + margin-bottom: 1rem; + border-radius: 8px; } .top-bar-title { diff --git a/static/css/style.css b/static/css/style.css index edcdb10..949a1bb 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -15,15 +15,6 @@ body { color: var(--text-color); } -body.with-sidebar { - display: flex; -} - -.main-content { - flex: 1; - padding: 20px 40px; -} - .main-content h1 { color: var(--primary-red); font-size: 2.5em; @@ -101,11 +92,6 @@ body.with-sidebar { opacity: 0.9; } -/* Layout adjustments */ -.with-sidebar { - padding-top: 3rem; -} - .setup-container { display: flex; justify-content: center; diff --git a/static/js/app.js b/static/js/app.js index c4cd764..e24a025 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -36,8 +36,8 @@ function formatDate(dateStr) { } function renderFeedEntries(entries) { - const mainContent = document.querySelector('.main-content'); - mainContent.innerHTML = ''; + const feedContent = document.querySelector('#feed-content'); + feedContent.innerHTML = ''; entries.forEach(entry => { const entryDiv = document.createElement('article'); @@ -135,7 +135,7 @@ function renderFeedEntries(entries) { entryDiv.appendChild(title); entryDiv.appendChild(meta); entryDiv.appendChild(summary); - mainContent.appendChild(entryDiv); + feedContent.appendChild(entryDiv); }); } diff --git a/templates/index.html.tera b/templates/index.html.tera index 31fc2f7..d0f7d57 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -8,18 +8,6 @@
-