feat: Simplify mobile menu and add nearby sort option
This commit is contained in:
1 parent
204f93a6aa
commit
dc741a97ed
2 files changed
+3
-10
No files matched your search
+2
-10
@@ -24,18 +24,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Mobile Menu -->
|
<!-- Mobile Menu -->
|
||||||
<div id="mobileMenu" class="hidden md:hidden">
|
<div id="mobileMenu" class="hidden md:hidden">
|
||||||
<div class="border-b border-gray-200">
|
<div>
|
||||||
<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">
|
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/submit">submit</a>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/submit">submit</a>
|
||||||
</div>
|
</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>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/notifications">notifications</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
<label for="sort-select" class="text-sm font-medium text-gray-700">Sort by:</label>
|
<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">
|
<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>Newest</option>
|
||||||
|
<option value="new" selected>Nearby</option>
|
||||||
<option value="upvotes">Most Upvotes</option>
|
<option value="upvotes">Most Upvotes</option>
|
||||||
<option value="comments">Most Comments</option>
|
<option value="comments">Most Comments</option>
|
||||||
<!-- Add other options like 'today', 'nearby' here if data/logic becomes available -->
|
<!-- Add other options like 'today', 'nearby' here if data/logic becomes available -->
|
||||||
|
|||||||
Reference in new issue
Block a user