From 6a96565ca3033745dca471eb478409b3a665e4c6 Mon Sep 17 00:00:00 2001 From: "benoit.kezel@gmail.com" Date: Mon, 2 Nov 2020 13:28:49 +0100 Subject: [PATCH] Adding teacher marks --- public/stylesheets/style.css | 95 ++++++++++- public/stylesheets/style.css.map | 2 +- public/stylesheets/style.sass | 91 ++++++++++- views/index.pug | 32 +++- views/marks.pug | 262 ++++++++++++++++++++----------- 5 files changed, 377 insertions(+), 105 deletions(-) diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 2388b7e..5eb45d4 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -50,10 +50,12 @@ i { background-color: #2a2a2a; height: 100vh; border-right: 2px solid #a1a1a1; - padding: 0; } + padding: 0; + position: fixed; } -.main { - background-color: #101010; } +#main { + background-color: #101010; + margin-left: 16vw; } #navtop { font-size: 30px; } @@ -91,7 +93,6 @@ i { padding-top: 1vh; padding-bottom: 1vh; margin: 0; - background: radial-gradient(circle, #014f74 20%, #0f0f63 100%); text-align: center; } #navprofile p { margin-top: 1vh; @@ -99,6 +100,15 @@ i { #navprofile a { cursor: pointer; } +.student { + background: radial-gradient(circle, #014f74 20%, #0f0f63 100%); } + +.teacher { + background: radial-gradient(circle, #057401 20%, #0b440a 100%); } + +.admin { + background: radial-gradient(circle, #744a01 20%, #632a0f 100%); } + #page { margin: 0; } @@ -227,6 +237,7 @@ h3 { font-size: 30px; } #marks table td { font-size: 25px; + cursor: pointer; padding: 0; text-align: center; background-color: #2a2a2a; @@ -260,6 +271,80 @@ div#visible { display: block; } div#visible + div { - filter: blur(4px); } + filter: blur(4px) grayscale(80%); } + +.marksgroup { + display: none; + margin-top: 300px; } + .marksgroup h3 { + background-color: #0099ff; + margin: 0; + padding: 20px; + font-size: 30px; } + +#flexgroup { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-around; + background: #2a2a2a; } + #flexgroup p { + background-color: #686868; + cursor: pointer; + padding: 20px; + font-size: 25px; } + +#markstable { + width: 95%; + table-layout: fixed; + margin: auto; } + #markstable tbody { + display: block; + height: 70vh; + overflow: auto; } + #markstable thead, #markstable tbody tr { + display: table; + width: 100%; + table-layout: fixed; } + #markstable ::placeholder { + color: #000; + opacity: 1; } + #markstable th { + background-color: #0099ff; + border: 2px solid white; + text-align: center; + font-size: 30px; } + #markstable th input { + font-size: 30px; + border: none; + color: white; + text-align: center; } + #markstable tr td { + background-color: #686868; } + #markstable tr:nth-child(even) td { + background-color: #2a2a2a; } + #markstable td { + text-align: center; + font-size: 25px; + border: 1px solid #e0e0e0; } + #markstable td input { + font-size: 25px; + border: none; + color: white; + text-align: center; } + +#marksubmit { + display: block; + width: 30%; + background-color: #0099ff; + margin-top: 50px; + color: white; + border: none; + margin-left: auto; + margin-right: auto; + font-size: 30px; + padding: 15px; + cursor: pointer; + margin-bottom: 50px; } /*# sourceMappingURL=style.css.map */ \ No newline at end of file diff --git a/public/stylesheets/style.css.map b/public/stylesheets/style.css.map index d08575c..dbc65d9 100644 --- a/public/stylesheets/style.css.map +++ b/public/stylesheets/style.css.map @@ -5,5 +5,5 @@ "style.sass" ], "names": [], - "mappings": "AAUA,AAAA,IAAI,CAAC;EACH,OAAO,EAAE,IAAI;EACb,IAAI,EAAE,kDAAkD;EACxD,KAAK,EAAE,KAAK;EACZ,gBAAgB,EAZV,OAAO;EAab,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC,GAAG;;AAEf,AAAA,EAAE,CAAC;EACD,UAAU,EAAE,MAAM,GAAG;;AAEvB,AAAA,EAAE,CAAC;EACD,KAAK,EAhBC,OAAO;EAiBb,UAAU,EAAE,CAAC;EACb,UAAU,EAAE,MAAM,GAAG;;AAEvB,AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC;EAC3B,OAAO,EAAE,GAAG,GAAG;;AAEjB,AAAA,SAAS,CAAC;EACR,UAAU,EAAE,IAAI;EAChB,gBAAgB,EA5BV,OAAO;EA6Bb,aAAa,EAAE,GAAG,GAsBqB;E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ACf,MAAM,EAAE,IAAI;MACZ,KAAK,EAAE,KAAK;MACZ,UAAU,EAAE,MAAM,GAAG;;AAE3B,AAAA,WAAW,CAAC;EACV,OAAO,EAAE,KAAK;EACd,KAAK,EAAE,GAAG;EACV,gBAAgB,EAtWN,OAAO;EAuWjB,UAAU,EAAE,IAAI;EAChB,KAAK,EAAE,KAAK;EACZ,MAAM,EAAE,IAAI;EACZ,WAAW,EAAE,IAAI;EACjB,YAAY,EAAE,IAAI;EAClB,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,IAAI;EACb,MAAM,EAAE,OAAO;EACf,aAAa,EAAE,IAAI,GAAG" } \ No newline at end of file diff --git a/public/stylesheets/style.sass b/public/stylesheets/style.sass index f618647..644340a 100644 --- a/public/stylesheets/style.sass +++ b/public/stylesheets/style.sass @@ -62,9 +62,11 @@ i height: 100vh; border-right: 2px solid $light3; padding: 0; + position: fixed; -.main +#main background-color: $dark1; + margin-left: 16vw; #navtop font-size: 30px; @@ -103,7 +105,6 @@ i padding-top: 1vh; padding-bottom: 1vh; margin: 0; - background: radial-gradient(circle, rgb(1, 79, 116) 20%, rgb(15, 15, 99) 100%); text-align: center; p @@ -113,6 +114,13 @@ i a cursor: pointer; +.student + background: radial-gradient(circle, rgb(1, 79, 116) 20%, rgb(15, 15, 99) 100%); +.teacher + background: radial-gradient(circle, rgb(5, 116, 1) 20%, rgb(11, 68, 10) 100%); +.admin + background: radial-gradient(circle, rgb(116, 74, 1) 20%, rgb(99, 42, 15) 100%); + #page margin: 0; @@ -247,6 +255,7 @@ h3 font-size: 30px; td font-size: 25px; + cursor: pointer; padding: 0; text-align: center; background-color: $dark2; @@ -281,4 +290,80 @@ div#visible display: block; div#visible + div - filter: blur(4px); \ No newline at end of file + filter: blur(4px) grayscale(80%); + +.marksgroup + display: none; + margin-top: 300px; + h3 + background-color: $secondary; + margin: 0; + padding: 20px; + font-size: 30px; + +#flexgroup + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-around; + background: $dark2; + p + background-color: $medium; + cursor: pointer; + padding: 20px; + font-size: 25px; + +#markstable + width: 95%; + table-layout: fixed; + margin: auto; + tbody + display: block; + height: 70vh; + overflow: auto; + thead, tbody tr + display: table; + width: 100%; + table-layout: fixed; + ::placeholder + color: #000; + opacity: 1; + th + background-color: $secondary; + border: 2px solid white; + text-align: center; + font-size: 30px; + input + font-size: 30px; + border: none; + color: white; + text-align: center; + tr + td + background-color: $medium; + tr:nth-child(even) + td + background-color: $dark2; + td + text-align: center; + font-size: 25px; + border: 1px solid $light; + input + font-size: 25px; + border: none; + color: white; + text-align: center; + +#marksubmit + display: block; + width: 30%; + background-color: $secondary; + margin-top: 50px; + color: white; + border: none; + margin-left: auto; + margin-right: auto; + font-size: 30px; + padding: 15px; + cursor: pointer; + margin-bottom: 50px; \ No newline at end of file diff --git a/views/index.pug b/views/index.pug index 60a40ca..2b080c1 100644 --- a/views/index.pug +++ b/views/index.pug @@ -6,10 +6,19 @@ block content - var admin = false div(class="row" id="page") div(class="col s2" id="panel") - div(id="navprofile") - p Kezel Benoit - p G4S3 - a Logout + if student === true + div(id="navprofile" class="student") + p Kezel Benoit + p G4S3 + a Logout + if teacher === true + div(id="navprofile" class="teacher") + p Kezel Benoit + a Logout + if admin === true + div(id="navprofile" class="admin") + p Kezel Benoit + a Logout div(id="navtop") ul @@ -26,6 +35,17 @@ block content a(href="https://clarolineconnect.univ-lyon1.fr/") Claroline li a School and student life + if teacher === true + li + a Home + li(class="active") + a Planning + li + a Marks + li + a(href="https://mail.univ-lyon1.fr/owa/") Mail + li + a(href="https://clarolineconnect.univ-lyon1.fr/") Claroline if admin === true li(class="active") a Accueil @@ -36,5 +56,5 @@ block content li a Gestion des profils - div(class="col s10 main") - include edt.pug + div(class="col s10" id="main") + include marks.pug diff --git a/views/marks.pug b/views/marks.pug index 637e7ad..544679a 100644 --- a/views/marks.pug +++ b/views/marks.pug @@ -1,103 +1,185 @@ -div(class="marksdetails") - table - tr - th(colspan="2") Details - tr - td DS 1 - tr - td Rang : 10/29 - tr - td Coeff : 1.5 - tr - td Moyenne de classe : 12 -div(class="row" id="marks") - div(class="col s12 m6 l4") +if student === true + div(class="marksdetails" id="visibl") table - thead - tr - th(colspan="2") Maths - tbody - tr - td - p DS 1 - p 18/20 - td - p DS 2 - p 16/20 - tr - td - p DS 1 - p 18/20 - td - p DS 2 - p 16/20 - tr - td - p DS 1 - p 18/20 - td - p DS 2 - p 16/20 + tr + th(colspan="2") Details + tr + td DS 1 + tr + td Rang : 10/29 + tr + td Coeff : 1.5 + tr + td Moyenne de classe : 12 + div(class="row" id="marks") + div(class="col s12 m6 l4") + table + thead + tr + th(colspan="2") Maths + tbody + tr + td + p DS 1 + p 18/20 + td + p DS 2 + p 16/20 + tr + td + p DS 1 + p 18/20 + td + p DS 2 + p 16/20 + tr + td + p DS 1 + p 18/20 + td + p DS 2 + p 16/20 - div(class="col s12 m6 l4") - table - thead - tr - th(colspan="2") TP SE - tbody - tr - td - p DS 1 - p 18/20 - td - p DS 2 - p 16/20 - tr - td - p DS 1 - p 18/20 - td - p DS 2 - p 16/20 + div(class="col s12 m6 l4") + table + thead + tr + th(colspan="2") TP SE + tbody + tr + td + p DS 1 + p 18/20 + td + p DS 2 + p 16/20 + tr + td + p DS 1 + p 18/20 + td + p DS 2 + p 16/20 - div(class="col s12 m6 l4") - table - thead - tr - th(colspan="2") PHP - tbody - tr - td - p DS 1 - p 18/20 - td - p DS 2 - p 16/20 - tr - td - p DS 1 - p 18/20 - td - p DS 2 - p 16/20 + div(class="col s12 m6 l4") + table + thead + tr + th(colspan="2") PHP + tbody + tr + td + p DS 1 + p 18/20 + td + p DS 2 + p 16/20 + tr + td + p DS 1 + p 18/20 + td + p DS 2 + p 16/20 - div(class="col s12 m6 l4") - table + div(class="col s12 m6 l4") + table + thead + tr + th(colspan="2") Anglais + tbody + tr + td + p DS 1 + p 18/20 + td + p DS 2 + p 16/20 + tr + td + p DS 1 + p 18/20 + td + p DS 2 + p 16/20 + +if teacher === true + div(class="row") + div(class="col s12 m10 offset-m1 marksgroup") + h3 Selectionnez un groupe + div(id="flexgroup") + p G1S1 + p G2S2 + p G3S3 + + form + table(id="markstable") thead tr - th(colspan="2") Anglais + th Noms + th + input(type="text" value="DS1") + th + input(type="text" placeholder="Ajouter une note") tbody tr + td Test td - p DS 1 - p 18/20 + input(type="number" value="16") td - p DS 2 - p 16/20 + input(type="number") tr + td Keze td - p DS 1 - p 18/20 + input(type="number" value="16") td - p DS 2 - p 16/20 \ No newline at end of file + input(type="number") + tr + td Kezel + td + input(type="number" value="16") + td + input(type="number") + tr + td Kezel + td + input(type="number" value="16") + td + input(type="number") + tr + td Kezel + td + input(type="number" value="16") + td + input(type="number") + tr + td Kezel + td + input(type="number" value="16") + td + input(type="number") + tr + td Kezel + td + input(type="number" value="16") + td + input(type="number") + tr + td Kezel + td + input(type="number" value="16") + td + input(type="number") + tr + td Kezel + td + input(type="number" value="16") + td + input(type="number") + tr + td Kezel + td + input(type="number" value="16") + td + input(type="number") + input(id="marksubmit" type="submit" value="Enregistrer") \ No newline at end of file