From 967bbf4ce333f7e2a5f82e76de4c99f46e536890 Mon Sep 17 00:00:00 2001 From: nathan boileau Date: Tue, 3 Jan 2023 15:49:34 +0100 Subject: [PATCH] fin style main page --- WEB/View/assets/svg/adminIcon.svg | 6 ++ WEB/View/src/CSS/Enigme.css | 2 +- WEB/View/src/CSS/Main2.css | 62 +++++++++++++++ WEB/View/src/pages/Main2.html | 124 ++++++++++++++++++++++++++---- 4 files changed, 176 insertions(+), 18 deletions(-) create mode 100644 WEB/View/assets/svg/adminIcon.svg diff --git a/WEB/View/assets/svg/adminIcon.svg b/WEB/View/assets/svg/adminIcon.svg new file mode 100644 index 00000000..46bba92f --- /dev/null +++ b/WEB/View/assets/svg/adminIcon.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/WEB/View/src/CSS/Enigme.css b/WEB/View/src/CSS/Enigme.css index 37305c82..d3eafba8 100644 --- a/WEB/View/src/CSS/Enigme.css +++ b/WEB/View/src/CSS/Enigme.css @@ -9,7 +9,7 @@ body { min-height: 100vh; - font-family: Verdana, Arial, Helvetica, sans-serif; + font-family: "Fauna", sans-serif; color: white; scroll-behavior: smooth; height: 100vh; diff --git a/WEB/View/src/CSS/Main2.css b/WEB/View/src/CSS/Main2.css index 1327f16c..ecda7728 100644 --- a/WEB/View/src/CSS/Main2.css +++ b/WEB/View/src/CSS/Main2.css @@ -328,3 +328,65 @@ button { -ms-transform: scale(0.95); -o-transform: scale(0.95); } + + + +/* Button admin */ + + +.btn { + width: 150px; + height: 50px; + border-radius: 5px; + border: none; + transition: all 0.5s ease-in-out; + font-size: 20px; + font-weight: 600; + display: flex; + align-items: center; + background: #040f16; + color: #f5f5f5; +} + +.btn:hover { + box-shadow: 0 0 20px 0px #2e2e2e3a; +} + +.btn .icon { + position: absolute; + height: 25px; + width: 25px; + display: flex; + justify-content: center; + align-items: center; + transition: all 0.5s; + -webkit-transition: all 0.5s; + -moz-transition: all 0.5s; + -ms-transition: all 0.5s; + -o-transition: all 0.5s; +} + +.btn .text { + transform: translateX(40px); + -webkit-transform: translateX(40px); + -moz-transform: translateX(40px); + -ms-transform: translateX(40px); + -o-transform: translateX(40px); +} + +.btn:hover .icon { + width: 130px; +} + +.btn:hover .text { + transition: all 0.5s; + opacity: 0; +} + +.btn:focus { + outline: none; +} + +.btn:active .icon { + transform: scale(0.85); +} \ No newline at end of file diff --git a/WEB/View/src/pages/Main2.html b/WEB/View/src/pages/Main2.html index 5e569836..bee0e27d 100644 --- a/WEB/View/src/pages/Main2.html +++ b/WEB/View/src/pages/Main2.html @@ -47,7 +47,12 @@ +