From 7f7fed1f0a4ce223f45201d335a534a5355cfd27 Mon Sep 17 00:00:00 2001 From: KEZEL BENOIT p1907091 Date: Mon, 23 Nov 2020 20:34:46 +0100 Subject: [PATCH] Adding edt popup template --- sass/style.sass | 27 ++++++- views/pages/edt.pug | 181 ++++++++++++++++++++++++-------------------- 2 files changed, 123 insertions(+), 85 deletions(-) diff --git a/sass/style.sass b/sass/style.sass index c0593fc..6607ce8 100644 --- a/sass/style.sass +++ b/sass/style.sass @@ -219,6 +219,7 @@ h3 .midi td height: 10vh + cursor: auto th background-color: $secondary text-align: center @@ -234,6 +235,7 @@ h3 td border-bottom: 1px solid white td + cursor: pointer text-align: center font-size: 15px background-color: $medium @@ -487,4 +489,27 @@ div#visible + div border-radius: 2px display: block margin: auto - cursor: pointer \ No newline at end of file + cursor: pointer + +.detailsedt + z-index: 1 + display: none + position: fixed + top: 20vh + left: 30% + background-color: $dark2 + width: 40% + border-radius: 50px + border: 1px solid $light3 + p + font-size: 20px + padding: 5px + color: white + margin: 0 + text-align: center + p:first-child + font-size: 25px + background-color: $secondary + border-top-right-radius: 50px + border-top-left-radius: 50px + diff --git a/views/pages/edt.pug b/views/pages/edt.pug index ace08ac..7634abf 100644 --- a/views/pages/edt.pug +++ b/views/pages/edt.pug @@ -1,87 +1,100 @@ extends ../template/navbar block content - table(id="edttable") - tr - th Monday - th Tuesday - th Wednesday - th Thursday - th Friday - tr - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - tr - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - tr(class="midi") - td - td - td - td - td - tr - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - tr - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - td - p Maths - p S26 - div(class="row" id="edtweek") - div(class="col s3 offset-s1") - i(class="large material-icons") fast_rewind - div(class="col s4") - h3 Week of the 02/11/2020 - div(class="col s3") - i(class="large material-icons") fast_forward \ No newline at end of file + - let variable = [{name:"",ue:{id:0,name:""},teachers:[{id:0,firstName:"",lastName:""}],location:[""],dateStart:Date,dateEnd:Date,group:{id:0,number:0,promotion:{id:0,name:""}},promotion:{id:0,name:""}}]; + div.detailsedt + p Maths + p S26 + p Mr. Jaloux + p G4S3 + p 08h à 10h + p UE------------ + + div + table(id="edttable") + tr + th Monday + th Tuesday + th Wednesday + th Thursday + th Friday + tr + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + tr + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + tr(class="midi") + td + td + td + td + td + tr + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + tr + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + td + p Maths + p S26 + + div(class="row" id="edtweek") + div(class="col s3 offset-s1") + i(class="large material-icons") fast_rewind + div(class="col s4") + h3 Week of the 02/11/2020 + div(class="col s3") + i(class="large material-icons") fast_forward + +