Skip to content

Commit

Permalink
Merge pull request #1 from Adamo2499/dev
Browse files Browse the repository at this point in the history
Global fixes and improves
  • Loading branch information
Adamo2499 authored Jul 5, 2023
2 parents 59e5791 + 1239590 commit 1952c42
Show file tree
Hide file tree
Showing 38 changed files with 759 additions and 419 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

*.class
12 changes: 12 additions & 0 deletions WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" id="WebApp_ID">
<display-name>MusicBaseSpring</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
Binary file modified bin/main/musicbase/controllers/AlbumsController.class
Binary file not shown.
Binary file modified bin/main/musicbase/controllers/ArtistController.class
Binary file not shown.
Binary file modified bin/main/musicbase/controllers/SongsController.class
Binary file not shown.
Binary file modified bin/main/musicbase/models/Album.class
Binary file not shown.
Binary file modified bin/main/musicbase/models/Artist.class
Binary file not shown.
Binary file modified bin/main/musicbase/models/Song.class
Binary file not shown.
2 changes: 1 addition & 1 deletion bin/main/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<header th:replace="parts/parts.html :: header"></header><br />
<header th:replace="parts/parts.html :: header">MusicBase</header><br />
<nav>
<ul>
<li class="dropdown"><a href="/MusicBase">Strona główna</a></li>
Expand Down
298 changes: 152 additions & 146 deletions bin/main/static/style.css
Original file line number Diff line number Diff line change
@@ -1,146 +1,152 @@
@charset "UTF-8";
* {
margin: 0;
padding: 0;
}
.dropdown {
width: 25%;
}

.dropdown-content {
display: none;
position: absolute;
width: 25%;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
background-image: linear-gradient(to bottom right, red, darkred);

}

.dropdown:hover .dropdown-content {
display: block;
}

.dropdown-content a {
display: block;
color: white;
padding: 5px;
text-decoration: none;
}

.dropdown-content a:hover {
color: #FFFFFF;
background-color: red;
}

ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
/* background-color: #f00; */
background-image: linear-gradient(to bottom right, red, darkred);
}

li {
float: left;
}

li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}

header {
background-image: linear-gradient(to bottom right, darkred, red);
color: white;
text-align: center;
padding-bottom: 30px;
}

footer {
background-image: linear-gradient(to bottom right, darkred, red);
color: white;
text-align: center;
padding-bottom: 30px;
position:absolute;
bottom:0;
width:100%; /* Height of the footer */
position: fixed;
}

h2 {
text-align: center;
}

table,th,td {
text-align: center;
margin: 0 auto;
border: 1px solid black;
padding: 3px;
}

.form-inline {
text-align: center;
margin: 0 auto;
}

sup {
color: red;
}

img {
width: 50%;
height: 50%;
}

.alert {
text-align: center;
color: whitesmoke;
}

#buttons{
margin: 0 auto;
text-align: center;
width: 100%;
}

button {
transition-duration: 0.4s;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
font-size: 16px;
border-radius: 100rem;
margin: 0 auto;
}

input[type = file]{
background-color: #f4f4ec;
border: 1px solid #f8f4f4;
}

button[type = submit]{
background-color: #a00c04;
display: inline-flex;
justify-content: center;
align-items: center;
}

button[type = reset]{
background-color: black;
display: inline-flex;
justify-content: center;
align-items: center;
}

button:hover{
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

/* @media only screen and (max-width: 600px) {} */
@charset "UTF-8";

* {
margin: 0;
padding: 0;
}

.dropdown {
width: 25%;
}

.dropdown-content {
display: none;
position: absolute;
width: 25%;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
background-image: linear-gradient(to bottom right, red, darkred);

}

.dropdown:hover .dropdown-content {
display: block;
}

.dropdown-content a {
display: block;
color: white;
padding: 5px;
text-decoration: none;
}

.dropdown-content a:hover {
color: #FFFFFF;
background-color: red;
}

ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
/* background-color: #f00; */
background-image: linear-gradient(to bottom right, red, darkred);
}

li {
float: left;
}

li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}

header {
background-image: linear-gradient(to bottom right, darkred, red);
color: white;
text-align: center;
padding-bottom: 30px;
}

footer {
background-image: linear-gradient(to bottom right, darkred, red);
color: white;
text-align: center;
padding-bottom: 30px;
position: absolute;
bottom: 0;
width: 100%;
/* Height of the footer */
position: fixed;
}

h2 {
text-align: center;
}

table,
th,
td {
text-align: center;
margin: 0 auto;
border: 1px solid black;
padding: 3px;
}

.form-inline {
text-align: center;
margin: 0 auto;
}

sup {
color: red;
}

img {
width: 50%;
height: 50%;
}

.alert {
text-align: center;
color: whitesmoke;
}

button {
transition-duration: 0.4s;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
font-size: 16px;
border-radius: 100rem;
margin: 0 auto;
}

input[type=file] {
background-color: #f4f4ec;
border: 1px solid #f8f4f4;
}

button[type=submit] {
background-color: darkred;
display: inline-flex;
justify-content: center;
align-items: center;
}

.return {
background-color: #a00c04;
display: inline-flex;
justify-content: center;
align-items: center;
}

button[type=reset] {
background-color: black;
display: inline-flex;
justify-content: center;
align-items: center;
}

button:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

/* @media only screen and (max-width: 600px) {} */
34 changes: 34 additions & 0 deletions bin/main/templates/albums/details.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="pl">
<div th:replace="parts/parts.html :: head"></div>
<br />
<body>
<div th:replace="parts/parts.html :: header"></div>
<br />
<div th:replace="parts/parts.html :: nav"></div>
<br />
<main>
<h2>Szczegółowe dane albumu</h2>
<form th:action="@{#}" th:object="${album}" th:method="delete">
<table>
<tr>
<td>ID albumu:</td>
<td><input type="number" th:field="*{id}" readonly="readonly" /></td>
</tr>
<tr>
<td>Nazwa albumu:</td>
<td><input type="text" th:field="*{name}" readonly="readonly">
</td>
</tr>
<tr>
<td>Rok wydania</td>
<td><input type="number" th:field="*{publishingyear}"
readonly="readonly" /></td>
</tr>
</table>
</form>
</main>
<div th:replace="parts/parts.html :: footer"></div>
<br />
</body>
</html>
10 changes: 3 additions & 7 deletions bin/main/templates/albums/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,12 @@
<td th:text="${album.name}">Nazwa</td>
<td> <img th:src="'/images/'+${album.coverimage}" th:alt="'Zdjęcie albumu '+${album.name}"> </td>
<td th:text="${album.publishingyear}"></td>
<td> <a th:href="@{'/MusicBase/albums/edit/' + ${album.id}}">Edytuj</a></td>
<td> <a th:href="@{'/MusicBase/albums/delete/' + ${album.id}}">Usuń</a></td>
</tr>
<tr>
<td colspan="5">
<a href="/">Powrót na stronę główną</a>
</td>
<td> <a th:href="@{'/albums/edit/' + ${album.id}}">Edytuj</a></td>
<td> <a th:href="@{'/albums/show/' + ${album.id}}">Usuń</a></td>
</tr>
</tbody>
</table>
<a href="/"><button class="return">Powrót na stronę główną</button></a>
</main>
<div th:replace="parts/parts.html :: footer"></div><br />
</body>
Expand Down
Loading

0 comments on commit 1952c42

Please sign in to comment.