diff --git a/index.html b/index.html index 6c6e791..d71d892 100644 --- a/index.html +++ b/index.html @@ -33,7 +33,7 @@ nearby - + past @@ -61,6 +61,16 @@

Quick Tips: Keep it brief, keep it real. Share your desk moments, finds, or frustrations. Upvote what resonates!

+ +
+

Stories from April 24, 2025 (UTC)

+
+ + + +
@@ -203,6 +213,13 @@ }); }); } + + // Toggle filter section visibility + const pastButton = document.getElementById('past-button'); + const filterSection = document.querySelector('.filter-section'); + pastButton.addEventListener('click', () => { + filterSection.classList.toggle('hidden'); + }); }); diff --git a/style.css b/style.css index 32f72d9..2737e19 100644 --- a/style.css +++ b/style.css @@ -239,4 +239,24 @@ body { letter-spacing: 0.1ch; position: absolute; text-transform: uppercase; -} \ No newline at end of file +} + +/* Filter Section Styling */ +.filter-section { + display: none; /* Hide by default */ + margin-bottom: 1rem; +} + +.filter-section.hidden { + display: none; +} + +.filter-section.visible { + display: block; +} + +.date-display { + margin-bottom: 1rem; + font-size: 1rem; + color: #38315f; +}