Similar navbar code applied to all existing pages
This commit is contained in:
1 parent
fcdaca9e8b
commit
1a4ae3a460
6 files changed
+23
-25
No files matched your search
+1
-1
@@ -52,7 +52,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<main class="py-4 pb-16">
|
<main class="py-4 pb-16">
|
||||||
<div class="max-w-xl mx-auto px-4 mt-8">
|
<div class="max-w-screen-lg mx-auto px-4 mt-8">
|
||||||
<div class="bg-rules-bg p-4 rounded mb-4 text-primary">
|
<div class="bg-rules-bg p-4 rounded mb-4 text-primary">
|
||||||
<p><strong>Quick Tips:</strong> Keep it brief, keep it real. Share your desk moments, finds, or frustrations. Upvote what resonates!</p>
|
<p><strong>Quick Tips:</strong> Keep it brief, keep it real. Share your desk moments, finds, or frustrations. Upvote what resonates!</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+7
-6
@@ -8,14 +8,14 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="font-sans text-text-default pt-navbar-height">
|
<body class="font-sans text-text-default pt-navbar-height">
|
||||||
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
||||||
<div class="container mx-auto px-4">
|
<div class="max-w-screen-lg mx-auto px-4">
|
||||||
<div class="flex justify-between items-center">
|
<div class="flex justify-between">
|
||||||
<div class="flex items-center">
|
<div class="flex">
|
||||||
<a class="py-4 px-3 font-bold text-primary" href="/">
|
<a class="py-4 px-3 font-bold text-primary" href="/">
|
||||||
Behind the Desk
|
Behind the Desk
|
||||||
</a>
|
</a>
|
||||||
<div class="hidden md:flex">
|
<div class="hidden md:flex">
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
@@ -29,6 +29,7 @@
|
|||||||
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Mobile menu button -->
|
||||||
<div class="md:hidden flex items-center">
|
<div class="md:hidden flex items-center">
|
||||||
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
||||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
@@ -37,8 +38,9 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Mobile Menu -->
|
||||||
<div id="mobileMenu" class="hidden md:hidden">
|
<div id="mobileMenu" class="hidden md:hidden">
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
<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" href="#">new</a>
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
@@ -48,7 +50,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<main class="py-4 pb-16">
|
<main class="py-4 pb-16">
|
||||||
<div class="max-w-md mx-auto px-4 mt-8">
|
<div class="max-w-md mx-auto px-4 mt-8">
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<main class="py-4 pb-16">
|
<main class="py-4 pb-16">
|
||||||
<div class="max-w-xl mx-auto px-4 mt-8">
|
<div class="max-w-xl mx-auto px-4 mt-8">
|
||||||
<!-- Filter Container -->
|
<!-- Filter Container -->
|
||||||
|
|||||||
+7
-3
@@ -11,9 +11,11 @@
|
|||||||
<div class="max-w-screen-lg mx-auto px-4">
|
<div class="max-w-screen-lg mx-auto px-4">
|
||||||
<div class="flex justify-between">
|
<div class="flex justify-between">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<a class="py-4 px-3 font-bold text-primary" href="/">Behind the Desk</a>
|
<a class="py-4 px-3 font-bold text-primary" href="/">
|
||||||
|
Behind the Desk
|
||||||
|
</a>
|
||||||
<div class="hidden md:flex">
|
<div class="hidden md:flex">
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
@@ -27,6 +29,7 @@
|
|||||||
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Mobile menu button -->
|
||||||
<div class="md:hidden flex items-center">
|
<div class="md:hidden flex items-center">
|
||||||
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
||||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
@@ -35,8 +38,9 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Mobile Menu -->
|
||||||
<div id="mobileMenu" class="hidden md:hidden">
|
<div id="mobileMenu" class="hidden md:hidden">
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
<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" href="#">new</a>
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
|
|||||||
+4
-2
@@ -15,7 +15,7 @@
|
|||||||
Behind the Desk
|
Behind the Desk
|
||||||
</a>
|
</a>
|
||||||
<div class="hidden md:flex">
|
<div class="hidden md:flex">
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
@@ -29,6 +29,7 @@
|
|||||||
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Mobile menu button -->
|
||||||
<div class="md:hidden flex items-center">
|
<div class="md:hidden flex items-center">
|
||||||
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
||||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
@@ -37,8 +38,9 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Mobile Menu -->
|
||||||
<div id="mobileMenu" class="hidden md:hidden">
|
<div id="mobileMenu" class="hidden md:hidden">
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
<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" href="#">new</a>
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
Behind the Desk
|
Behind the Desk
|
||||||
</a>
|
</a>
|
||||||
<div class="hidden md:flex">
|
<div class="hidden md:flex">
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary font-semibold" href="#">top 🔥</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">new</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
<a class="py-4 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
@@ -29,6 +29,7 @@
|
|||||||
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
<a href="/login.html" class="text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Mobile menu button -->
|
||||||
<div class="md:hidden flex items-center">
|
<div class="md:hidden flex items-center">
|
||||||
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
<button id="menuButton" class="text-primary p-3" aria-label="menu" aria-expanded="false">
|
||||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
@@ -37,8 +38,9 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Mobile Menu -->
|
||||||
<div id="mobileMenu" class="hidden md:hidden">
|
<div id="mobileMenu" class="hidden md:hidden">
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/">top 🔥</a>
|
<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" href="#">new</a>
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">nearby</a>
|
||||||
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="#">past</a>
|
||||||
@@ -79,16 +81,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="bg-gray-200 py-8 px-6 text-text-muted">
|
|
||||||
<div class="max-w-screen-lg mx-auto">
|
|
||||||
<div class="mt-4 text-sm">
|
|
||||||
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a>
|
|
||||||
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Terms</a>
|
|
||||||
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Contact</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const menuButton = document.getElementById('menuButton');
|
const menuButton = document.getElementById('menuButton');
|
||||||
|
|||||||
Reference in new issue
Block a user