Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
njuettner committed Jan 13, 2025
1 parent d059419 commit 7754fde
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
background-color: #ffffff; /* Light mode preferred */
color: #333333;
transition: background-color 0.3s ease, color 0.3s ease;
padding-top: 60px; /* Adjust based on the header height */
}
h1 {
margin-top: 0;
Expand All @@ -31,6 +32,19 @@
.header-container {
text-align: center;
margin-bottom: 20px;
position: sticky;
top: 0;
background-color: inherit; /* Ensures it adapts to light/dark mode */
z-index: 1000; /* Keeps the header above other elements */
padding: 10px 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
.header-container h1 {
margin: 0;
font-size: 24px;
}
.chart-grid {
display: flex;
Expand Down Expand Up @@ -160,12 +174,12 @@
<body>
<div class="header-container">
<h1>Fed Data Collection</h1>
</div>

<!-- Toggle Switch -->
<div class="toggle-switch">
<input type="checkbox" id="darkToggle" aria-label="Toggle Dark Mode" />
<label for="darkToggle"></label>
<!-- Toggle Switch -->
<div class="toggle-switch">
<input type="checkbox" id="darkToggle" aria-label="Toggle Dark Mode" />
<label for="darkToggle"></label>
</div>
</div>

<!-- Charts Grid -->
Expand All @@ -174,7 +188,7 @@ <h1>Fed Data Collection</h1>
</div>

<!-- Tooltip Div -->
<div id="tooltip"></div>
<div id="tooltip" role="tooltip"></div>

<script>
// Store chart instances
Expand Down

0 comments on commit 7754fde

Please sign in to comment.