feat: update notification layout and add form layout
This commit is contained in:
1 parent
6643a6d194
commit
fde36ab87c
8 files changed
+63
-50
No files matched your search
@@ -1,50 +1,48 @@
|
||||
<div class="max-w-screen-lg mx-auto px-4 py-8">
|
||||
<h1 class="text-3xl font-bold text-text-title mb-6 pb-4 border-b border-gray-200">You have {{ page.notification_count }} notifications.</h1>
|
||||
<h1 class="text-3xl font-bold text-text-title mb-6 pb-4 border-b border-gray-200">You have {{ page.notification_count }} notifications.</h1>
|
||||
|
||||
<div class="notification-list space-y-4">
|
||||
<!-- Example Notification: Reply to Post -->
|
||||
<div class="pb-4 mb-4 border-b border-border-light" data-read="false">
|
||||
<small class="text-sm mb-1 block">
|
||||
<a href="/user/user123" class="text-primary font-action hover:underline">user123</a>
|
||||
<span class="text-text-muted opacity-75">replied to your post:</span>
|
||||
<a href="/single-post/1" class="text-primary font-action hover:underline">"The Saga of the Disappearing Ergonomic Chair Continues"</a>
|
||||
<span class="text-text-muted text-xs opacity-75 ml-1">2 hours ago</span>
|
||||
</small>
|
||||
<div class="mt-2 flex space-x-2">
|
||||
<button class="toggle-read px-3 py-1 bg-primary text-white text-xs font-action rounded hover:bg-primary-dark">Mark as Read</button>
|
||||
</div>
|
||||
<div class="notification-list space-y-4">
|
||||
<!-- Example Notification: Reply to Post -->
|
||||
<div class="pb-4 mb-4 border-b border-border-light" data-read="false">
|
||||
<small class="text-sm mb-1 block">
|
||||
<a href="/user/user123" class="text-primary font-action hover:underline">user123</a>
|
||||
<span class="text-text-muted opacity-75">replied to your post:</span>
|
||||
<a href="/single-post/1" class="text-primary font-action hover:underline">"The Saga of the Disappearing Ergonomic Chair Continues"</a>
|
||||
<span class="text-text-muted text-xs opacity-75 ml-1">2 hours ago</span>
|
||||
</small>
|
||||
<div class="mt-2 flex space-x-2">
|
||||
<button class="toggle-read px-3 py-1 bg-primary text-white text-xs font-action rounded hover:bg-primary-dark">Mark as Read</button>
|
||||
</div>
|
||||
|
||||
<!-- Example Notification: Upvote on Comment -->
|
||||
<div class="pb-4 mb-4 border-b border-border-light" data-read="false">
|
||||
<small class="text-sm mb-1 block">
|
||||
<a href="/user/anotherUser" class="text-primary font-action hover:underline">anotherUser</a>
|
||||
<span class="text-text-muted opacity-75">upvoted your comment on:</span>
|
||||
<a href="/single-post/2#comment-5" class="text-primary font-action hover:underline">"Found the perfect focus playlist"</a>
|
||||
<span class="text-text-muted text-xs opacity-75 ml-1">5 hours ago</span>
|
||||
</small>
|
||||
<div class="mt-2 flex space-x-2">
|
||||
<button class="toggle-read px-3 py-1 bg-primary text-white text-xs font-action rounded hover:bg-primary-dark">Mark as Read</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Example Notification: Reply to Comment -->
|
||||
<div class="pb-4 mb-4 border-b border-border-light" data-read="false">
|
||||
<small class="text-sm mb-1 block">
|
||||
<a href="/user/helpfulHannah" class="text-primary font-action hover:underline">helpfulHannah</a>
|
||||
<span class="text-text-muted font-action opacity-75">replied to your comment on:</span>
|
||||
<a href="/single-post/3#comment-10" class="text-primary font-action hover:underline">"Overheard near the coffee machine"</a>
|
||||
<span class="text-text-muted text-xs font-action opacity-75 ml-1">1 day ago</span>
|
||||
</small>
|
||||
<div class="mt-2 flex space-x-2">
|
||||
<button class="toggle-read px-3 py-1 bg-primary text-white text-xs font-action rounded hover:bg-primary-dark">Mark as Read</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Add more notifications here -->
|
||||
|
||||
<p class="text-text-muted text-center pt-4">No more notifications.</p>
|
||||
</div>
|
||||
|
||||
<!-- Example Notification: Upvote on Comment -->
|
||||
<div class="pb-4 mb-4 border-b border-border-light" data-read="false">
|
||||
<small class="text-sm mb-1 block">
|
||||
<a href="/user/anotherUser" class="text-primary font-action hover:underline">anotherUser</a>
|
||||
<span class="text-text-muted opacity-75">upvoted your comment on:</span>
|
||||
<a href="/single-post/2#comment-5" class="text-primary font-action hover:underline">"Found the perfect focus playlist"</a>
|
||||
<span class="text-text-muted text-xs opacity-75 ml-1">5 hours ago</span>
|
||||
</small>
|
||||
<div class="mt-2 flex space-x-2">
|
||||
<button class="toggle-read px-3 py-1 bg-primary text-white text-xs font-action rounded hover:bg-primary-dark">Mark as Read</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Example Notification: Reply to Comment -->
|
||||
<div class="pb-4 mb-4 border-b border-border-light" data-read="false">
|
||||
<small class="text-sm mb-1 block">
|
||||
<a href="/user/helpfulHannah" class="text-primary font-action hover:underline">helpfulHannah</a>
|
||||
<span class="text-text-muted font-action opacity-75">replied to your comment on:</span>
|
||||
<a href="/single-post/3#comment-10" class="text-primary font-action hover:underline">"Overheard near the coffee machine"</a>
|
||||
<span class="text-text-muted text-xs font-action opacity-75 ml-1">1 day ago</span>
|
||||
</small>
|
||||
<div class="mt-2 flex space-x-2">
|
||||
<button class="toggle-read px-3 py-1 bg-primary text-white text-xs font-action rounded hover:bg-primary-dark">Mark as Read</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Add more notifications here -->
|
||||
|
||||
<p class="text-text-muted text-center pt-4">No more notifications.</p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="bg-bg-light">
|
||||
{% include head.liquid %}
|
||||
|
||||
<body class="font-sans text-text-default pt-navbar-height">
|
||||
{% include simple_navbar.liquid %}
|
||||
|
||||
<main class="max-w-screen-lg mx-auto py-4 pb-16">
|
||||
<div class="px-4 mt-4">
|
||||
{{ content }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,7 +5,7 @@
|
||||
<body class="font-sans text-text-default pt-navbar-height">
|
||||
{% include simple_navbar.liquid %}
|
||||
|
||||
<main class="max-w-screen-lg mx-auto py-4 pb-16">
|
||||
<main class="max-w-screen-lg mx-auto py-4 pb-16 bg-bg-footer">
|
||||
<div class="px-4 mt-4">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
layout: simple
|
||||
layout: form
|
||||
title: Change Password
|
||||
permalink: /changepw/
|
||||
---
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
layout: simple
|
||||
layout: form
|
||||
title: Reset Your Password
|
||||
permalink: /forgot-password/
|
||||
---
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
---
|
||||
layout: simple
|
||||
layout: form
|
||||
title: Join the conversation
|
||||
caption: Keep it brief, keep it real. Share your desk moments, finds, or frustrations. Upvote what resonates!
|
||||
permalink: /login/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
layout: content
|
||||
layout: simple
|
||||
title: Notifications
|
||||
permalink: /notifications/
|
||||
notification_count: 20
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
---
|
||||
layout: simple
|
||||
layout: form
|
||||
title: Submit
|
||||
permalink: /submit/
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user