feat: Simplify mobile menu and add nearby sort option

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-04 15:46:06 +08:00
1 parent 204f93a6aa
commit dc741a97ed
2 files changed
+3 -10

No files matched your search

+2 -10
View File
@@ -24,18 +24,10 @@
</div>
<!-- Mobile Menu -->
<div id="mobileMenu" class="hidden md:hidden">
<div class="border-b border-gray-200">
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="/">top 🔥</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">new</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" id="mobile-nearby-link" href="/">nearby</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" id="mobile-past-link" href="/">past</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">ask</a>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">rant</a>
</div>
<div class="border-b border-gray-200">
<div>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/submit">submit</a>
</div>
<div class="border-b border-gray-200">
<div>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/notifications">notifications</a>
</div>
<div>
+1
View File
@@ -27,6 +27,7 @@
<label for="sort-select" class="text-sm font-medium text-gray-700">Sort by:</label>
<select id="sort-select" name="sort_by" class="sort-select text-sm font-action bg-white border border-gray-300 rounded-md px-3 py-1.5 focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary cursor-pointer">
<option value="new" selected>Newest</option>
<option value="new" selected>Nearby</option>
<option value="upvotes">Most Upvotes</option>
<option value="comments">Most Comments</option>
<!-- Add other options like 'today', 'nearby' here if data/logic becomes available -->