feat: create notification page with example notifications and navbar link

This commit is contained in:
Kerby Martino (aider) committed 2025-05-04 03:28:47 +08:00
1 parent 636b8241d3
commit 6b3c9bfcde
3 files changed
+47

No files matched your search

+4
View File
@@ -16,6 +16,7 @@
</div>
</div>
<div class="hidden md:flex items-center">
<a href="/notifications" class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary">notifications</a>
<a href="/login" class="py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary">login</a>
</div>
<!-- Mobile menu button -->
@@ -39,6 +40,9 @@
</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>
</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="/notifications">notifications</a>
</div>
<div>
<a class="block py-2 px-3 text-primary hover:bg-opacity-5 hover:bg-primary" href="/login">login</a>
+36
View File
@@ -0,0 +1,36 @@
<div class="max-w-screen-lg mx-auto px-4 py-8">
<h1 class="text-2xl font-bold mb-4">Notifications</h1>
<!-- Example Notification: Reply to Post -->
<div class="bg-white p-4 rounded shadow mb-4 border border-gray-200">
<p class="text-gray-800">
<a href="/user/user123" class="text-primary font-semibold hover:underline">user123</a> replied to your post:
<a href="/single-post/1" class="text-primary hover:underline">"The Saga of the Disappearing Ergonomic Chair Continues"</a>
</p>
<p class="text-gray-600 text-sm mt-1">"I saw it near the vending machine!"</p>
<span class="text-xs text-gray-500">2 hours ago</span>
</div>
<!-- Example Notification: Upvote on Comment -->
<div class="bg-white p-4 rounded shadow mb-4 border border-gray-200">
<p class="text-gray-800">
<a href="/user/anotherUser" class="text-primary font-semibold hover:underline">anotherUser</a> upvoted your comment on:
<a href="/single-post/2#comment-5" class="text-primary hover:underline">"Found the perfect focus playlist"</a>
</p>
<span class="text-xs text-gray-500">5 hours ago</span>
</div>
<!-- Example Notification: Reply to Comment -->
<div class="bg-white p-4 rounded shadow mb-4 border border-gray-200">
<p class="text-gray-800">
<a href="/user/helpfulHannah" class="text-primary font-semibold hover:underline">helpfulHannah</a> replied to your comment on:
<a href="/single-post/3#comment-10" class="text-primary hover:underline">"Overheard near the coffee machine"</a>
</p>
<p class="text-gray-600 text-sm mt-1">"That happens all the time!"</p>
<span class="text-xs text-gray-500">1 day ago</span>
</div>
<!-- Add more notifications here -->
<p class="text-gray-500 text-center">No more notifications.</p>
</div>