Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Portals committed Aug 20, 2024
1 parent 54a29ce commit c830bbb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
9 changes: 9 additions & 0 deletions app/src/main/resources/static/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ img {
object-fit: cover;
object-position: center;
}

form {
display: flex;
flex-direction: column;
}

form button {
width: 100%;
}
4 changes: 4 additions & 0 deletions app/src/main/resources/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,8 @@ progress {

.error-message {
color: var(--pico-del-color);
}

span a {
display: inline-block !important;
}
10 changes: 8 additions & 2 deletions app/src/main/resources/templates/common/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
<a th:href="@{/posts}">Posts</a>
</li>
<th:block th:if="${isAdmin}">
<br>
<b>Admin views</b>
<hr>
<li>
<a th:href="@{/clients}">Official clients</a>
</li>
Expand All @@ -55,6 +54,13 @@
<a th:href="@{/throttling}">Throttling</a>
</li>
</th:block>
<hr>
<li>
<a href="https://github.com/cthit/gamma" target="_blank">GitHub</a>
</li>
<li>
Made by <span><a href="https://digit.chalmers.it">digIT</a></span>
</li>
</ul>
</aside>
</nav>
Expand Down
9 changes: 4 additions & 5 deletions app/src/main/resources/templates/pages/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ <h1>
Before deciding on authorizing the client, please verify your identity
</p>
<form th:action="@{/login}" th:method="post">
<fieldset role="group">
<input type="text" name="username" placeholder="Cid / Email">
<input type="password" name="password" placeholder="Password">
<button data-loading-disable>Login</button>
</fieldset>
<input type="text" name="username" placeholder="Cid / Email">
<input type="password" name="password" placeholder="Password">
<button class="outline contrast" data-loading-disable>Login</button>
</form>
<footer>
<p id="links">
Expand Down Expand Up @@ -46,6 +44,7 @@ <h1>
<a href="/activate-cid">
Register
</a>

<a href="/forgot-password">
Forgot password
</a>
Expand Down

0 comments on commit c830bbb

Please sign in to comment.