Skip to content

Commit

Permalink
Merge pull request #89 from software-students-spring2024/logout
Browse files Browse the repository at this point in the history
Logout UI change
  • Loading branch information
shriyakalakata authored Mar 4, 2024
2 parents 6696b17 + 7a73209 commit 4300845
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
10 changes: 10 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,13 @@ p a{
#card-form textarea:focus {
outline: none;
}

.logout {
float: right;
background-color: #7d6f6b;
color: #FAFAFA;
font-size: 30px;
border-radius: 4px;
font-weight: bold;
padding: 20px;
}
7 changes: 7 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@
/>
</head>
<body>

{% if isAuth %}
<a class="logout" href="{{ url_for('logout') }} " style="text-decoration:none">Logout</a>
{% endif %}


<div class="container">
<header>

<a href="{{ url_for('home')}}" style="text-decoration:none">
<h1>DIVE DEEPER</h1>
</a>
Expand Down
3 changes: 0 additions & 3 deletions templates/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ <h3 id="next-question"> START </h3>
<button id="delete-card-button" class="button2" style="display: none">Delete Card</button>
</form>

{% from 'macros.html' import logout %}
{{ logout() }}

{% endif %}


Expand Down
2 changes: 0 additions & 2 deletions templates/decks.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ <h3> + </h3>
})
</script>

{% from 'macros.html' import logout %}
{{ logout() }}
{% endif %}


Expand Down
5 changes: 0 additions & 5 deletions templates/macros.html

This file was deleted.

0 comments on commit 4300845

Please sign in to comment.