Skip to content

Commit

Permalink
style: Improve styling of header links in HTML markup
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Aug 14, 2024
1 parent 938f4c6 commit 63601d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/components/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ <h1><a href="/">Notify</a></h1>

<nav style="display: flex; justify-content: space-between; align-items: center;">
<div style="display: flex; align-items: center; gap: 20px;">
<a style="font-weight: <%= path === '/apps' ? 'bold' : 'normal' %>; text-decoration: <%= path === '/apps' ? 'underline' : 'none' %>;" href="/apps">Apps</a>
<a style="font-weight: <%= path === '/jobs' ? 'bold' : 'normal' %>; text-decoration: <%= path === '/jobs' ? 'underline' : 'none' %>;" href="/jobs">Jobs</a>
<a style="font-weight: <%= path === '/notifications' ? 'bold' : 'normal' %>; text-decoration: <%= path === '/notifications' ? 'underline' : 'none' %>;" href="/notifications">Notifications</a>
<a style="font-weight: <%= path === '/apps' ? 'bold' : 'normal' %>; <%= path === '/apps' ? 'text-decoration: underline;' : null %>" href="/apps">Apps</a>
<a style="font-weight: <%= path === '/jobs' ? 'bold' : 'normal' %>; <%= path === '/jobs' ? 'text-decoration: underline;' : null %>" href="/jobs">Jobs</a>
<a style="font-weight: <%= path === '/notifications' ? 'bold' : 'normal' %>; text-decoration: <%= path === '/notifications' ? 'text-decoration: underline;' : null %>" href="/notifications">Notifications</a>
</div>

<div style="display: flex; align-items: center; gap: 20px;">
<a style="font-weight: <%= path === '/settings' ? 'bold' : 'normal' %>; text-decoration: <%= path === '/settings' ? 'underline' : 'none' %>;" href="/settings">Settings</a>
<a style="font-weight: <%= path === '/settings' ? 'bold' : 'normal' %>; <%= path === '/settings' ? 'text-decoration: underline' : null %>" href="/settings">Settings</a>
<a href="/logout">Logout</a>
</div>
</nav>
Expand Down

0 comments on commit 63601d8

Please sign in to comment.