Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions h origin 92314ea508a61ba1034b161814e0caaf543550cekorsun-ye
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
commit 92314ea508a61ba1034b161814e0caaf543550ce (HEAD -> master)
Author: Korsun Lisa <eliza.bet.kors@gmail.com>
Date: Thu Nov 30 00:36:42 2023 +0200

hawaiian page

commit f82050a94acc92b32c860721589f512934b6d633 (origin/master, origin/HEAD)
Author: Viktor Matsiuk <mviktorfier@ukr.net>
Date: Wed Nov 29 12:24:53 2023 +0200

site swich

commit f5e6b00ae7e516e2af2985fd2dd9b81928fe0026
Author: Viktor Matsiuk <mviktorfier@ukr.net>
Date: Wed Nov 29 11:25:36 2023 +0200

Start commit
17 changes: 17 additions & 0 deletions src/main/java/ToPizza/com/HomeController.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,25 @@ public String otherPage(Model model) {
return "other";
}

@GetMapping("/hawaiian")
public String hawaiianPage(Model model) {
model.addAttribute("message", "This is the Hawaiian Page!");
return "hawaiian";
}

@GetMapping("/american")
public String americanPage(Model model) {
model.addAttribute("message", "This is the American Page!");
return "american";
}

@PostMapping("/submit")
public String submit() {
return "redirect:/other";
}

@PostMapping("/back")
public String back() {
return "redirect:/home";
}
}
62 changes: 62 additions & 0 deletions src/main/resources/templates/american.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en"></html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Американа</title>
<style>
body {
font-family: 'Arial', sans-serif;
display: flex;
justify-content: flex-start;
align-items: center;
text-align: left;
padding: 20px;
}

.content {
flex: 1;
}

h1 {
font-size: 94px;
font-weight: 900;
margin-bottom: 10px;
}

h2 {
font-size: 54px;
font-weight: bold;
margin-bottom: 10px;
}

p {
font-size: 54px;
margin-bottom: 10px;
}

img {
max-width: 100%;
height: auto;
}
</style>
</head>
<body>
<div class="content">
<h1>Американа</h1>
<h2>139 UAH</h2>
<p>Салямі, куряче філе, балик, гриби, помідор, чеддер, моцарела</p>
<p>610g</p>
<h1 th:text="${message}"></h1>
<a th:href="@{/}">Go back to Home Page</a>
<br/>
<form action="/back" method="post">
<button type="back">Go back</button>
</form>
</div>

<img src="https://cdn-media.choiceqr.com/prod-eat-bakery-novoprich/menu/bEHWQEw-WpzIOFB-QFEGFO.jpeg" alt="Американа">

</body>
</html>
62 changes: 62 additions & 0 deletions src/main/resources/templates/hawaiian.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en"></html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Гавайська піца</title>
<style>
body {
font-family: 'Arial', sans-serif;
display: flex;
justify-content: flex-start;
align-items: center;
text-align: left;
padding: 20px;
}

.content {
flex: 1;
}

h1 {
font-size: 94px;
font-weight: 900;
margin-bottom: 10px;
}

h2 {
font-size: 54px;
font-weight: bold;
margin-bottom: 10px;
}

p {
font-size: 54px;
margin-bottom: 10px;
}

img {
max-width: 100%;
height: auto;
}
</style>
</head>
<body>
<div class="content">
<h1>Гавайська</h1>
<h2>129 UAH</h2>
<p>Балик, куряче філе, ананас, кукурудза, моцарела</p>
<p>580g</p>
<h1 th:text="${message}"></h1>
<a th:href="@{/}">Go back to Home Page</a>
<br/>
<form action="/back" method="post">
<button type="back">Go back</button>
</form>
</div>

<img src="https://cdn-media.choiceqr.com/prod-eat-bakery-nezalezh/menu/xFDDVyG-GvqSdRx-fbNhZFS.jpeg" alt="Гавайська піца">

</body>
</html>