style: Align notification layout with other page templates

This commit is contained in:
Kerby Martino (aider) committed 2025-05-04 03:30:10 +08:00
1 parent 6b3c9bfcde
commit 3135760cfa
1 file changed
+15 -13
+15 -13
View File
@@ -1,36 +1,38 @@
<div class="max-w-screen-lg mx-auto px-4 py-8"> <div class="max-w-screen-lg mx-auto px-4 py-8">
<h1 class="text-2xl font-bold mb-4">Notifications</h1> <h1 class="text-3xl font-bold text-text-title mb-6 pb-4 border-b border-gray-200">Notifications</h1>
<div class="notification-list space-y-4">
<!-- Example Notification: Reply to Post --> <!-- Example Notification: Reply to Post -->
<div class="bg-white p-4 rounded shadow mb-4 border border-gray-200"> <div class="pb-4 mb-4 border-b border-border-light">
<p class="text-gray-800"> <p class="text-text-title text-sm mb-1">
<a href="/user/user123" class="text-primary font-semibold hover:underline">user123</a> replied to your post: <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> <a href="/single-post/1" class="text-primary hover:underline">"The Saga of the Disappearing Ergonomic Chair Continues"</a>
</p> </p>
<p class="text-gray-600 text-sm mt-1">"I saw it near the vending machine!"</p> <p class="text-text-muted text-sm mt-1 pl-4 border-l-2 border-gray-300">"I saw it near the vending machine!"</p>
<span class="text-xs text-gray-500">2 hours ago</span> <small class="text-text-muted text-xs block mt-2">2 hours ago</small>
</div> </div>
<!-- Example Notification: Upvote on Comment --> <!-- Example Notification: Upvote on Comment -->
<div class="bg-white p-4 rounded shadow mb-4 border border-gray-200"> <div class="pb-4 mb-4 border-b border-border-light">
<p class="text-gray-800"> <p class="text-text-title text-sm mb-1">
<a href="/user/anotherUser" class="text-primary font-semibold hover:underline">anotherUser</a> upvoted your comment on: <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> <a href="/single-post/2#comment-5" class="text-primary hover:underline">"Found the perfect focus playlist"</a>
</p> </p>
<span class="text-xs text-gray-500">5 hours ago</span> <small class="text-text-muted text-xs block mt-2">5 hours ago</small>
</div> </div>
<!-- Example Notification: Reply to Comment --> <!-- Example Notification: Reply to Comment -->
<div class="bg-white p-4 rounded shadow mb-4 border border-gray-200"> <div class="pb-4 mb-4 border-b border-border-light">
<p class="text-gray-800"> <p class="text-text-title text-sm mb-1">
<a href="/user/helpfulHannah" class="text-primary font-semibold hover:underline">helpfulHannah</a> replied to your comment on: <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> <a href="/single-post/3#comment-10" class="text-primary hover:underline">"Overheard near the coffee machine"</a>
</p> </p>
<p class="text-gray-600 text-sm mt-1">"That happens all the time!"</p> <p class="text-text-muted text-sm mt-1 pl-4 border-l-2 border-gray-300">"That happens all the time!"</p>
<span class="text-xs text-gray-500">1 day ago</span> <small class="text-text-muted text-xs block mt-2">1 day ago</small>
</div> </div>
<!-- Add more notifications here --> <!-- Add more notifications here -->
<p class="text-gray-500 text-center">No more notifications.</p>
<p class="text-text-muted text-center pt-4">No more notifications.</p>
</div>
</div> </div>