Skip to content

Commit

Permalink
style: modify nav-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris3131 committed Aug 29, 2022
1 parent 0f151dd commit 83752b8
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions views/layouts/main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,22 @@
/>
</head>
<body>
{{#if isAuthenticated}}
<a href='/users/logout'>logout</a>
{{else}}
<a href='/users/login'>login</a>
{{/if}}
<nav class='navbar bg-light'>
<div class='container-fluid'>
<span class='navbar-brand mb-0 h1'>家庭記帳本</span>
{{#if isAuthenticated}}
<a
class='btn btn-outline-light border border-dark text-warning'
href='/users/logout'
>登出</a>
{{else}}
<a
class='btn btn-outline-light border border-dark text-warning'
href='/users/login'
>登入</a>
{{/if}}
</div>
</nav>
{{{body}}}
<script
src='https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js'
Expand Down

0 comments on commit 83752b8

Please sign in to comment.