Skip to content

Commit

Permalink
style: Improve styling and layout in header, footer, and app sections
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Aug 13, 2024
1 parent 3490834 commit 344bcb9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/views/components/footer.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<footer style="flex: 0; padding: 10px; text-align: center;">
<p>
Copyright © 2024. Made with ❤️ by
<a href="https://github.com/wajeht" title="https://github.com/wajeht" target="_blank">wajeht</a>
<a href="https://github.com/wajeht" title="https://github.com/wajeht" target="_blank">wajeht</a> |
<a href="https://github.com/wajeht/notify" title="https://github.com/wajeht/notify" target="_blank">github</a>
</p>
</footer>
11 changes: 7 additions & 4 deletions src/views/components/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ <h1><a href="/">Notify</a></h1>
<p>send notification to discord, email, and sms</p>
</div>

<nav>
<a style="font-weight: <%= path === '/apps' ? 'bold' : 'normal' %>;" href="/apps">Home</a>
<a style="font-weight: <%= path === '/profile' ? 'bold' : 'normal' %>;" href="/profile">Profile</a>
<a style="font-weight: <%= path === '/settings' ? 'bold' : 'normal' %>;" href="/settings">Settings</a>
<nav style="display: flex; justify-content: space-between; align-items: center;">
<div>
<a style="font-weight: <%= path === '/apps' ? 'bold' : 'normal' %>;" href="/apps">Apps</a>
<a style="font-weight: <%= path === '/profile' ? 'bold' : 'normal' %>;" href="/profile">Profile</a>
<a style="font-weight: <%= path === '/settings' ? 'bold' : 'normal' %>;" href="/settings">Settings</a>
</div>

<a href="/logout">Logout</a>
</nav>
</header>
2 changes: 1 addition & 1 deletion src/views/layouts/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<body style="display: flex; flex-direction: column; gap: 10px; min-height: 100vh;">
<%- include('../components/header.html') %>

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

<div style="display: grid; grid-template-columns: 20% 80%;">
Expand Down
7 changes: 5 additions & 2 deletions src/views/pages/apps.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<div style="display: flex; flex-direction: column; gap: 10px;">
<div style="display: flex; justify-content: space-between; align-items: center;">
<h2>Apps</h2>
<a href="/apps/create">Create a new App</a>
<div>
<h2>Apps</h2>
<p>Your apps</p>
</div>
<a href="/apps/create">Create a new app</a>
</div>

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

0 comments on commit 344bcb9

Please sign in to comment.