Compare commits
4 Commits
29b9a73012
...
eb69f4e952
Author | SHA1 | Date | |
---|---|---|---|
|
eb69f4e952 | ||
|
705929ee47 | ||
|
ed0ec66138 | ||
|
0fc97111a4 |
@ -5,30 +5,41 @@ body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: var(--dark-bg);
|
||||
color: var(--text-color);
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body.with-sidebar {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
.main-content-area {
|
||||
flex: 1;
|
||||
padding: 20px 40px;
|
||||
min-width: 0; /* Prevents flex item from overflowing */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.main-content h1 {
|
||||
#main-content {
|
||||
flex: 1;
|
||||
padding: 1rem;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: none; /* Firefox */
|
||||
-ms-overflow-style: none; /* IE and Edge */
|
||||
}
|
||||
|
||||
#main-content::-webkit-scrollbar {
|
||||
display: none; /* Chrome, Safari and Opera */
|
||||
}
|
||||
|
||||
#main-content h1 {
|
||||
color: var(--primary-red);
|
||||
font-size: 2.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.main-content p {
|
||||
#main-content p {
|
||||
line-height: 1.6;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
/* Layout adjustments */
|
||||
.with-sidebar {
|
||||
padding-top: 3rem;
|
||||
}
|
@ -2,10 +2,10 @@
|
||||
.sidebar {
|
||||
width: 250px;
|
||||
background-color: var(--sidebar-bg);
|
||||
min-height: 100vh;
|
||||
height: 100vh;
|
||||
padding: 20px;
|
||||
box-shadow: 2px 0 5px rgba(0,0,0,0.3);
|
||||
top: 3rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.sidebar h2 {
|
||||
|
@ -1,16 +1,12 @@
|
||||
/* Top bar styles */
|
||||
.top-bar {
|
||||
background-color: #333;
|
||||
background-color: var(--topbar-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;
|
||||
}
|
||||
|
||||
.top-bar-title {
|
||||
@ -92,4 +88,4 @@
|
||||
|
||||
.user-menu-item#logoutButton:hover {
|
||||
background-color: rgba(244, 63, 63, 0.1);
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,8 @@
|
||||
--primary-red: #f43f3f;
|
||||
--dark-bg: #1e1f26;
|
||||
--sidebar-bg: #2b2c33;
|
||||
--topbar-bg: #333;
|
||||
--text-color: #ffffff;
|
||||
--text-muted: #9da2b3;
|
||||
--read-bg: #2d2e36;
|
||||
}
|
||||
}
|
||||
|
@ -15,27 +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;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.main-content p {
|
||||
line-height: 1.6;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
.login-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@ -101,11 +80,6 @@ body.with-sidebar {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
/* Layout adjustments */
|
||||
.with-sidebar {
|
||||
padding-top: 3rem;
|
||||
}
|
||||
|
||||
.setup-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
@ -36,7 +36,7 @@ function formatDate(dateStr) {
|
||||
}
|
||||
|
||||
function renderFeedEntries(entries) {
|
||||
const mainContent = document.querySelector('.main-content');
|
||||
const mainContent = document.querySelector('#main-content');
|
||||
mainContent.innerHTML = '';
|
||||
|
||||
entries.forEach(entry => {
|
||||
|
@ -8,18 +8,6 @@
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
</head>
|
||||
<body class="with-sidebar">
|
||||
<header class="top-bar">
|
||||
<h1 class="top-bar-title">RSS Reader</h1>
|
||||
<div class="user-menu">
|
||||
<button class="user-menu-button" id="userMenuButton">
|
||||
<span class="user-menu-icon"><i class="fas fa-user"></i></span>
|
||||
</button>
|
||||
<div class="user-menu-dropdown" id="userMenuDropdown">
|
||||
<button class="user-menu-item" id="logoutButton">Logout</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Add Feed Modal -->
|
||||
<dialog class="modal" id="addFeedModal">
|
||||
<article class="modal-content">
|
||||
@ -58,8 +46,20 @@
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<main class="main-content">
|
||||
</main>
|
||||
<div class="main-content-area">
|
||||
<header class="top-bar">
|
||||
<h1 class="top-bar-title">RSS Reader</h1>
|
||||
<div class="user-menu">
|
||||
<button class="user-menu-button" id="userMenuButton">
|
||||
<span class="user-menu-icon"><i class="fas fa-user"></i></span>
|
||||
</button>
|
||||
<div class="user-menu-dropdown" id="userMenuDropdown">
|
||||
<button class="user-menu-item" id="logoutButton">Logout</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main id="main-content"></main>
|
||||
</div>
|
||||
|
||||
<script src="/static/js/app.js"></script>
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user