Skip to content

Commit 344bcb9

Browse files
committed
style: Improve styling and layout in header, footer, and app sections
1 parent 3490834 commit 344bcb9

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

src/views/components/footer.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<footer style="flex: 0; padding: 10px; text-align: center;">
22
<p>
33
Copyright © 2024. Made with ❤️ by
4-
<a href="https://github.com/wajeht" title="https://github.com/wajeht" target="_blank">wajeht</a>
4+
<a href="https://github.com/wajeht" title="https://github.com/wajeht" target="_blank">wajeht</a> |
5+
<a href="https://github.com/wajeht/notify" title="https://github.com/wajeht/notify" target="_blank">github</a>
56
</p>
67
</footer>

src/views/components/header.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ <h1><a href="/">Notify</a></h1>
44
<p>send notification to discord, email, and sms</p>
55
</div>
66

7-
<nav>
8-
<a style="font-weight: <%= path === '/apps' ? 'bold' : 'normal' %>;" href="/apps">Home</a>
9-
<a style="font-weight: <%= path === '/profile' ? 'bold' : 'normal' %>;" href="/profile">Profile</a>
10-
<a style="font-weight: <%= path === '/settings' ? 'bold' : 'normal' %>;" href="/settings">Settings</a>
7+
<nav style="display: flex; justify-content: space-between; align-items: center;">
8+
<div>
9+
<a style="font-weight: <%= path === '/apps' ? 'bold' : 'normal' %>;" href="/apps">Apps</a>
10+
<a style="font-weight: <%= path === '/profile' ? 'bold' : 'normal' %>;" href="/profile">Profile</a>
11+
<a style="font-weight: <%= path === '/settings' ? 'bold' : 'normal' %>;" href="/settings">Settings</a>
12+
</div>
13+
1114
<a href="/logout">Logout</a>
1215
</nav>
1316
</header>

src/views/layouts/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<body style="display: flex; flex-direction: column; gap: 10px; min-height: 100vh;">
66
<%- include('../components/header.html') %>
77

8-
<main style="flex: 1;">
8+
<main style="flex: 1; display: flex; flex-direction: column; gap: 10px;">
99
<h2 >Apps / <%= app.id %></h2>
1010

1111
<div style="display: grid; grid-template-columns: 20% 80%;">

src/views/pages/apps.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<div style="display: flex; flex-direction: column; gap: 10px;">
22
<div style="display: flex; justify-content: space-between; align-items: center;">
3-
<h2>Apps</h2>
4-
<a href="/apps/create">Create a new App</a>
3+
<div>
4+
<h2>Apps</h2>
5+
<p>Your apps</p>
6+
</div>
7+
<a href="/apps/create">Create a new app</a>
58
</div>
69

710
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;">

0 commit comments

Comments
 (0)