Skip to content

Commit

Permalink
added new colored theme to app's interface
Browse files Browse the repository at this point in the history
  • Loading branch information
tsviz committed Jul 18, 2023
1 parent fb48f8d commit e82fab9
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 3 deletions.
46 changes: 45 additions & 1 deletion src/main/resources/templates/edit_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,49 @@
<head>
<meta charset="utf-8" />
<title>Edit Sale</title>
<style>
body {
background-color: lightblue;
font-family: Arial, sans-serif;
}
h1 {
color: green;
text-shadow: 2px 2px #ccc;
}
table {
border-collapse: collapse;
border: 1px solid yellow;
box-shadow: 2px 2px 5px #ccc;
}
td {
padding: 10px;
text-align: left;
border: 1px solid yellow;
}
input[type="text"] {
padding: 5px;
border-radius: 5px;
border: 1px solid yellow;
background-color: green;
color: yellow;
}
input[type="text"]:read-only {
background-color: yellow;
color: green;
}
button[type="submit"] {
padding: 5px 10px;
border-radius: 5px;
border: 1px solid yellow;
background-color: green;
color: yellow;
box-shadow: 2px 2px 5px #ccc;
}
button[type="submit"]:hover {
background-color: yellow;
color: green;
}
</style>
</head>
<body>
<div align="center">
Expand Down Expand Up @@ -35,4 +78,5 @@ <h1>Edit Sale</h1>
</table>
</form>
</div>
</body>
</body>
</html>
48 changes: 47 additions & 1 deletion src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,59 @@
<head>
<meta charset="utf-8"/>
<title>Sales Manager Application</title>
<style>
body {
background-color: rgb(200, 222, 230);
font-family: Arial, sans-serif;
}
h1 {
color: green;
text-shadow: 2px 2px #ccc;
}
table {
border-collapse: collapse;
border: 1px solid rgb(239, 239, 198);
box-shadow: 2px 2px 5px #ccc;
}
th, td {
padding: 10px;
text-align: left;
border: 1px solid rgb(17, 255, 0);
}
th {
background-color: green;
color: yellow;
}
tr:nth-child(even) {
background-color: rgb(214, 226, 194);
}
tr:nth-child(odd) {
background-color: rgb(237, 241, 203);
}
tr:hover {
background-color: rgb(114, 150, 100);
}
a {
color: yellow;
text-decoration: none;
border: 1px solid yellow;
padding: 5px 10px;
border-radius: 5px;
background-color: green;
box-shadow: 2px 2px 5px #ccc;
}
a:hover {
background-color: yellow;
color: green;
}
</style>
</head>
<body>
<div align="center">
<h1>Sales Records</h1>
<a href="/new">Enter New Sale</a>
<br/><br/>
<table border="1" cellpadding="10">
<table>
<thead>
<tr>
<th>ID</th>
Expand Down
42 changes: 41 additions & 1 deletion src/main/resources/templates/new_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,45 @@
<head>
<meta charset="utf-8" />
<title>New Sale</title>
<style>
body {
background-color: lightblue;
font-family: Arial, sans-serif;
}
h1 {
color: green;
text-shadow: 2px 2px #ccc;
}
table {
border-collapse: collapse;
border: 1px solid yellow;
box-shadow: 2px 2px 5px #ccc;
}
td {
padding: 10px;
text-align: left;
border: 1px solid yellow;
}
input[type="text"] {
padding: 5px;
border-radius: 5px;
border: 1px solid yellow;
background-color: green;
color: yellow;
}
button[type="submit"] {
padding: 5px 10px;
border-radius: 5px;
border: 1px solid yellow;
background-color: green;
color: yellow;
box-shadow: 2px 2px 5px #ccc;
}
button[type="submit"]:hover {
background-color: yellow;
color: green;
}
</style>
</head>
<body>
<div align="center">
Expand Down Expand Up @@ -31,4 +70,5 @@ <h1>Enter New Sale</h1>
</table>
</form>
</div>
</body>
</body>
</html>

0 comments on commit e82fab9

Please sign in to comment.