mirror of
https://gitlab.com/etc404/software-engineering-project.git
synced 2026-05-10 20:52:58 +00:00
Cosmetic changes.
This commit is contained in:
@@ -18,7 +18,7 @@ public class SecurityConfig {
|
|||||||
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
|
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
|
||||||
http
|
http
|
||||||
.authorizeHttpRequests(auth -> auth
|
.authorizeHttpRequests(auth -> auth
|
||||||
.requestMatchers("/login", "/register", "/css/**").permitAll()
|
.requestMatchers("/login", "/register", "/css/**", "/images/**").permitAll()
|
||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
)
|
)
|
||||||
.formLogin(form -> form
|
.formLogin(form -> form
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ body, html {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-box rows {
|
.login-box .rows {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -1,50 +1,46 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Create Thyme Crunch Account</title>
|
<title>Create Thyme Crunch Account</title>
|
||||||
<link rel="stylesheet" th:href="@{css/create-account.css}">
|
<link rel="stylesheet" th:href="@{css/create-account.css}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header class="top-header">
|
<header class="top-header">
|
||||||
<img src="images/header_left.png" alt="Violin f-hole shape to the left of header." class="swirl">
|
<img th:src="@{images/header_left.png}" alt="Violin f-hole shape to the left of header." class="swirl">
|
||||||
<h1 class="site-name">Thyme Crunch</h1>
|
<h1 class="site-name">Thyme Crunch</h1>
|
||||||
<img src="images/header_right.png" alt="Violin f-hole shape to the right of header." class="swirl">
|
<img th:src="@{images/header_right.png}" alt="Violin f-hole shape to the right of header." class="swirl">
|
||||||
|
</header>
|
||||||
|
|
||||||
</header>
|
<!-- Main Content -->
|
||||||
|
<main class="main-content">
|
||||||
<!-- Main Content -->
|
<div class="login-box">
|
||||||
<main class="main-content">
|
|
||||||
<div class="login-box">
|
|
||||||
<h2>Create Account</h2>
|
<h2>Create Account</h2>
|
||||||
|
|
||||||
<form id="createUserForm">
|
<form id="createUserForm">
|
||||||
|
<div class="rows">
|
||||||
|
<label for="username">Username</label>
|
||||||
|
<input type="text" id="username" required>
|
||||||
|
</div>
|
||||||
|
<div class="rows">
|
||||||
|
<label for="email">Email</label>
|
||||||
|
<input type="email" id="email" required>
|
||||||
|
</div>
|
||||||
|
<div class="rows">
|
||||||
|
<label for="password">Password</label>
|
||||||
|
<input type="password" id="password" required>
|
||||||
|
</div>
|
||||||
|
<div class="rows">
|
||||||
|
<label for="confirmPassword">Confirm Password</label>
|
||||||
|
<input type="password" id="confirmPassword" required>
|
||||||
|
</div>
|
||||||
|
<p id="passwordError"></p>
|
||||||
|
|
||||||
<div class="rows">
|
<button type="submit">Create</button>
|
||||||
<label for="username">Username</label>
|
</form>
|
||||||
<input type="text" id="username" required>
|
</div>
|
||||||
</div>
|
</main>
|
||||||
<div class="rows">
|
|
||||||
<label for="email">Email</label>
|
|
||||||
<input type="email" id="email" required>
|
|
||||||
</div>
|
|
||||||
<div class="rows">
|
|
||||||
<label for="password">Password</label>
|
|
||||||
<input type="password" id="password" required>
|
|
||||||
</div>
|
|
||||||
<div class="rows">
|
|
||||||
<label for="confirmPassword">Confirm Password</label>
|
|
||||||
<input type="password" id="confirmPassword" required>
|
|
||||||
</div>
|
|
||||||
<p id="passwordError"></p>
|
|
||||||
|
|
||||||
<button type="submit">Create</button>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header class="top-header">
|
<header class="top-header">
|
||||||
<img src="images/header_left.png" alt="Violin f-hole shape to the left of header." class="swirl">
|
<img th:src="@{images/header_left.png}" alt="Violin f-hole shape to the left of header." class="swirl">
|
||||||
<h1 class="site-name">Thyme Crunch</h1>
|
<h1 class="site-name">Thyme Crunch</h1>
|
||||||
<img src="images/header_right.png" alt="Violin f-hole shape to the right of header." class="swirl">
|
<img th:src="@{images/header_right.png}" alt="Violin f-hole shape to the right of header." class="swirl">
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header class="top-header">
|
<header class="top-header">
|
||||||
<img src="images/header_left.png" alt="Violin f-hole shape to the left of header." class="swirl">
|
<img th:src="@{images/header_left.png}" alt="Violin f-hole shape to the left of header." class="swirl">
|
||||||
<h1 class="site-name">Thyme Crunch</h1>
|
<h1 class="site-name">Thyme Crunch</h1>
|
||||||
<img src="images/header_right.png" alt="Violin f-hole shape to the right of header." class="swirl">
|
<img th:src="@{images/header_right.png}" alt="Violin f-hole shape to the right of header." class="swirl">
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user