-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task 13 - User signup page #13
Merged
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b68ebe6
added signup template
YamiHeike 23a382b
SignupViewController
YamiHeike f9dcb85
added hyperlink to signup page in index.html
YamiHeike cc9d274
added logo. Edited SignupViewController for naming consistency
YamiHeike 15a7047
changed signup page design
YamiHeike 126d60a
changed the design
YamiHeike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/main/java/pl/ateam/disasteralerts/web/SignupViewController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package pl.ateam.disasteralerts.web; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
@Controller | ||
@RequestMapping("/signup") | ||
public class SignupViewController { | ||
@GetMapping | ||
public String signup() { | ||
return "signup"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
<title>DisasterAlerts</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | ||
</head> | ||
|
@@ -11,7 +11,7 @@ | |
<div class="container col-xl-10 col-xxl-8 px-4 py-5"> | ||
<div class="row align-items-center g-lg-5 py-5"> | ||
<div class="col-lg-7 text-center text-lg-start"> | ||
<h1 class="display-4 fw-bold lh-1 text-body-emphasis mb-3">DisasterAlert</h1> | ||
<h1 class="display-4 fw-bold lh-1 text-body-emphasis mb-3">DisasterAlerts</h1> | ||
<p class="col-lg-10 fs-4">Lorem ipsum dolor sit viverra</p> | ||
</div> | ||
<div class="col-md-10 mx-auto col-lg-5"> | ||
|
@@ -29,7 +29,7 @@ <h1 class="display-4 fw-bold lh-1 text-body-emphasis mb-3">DisasterAlert</h1> | |
<input type="checkbox" value="remember-me"> Remember me | ||
</label> | ||
</div> | ||
<button class="w-100 btn btn-lg btn-primary my-2" type="submit">Sign up</button> | ||
<a href="/signup" class="w-100 btn btn-lg btn-primary my-2" type="submit">Sign up</a> | ||
<button class="w-100 btn btn-lg btn-primary" type="submit">Sign in</button> | ||
<hr class="my-4"> | ||
<small class="text-body-secondary">By clicking Sign up, you agree to the terms of use.</small> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>DisasterAlerts - SignUp</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | ||
|
||
</head> | ||
<body class="bg-body-tertiary"> | ||
|
||
<div class="container"> | ||
<main> | ||
<div class="py-5 col-md-9 text-center mx-auto"> | ||
<!--Logo placeholder--> | ||
<img class="d-block mx-auto mb-4" src="#" alt=""> | ||
<h1 class="fw-bold">Disaster Alerts</h1> | ||
<p class="lead text-primary">Lorem ipsum dolor sit amet consectetur adipisicing elit.</p> | ||
</div> | ||
|
||
<div class="row g-5 justify-content-center"> | ||
<div class="col-md-8 col-lg-8"> | ||
<h4 class="mb-3">Rejestracja</h4> | ||
<form> | ||
<div class="row g-3"> | ||
<div class="col-12"> | ||
<label for="username" class="form-label">Nazwa użytkownika</label> | ||
<div class="input-group has-validation"> | ||
<span class="input-group-text">@</span> | ||
<input type="text" class="form-control" id="username" placeholder="Username" required> | ||
<div class="invalid-feedback"> | ||
Nazwa użytkownika jest wymagana | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-12"> | ||
<label for="email" class="form-label">Adres e-mail</label> | ||
<input type="email" class="form-control" id="email" placeholder="[email protected]"> | ||
<div class="invalid-feedback"> | ||
Niewłaściwy format adresu e-mail | ||
</div> | ||
</div> | ||
|
||
<div class="col-12"> | ||
<label for="address2" class="form-label">Numer Telefonu <span class="text-body-secondary">(Opcjonalnie)</span></label> | ||
<input type="text" class="form-control" id="address2" placeholder="xxx-xxx-xxx"> | ||
</div> | ||
|
||
<div class="col-md-7"> | ||
<label for="country" class="form-label">Województwo</label> | ||
<select class="form-select" id="country" required> | ||
<option value="">Choose...</option> | ||
<option>Województwo 1</option> | ||
</select> | ||
<div class="invalid-feedback"> | ||
Nie wybrano województwa | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-5"> | ||
<label for="state" class="form-label">Miasto</label> | ||
<select class="form-select" id="state" required> | ||
<option value="">Choose...</option> | ||
<option>Miasto 1</option> | ||
</select> | ||
<div class="invalid-feedback"> | ||
Nie wybrano miasta | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<hr class="my-4"> | ||
|
||
<h4 class="mb-3">Preferencje</h4> | ||
|
||
<div class="my-3"> | ||
<div class="form-check"> | ||
<input id="credit" name="paymentMethod" type="checkbox" class="form-check-input" checked> | ||
<label class="form-check-label" for="credit">Alerty mailowe</label> | ||
</div> | ||
<div class="form-check"> | ||
<input id="debit" name="paymentMethod" type="checkbox" class="form-check-input"> | ||
<label class="form-check-label" for="debit">Alerty SMS</label> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
<div class="col-md-7 col-lg-8 my-4"> | ||
<h4 class="d-flex justify-content-between align-items-center mb-3"> | ||
Zweryfikowany użytkownik | ||
</h4> | ||
<div class="card p-2"> | ||
<div class="input-group"> | ||
<input type="text" class="form-control" placeholder="Kod organizacji"> | ||
<button class="btn btn-secondary">Zweryfikuj</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<button class="w-100 btn btn-primary btn-lg" type="submit">Stwórz konto</button> | ||
</form> | ||
</div> | ||
</div> | ||
</main> | ||
|
||
<footer class="my-5 pt-5 text-body-secondary text-center text-small"> | ||
<p class="mb-1">© 2017–2024 Company Name</p> | ||
<ul class="list-inline"> | ||
<li class="list-inline-item"><a href="#">Kontakt</a></li> | ||
<li class="list-inline-item"><a href="#">Regulamin serwisu</a></li> | ||
<li class="list-inline-item"><a href="#">Pomoc</a></li> | ||
</ul> | ||
</footer> | ||
</div> | ||
</body> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tak jak przy indeksie nazwałaś metodę indexView()