diff --git a/WEB/View/src/CSS/Eni.css b/WEB/View/src/CSS/Eni.css index e496983c..b9d363f1 100644 --- a/WEB/View/src/CSS/Eni.css +++ b/WEB/View/src/CSS/Eni.css @@ -61,13 +61,18 @@ h1, h2, h3, h4, h5, h6 { } #console { + font-family: DejaVu Sans Mono, monospace; font-size: 0.8rem; letter-spacing: 1px; background-color: #222831; - color: #fff; - border: solid 1px #414141; - border-radius: 5px; resize: none; + color: #fff; + border: 1px solid #44fff6; + box-shadow: 0 0 1px #fff, + 0 0 1px #fff, + 0 0 5px #44fff6, + 0 0 5px #44fff6, + inset 0 0 5px #44fff6; } /***** End Editor + Console CSS *****/ diff --git a/WEB/View/src/CSS/Enigme.css b/WEB/View/src/CSS/Enigme.css deleted file mode 100644 index 02f79283..00000000 --- a/WEB/View/src/CSS/Enigme.css +++ /dev/null @@ -1,354 +0,0 @@ -/*Fonts CSS */ - -@import url("https://fonts.googleapis.com/css2?family=Orbitron&display=swap"); - -/*Default CSS*/ -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - margin: 0; - padding: 0; - line-height: normal; -} - -p, -a, -li, -button, -ul { - margin: 0; - padding: 0; - line-height: normal; - text-decoration: none !important; -} - -a:hover { - text-decoration: none !important; -} - -input:focus, -textarea:focus, -select:focus { - outline: none; -} - -@media (min-width: 1700px) { - main .buttons { - max-width: 100%; - padding: 0 150px; - } -} - -/* Main CSS */ -html { - scroll-behavior: smooth; - height: 100vh; - background-position: center center; - background-color: #464646; - background-attachment: fixed; - background-repeat: no-repeat; - background-size: cover; -} - -body { - display: flex; - font-family: "Orbitron", sans-serif; - flex-direction: row; - align-items: stretch; - height: 95%; - margin-top: 10px; - padding: 0; - - --light: hsl(220, 50%, 90%); - --primary: hsl(255, 30%, 55%); - --focus: hsl(210, 90%, 50%); - --border-color: hsla(0, 0%, 100%, 0.2); - --global-background: hsl(220, 25%, 10%); - --background: linear-gradient(to right, #040a29, #0e1538); - --shadow-1: #0b1b78; - --shadow-2: #173c45; -} - -.enigme { - width: 25%; - height: fit-content; - color: aliceblue; - background: rgba(0, 0, 0, 0.6); - box-sizing: border-box; - border-radius: 10px; - padding: 10px; - margin-left: 10px; - margin-right: 20px; - letter-spacing: 1.2px; -} - -.titre_pre { - display: flex; - margin-top: 10px; - margin-right: 10px; - margin-bottom: 20px; - padding-left: 10px; -} - -.sign { - margin-left: 5%; -} - -/* Main Button Css */ - -.buttons { - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - cursor: pointer; -} - -.compiler_class .buttons div { - display: flex; -} - -.buttons .btn { - position: relative; - width: 120px; - height: 60px; - display: inline-block; - background: transparent; - margin: 20px; -} - -.buttons .btn:before, -.buttons .btn:after { - content: ""; - position: absolute; - inset: 0; - transition: 0.5s; - background: #f00; -} - -.buttons .btn:nth-child(1):before, -.buttons .btn:nth-child(1):after { - background: linear-gradient(45deg, #00ccff, #0e1538, #d400d4); -} - -.buttons .btn:nth-child(2):before, -.buttons .btn:nth-child(2):after { - background: linear-gradient(45deg, #d400d4, #0e1538, #fb5942); -} - -.buttons .btn:hover:before { - inset: -3px; -} - -.buttons .btn:hover:after { - inset: -3px; - filter: blur(10px); -} - -.buttons .btn span { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - display: inline-block; - background: #0e1538; - z-index: 10; - display: flex; - justify-content: center; - align-items: center; - font-size: 1.2em; - text-transform: uppercase; - letter-spacing: 2px; - color: #fff; - border: 1px solid #040a29; - overflow: hidden; -} - -.buttons .btn span::before { - content: ""; - position: absolute; - top: 0; - left: -50%; - width: 100%; - height: 100%; - background: rgba(255, 255, 255, 0.075); - transform: skew(25deg); -} - -.buttons .btn .noAnimation { - animation: none; - font-size: 1em; -} - -/* Console CSS*/ - -.compiler_class { - width: 30%; -} - -#console { - font-size: 0.8rem; - opacity: 0.85; - letter-spacing: 1px; - background-color: #040a29; - color: #fff; - border: solid 1px #414141; - padding: 10px; - margin-left: 10px; - margin-right: 10px; - max-width: 95%; - max-height: 85%; - line-height: 1.5; - border-radius: 5px; - resize: none; -} - -/* Ace CSS*/ - -.ace { - width: 45%; - max-height: 100%; - margin-bottom: 0; - margin-right: 10px; -} - -/* Text Css */ - -.enigme h1 { - font-size: 1.5rem !important; - font-weight: 700; - text-align: center; -} -.enigme .sign { - display: contents; -} - -.enigme h2 { - font-size: 1.5rem; - font-weight: 600; -} - -.enigme p { - font-size: 1rem; - font-weight: 400; - margin-right: 10px; -} - -#result { - display: flex; - align-items: center; - margin: 0 30px; - font-size: 1.5rem; -} - -/* Modal CSS */ - -.modal-container { - position: fixed; - top: 0; - left: 0; - z-index: 10; - - display: none; - justify-content: center; - align-items: center; - - width: 100%; - height: 100%; - background: var(--m-background); -} - -.modal-container:target { - display: flex; - align-items: center; -} - -.modal { - display: flex; - justify-content: center; - align-items: flex-end; - width: 30%; - height: 35%; - padding: 10px 0; - border-radius: 0.8rem; - - color: aliceblue; - background: var(--background); - box-shadow: var(--m-shadow, 0.4rem 0.4rem 8.2rem 0.2rem) var(--shadow-1); - position: relative; - overflow: hidden; -} - -/* Modal H1 */ - -.modal #containerResult { - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - width: 80%; - height: 100%; -} - -/* Modal Container Buttons */ - -.modal .buttons { - display: flex; - align-items: flex-end; - height: 100%; - width: auto; -} - -.modal .buttons #top { - display: flex; - justify-content: flex-end; - align-items: flex-start; - width: auto; - height: 50%; -} - -.modal .buttons #bottom { - display: flex; - justify-content: center; - align-items: flex-end; - width: auto; - height: 50%; -} - -/* Modal buttons btn */ - -.modal .buttons .btn { - width: 30px; - height: 30px; - margin: 0 15px; -} - -.modal .buttons #bottom { - width: 100%; -} - -.modal .buttons #fleche { - display: none; - width: 75px; - height: 40px; -} - -.modal .buttons .btn span { - background: #06124b; - color: white; -} - -.modal .buttons #bottom .btn:nth-child(1):before, -.modal .buttons #bottom .btn:nth-child(1):after { - background: linear-gradient(45deg, #d400d4, #0e1538, #fb5942); -} diff --git a/WEB/View/src/CSS/Enigmev2.css b/WEB/View/src/CSS/Enigmev2.css deleted file mode 100644 index 14b2a092..00000000 --- a/WEB/View/src/CSS/Enigmev2.css +++ /dev/null @@ -1,226 +0,0 @@ -/*Fonts CSS */ - -@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap'); - -/*Default CSS*/ - - -/*Ace CSS */ - -.ace{ - width: 100%; - height: 100%; -} - - -/* Main Button Css */ - -.buttons{ - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - cursor: pointer; -} - -.compiler_class .buttons div{ - display: flex; -} - -.buttons .btn{ - position: relative; - width: 120px; - height: 60px; - display: inline-block; - background: transparent; - margin: 20px; - } - - - .buttons .btn:before, .buttons .btn:after - { - content:''; - position: absolute; - inset: 0; - transition: 0.5s; - background: #f00 - } - - -.buttons .btn:nth-child(1):before, .buttons .btn:nth-child(1):after -{ - background: linear-gradient(45deg, #00ccff, #0e1538, #d400d4) -} - -.buttons .btn:nth-child(2):before, .buttons .btn:nth-child(2):after -{ - background: linear-gradient(45deg, #d400d4, #0e1538, #fb5942); -} - -.buttons .btn:hover:before -{ - inset: -3px; -} - -.buttons .btn:hover:after -{ - inset: -3px; - filter: blur(10px); -} - -.buttons .btn span{ - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - display: inline-block; - background: #0e1538; - z-index: 10; - display: flex; - justify-content: center; - align-items: center; - font-size: 1.2em; - text-transform: uppercase; - letter-spacing: 2px; - color: #fff; - border: 1px solid #040a29; - overflow: hidden; -} - -.buttons .btn span::before{ - content:''; - position: absolute; - top: 0; - left: -50%; - width: 100%; - height: 100%; - background: rgba(255,255,255,0.075); - transform: skew(25deg) -} - - - -.buttons .btn .noAnimation { - animation: none; - font-size: 1em; -} - - -/* Modal CSS */ - -.modal-container { - position: fixed; - top: 0; - left: 0; - z-index: 10; - - display: none; - justify-content: center; - align-items: center; - - width: 100%; - height: 100%; - background: var(--m-background); - } - - .modal-container:target { - display: flex; - align-items: center; - } - - .modal { - display: flex; - justify-content: center; - align-items: flex-end; - width: 30%; - height: 35%; - padding: 10px 0; - border-radius: .8rem; - - color: aliceblue; - background: var(--background); - box-shadow: var(--m-shadow, .4rem .4rem 8.2rem .2rem) var(--shadow-1); - position: relative; - overflow: hidden; - } - - /* Modal H1 */ - - .modal #containerResult{ - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - width: 80%; - height: 100%; - } - - - /* Modal Container Buttons */ - - .modal .buttons{ - display: flex; - align-items: flex-end; - height: 100%; - width: auto; - } - - .modal .buttons #top{ - display: flex; - justify-content: flex-end; - align-items: flex-start; - width: auto; - height: 50%; - } - - .modal .buttons #bottom{ - display: flex; - justify-content: center; - align-items: flex-end; - width: auto; - height: 50%; - } - - /* Modal buttons btn */ - - .modal .buttons .btn{ - width: 30px; - height: 30px; - margin : 0 15px; - } - - .modal .buttons #bottom{ - width: 100%; - } - - .modal .buttons #fleche{ - display: none; - width: 75px; - height: 40px; - } - - .modal .buttons .btn span{ - background: #06124b; - color: white; - } - - .modal .buttons #bottom .btn:nth-child(1):before, .modal .buttons #bottom .btn:nth-child(1):after - { - background: linear-gradient(45deg, #d400d4, #0e1538, #fb5942); - } - - /* Console CSS*/ - -#console{ - font-size: .8rem; - opacity: 0.85; - letter-spacing: 1px; - background-color: #040a29; - color: #fff; - border: solid 1px #414141; - max-width: 95%; - max-height: 85%; - line-height: 1.5; - resize: none; -} \ No newline at end of file diff --git a/WEB/View/src/JS/base.js b/WEB/View/src/JS/base.js index 745a5be5..ddcff1f7 100644 --- a/WEB/View/src/JS/base.js +++ b/WEB/View/src/JS/base.js @@ -110,12 +110,13 @@ function check() { } } + /** - * It gets all the elements with the class name "help" and sets their opacity to 1. + * It gets all the elements with the class name "help" and sets their display property to "flex". */ function displayHelp() { var help = document.getElementsByClassName("help"); for (var i = 0; i < help.length; i++) { - help[i].style.opacity = 1; + help[i].style.display = "flex"; } } diff --git a/WEB/View/src/pages/FirstTest.html b/WEB/View/src/pages/FirstTest.html new file mode 100644 index 00000000..34081cc5 --- /dev/null +++ b/WEB/View/src/pages/FirstTest.html @@ -0,0 +1,48 @@ + + +
+ + +