From 506e2285fda69e6e5ad498466149a705703474b1 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 18 Dec 2020 19:25:40 +0100 Subject: [PATCH] End --- .../controller/VotingController.java | 2 +- .../static/styles/voteSuccessful.css | 54 +++++++++++++++++++ .../resources/templates/voteSuccessful.html | 41 +++++++++++++- 3 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/static/styles/voteSuccessful.css diff --git a/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java b/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java index fe0669f..8e98735 100644 --- a/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java +++ b/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java @@ -227,7 +227,7 @@ public class VotingController { index++; } tableAction.updateCandidatesubmit_status(name, voterRepository); - return "candidateAddingSuccessful.html"; + return "voteSuccessful.html"; } } diff --git a/src/main/resources/static/styles/voteSuccessful.css b/src/main/resources/static/styles/voteSuccessful.css new file mode 100644 index 0000000..faaa063 --- /dev/null +++ b/src/main/resources/static/styles/voteSuccessful.css @@ -0,0 +1,54 @@ +body { + background-color: rgb(44, 49, 54); + font-family: Arial, Helvetica, sans-serif; +} + +.center-screen { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; +} + +.centered { + background: transparent; + margin: 0 auto; + padding: 20px; + width: 100%; + overflow: auto; +} + +h1 { + color: #FFF; +} + +h2 { + color: #FFF; +} + +h2.time_remain { + color: #6d6d78; +} + +.submitButton { + padding: .25em 0; + border: 0; + outline: 0; + background: #bb1515; + color: rgba(255, 255, 255, 0.85); + font-size: 2rem; + width: 500px; + letter-spacing: .0625rem; + border-radius: 12px; + box-shadow: 0 3px 5px 1px rgba(0, 0, 0, 0.25); + text-shadow: 0 -2px 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2); +} + +html, +body { + width: 100%; + height: 100%; + background-image: linear-gradient(to bottom right, #111E25 0%, #111 100%); + font-family: 'Lato', sans-serif; +} \ No newline at end of file diff --git a/src/main/resources/templates/voteSuccessful.html b/src/main/resources/templates/voteSuccessful.html index 566549b..777a7b7 100644 --- a/src/main/resources/templates/voteSuccessful.html +++ b/src/main/resources/templates/voteSuccessful.html @@ -1,10 +1,47 @@ - + + Title + - + +
+

Deine Auswahl fließt nun in die Wahl ein!

+

Danke fürs abstimmen!

+

Nächste Abstimmung in:

+ +
+ + + \ No newline at end of file