Commit d64a0533 authored by Arthur Chaigneau's avatar Arthur Chaigneau
Browse files

Merge branch 'develop' of labs.pixelswap.fr:Avis-de-Template/server into develop

parents de87d87c 613dd169
......@@ -64,3 +64,7 @@ exports.logout = function(req, res, next) {
exports.location = function(req, res, next) {
res.render('map');
}
exports.dashboard = function(req, res, next) {
res.render('dashboard');
}
/** GLOBAL CSS */
body {
padding-top: 5rem;
background-color: #FFF;
}
/** INDEX CSS */
.contenttype-title{
display: flex;
}
.contenttype-title h3{
flex: 1 0;
}
.contenttype-all-button{
margin-top: 5px;
}
/** LIST CSS */
.list-group-item-flex{
display: flex;
}
.list-group-item-tools{
display: block;
width: 30px;
}
.list-group-item-image{
margin-right: 10px;
}
.list-group-item-content{
flex: 1 0;
}
/** EDIT CSS */
.content-input{
height: 500px;
}
/** Menu CSS */
.wrapper {
display: flex;
width: 100%;
}
#sidebar {
width: 250px;
position: fixed;
top: 0;
left: 0;
height: 100vh;
z-index: 999;
background: #7386D5;
color: #fff;
transition: all 0.3s;
}
#sidebar.active {
margin-left: -250px;
}
#sidebar .sidebar-header {
padding: 20px;
background: #6d7fcc;
}
#sidebar ul.components {
padding: 20px 0;
border-bottom: 1px solid #47748b;
}
#sidebar ul p {
color: #fff;
padding: 10px;
}
#sidebar ul li a {
text-decoration: none;
color: #fff;
padding: 10px;
font-size: 1.1em;
display: block;
}
#sidebar ul li a:hover {
color: #7386D5;
background: #fff;
}
#sidebar ul li.active>a,
a[aria-expanded="true"] {
color: #fff;
background: #6d7fcc;
}
#content {
width: calc(100% - 250px);
padding: 40px;
min-height: 100vh;
transition: all 0.3s;
position: absolute;
top: 0;
right: 0;
}
#content.active {
width: 100%;
}
......@@ -100,6 +100,74 @@ body {
margin-bottom: 10px;
}
/** Dashboard CSS */
.content-box{
display: flex;
margin : 0 0 45px;
padding: 30px;
background-color: #9d9d9d;
color: #fff;
}
.card-body {
background: green;
display: flex;
justify-content: center;
width : auto;
}
.card-body-item {
height: 100%;
width: 100%;
}
.card-body-item:nth-child(1) { /* or `:nth-child(n + 4)` */
break-after: always;
}
.card-body-item span{
font-size: 3em;
color: #fff;
}
#heart-rate {
width: auto;
height: auto;
-webkit-animation-name: beating; /* Safari 4.0 - 8.0 */
-webkit-animation-duration: 1.5s; /* Safari 4.0 - 8.0 */
-webkit-animation-iteration-count: infinite; /* Safari 4.0 - 8.0 */
animation-name: beating;
animation-duration: 1.5s;
animation-iteration-count: infinite;
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes beating {
0% {transform: scale(0.1,0.1);}
10% {transform: scale(0.3,0.3)}
20% {transform: scale(0.4,0.4)}
30% {transform: scale(0.6,0.6);}
40% {transform: scale(0.8,0.8);}
50% {transform: scale(1,1);}
60% {transform: scale(0.8,0.8);}
70% {transform: scale(0.6,0.6);}
80% {transform: scale(0.4,0.4);}
90% {transform: scale(0.3,0.3);}
100% {transform: scale(0.2,0.2)}
}
/* Standard syntax */
@-webkit-keyframes beating {
0% {transform: scale(0.3,0.3);}
10% {transform: scale(0.35,0.35);}
20% {transform: scale(0.4,0.4);}
30% {transform: scale(0.45,0.45);}
40% {transform: scale(0.5,0.5);}
50% {transform: scale(0.6,0.6);}
60% {transform: scale(0.7,0.7);}
70% {transform: scale(0.8,0.8);}
80% {transform: scale(0.9,0.9);}
90% {transform: scale(0.95,0.95);}
100% {transform: scale(1,1)}
}
/** Menu CSS */
.wrapper {
......
body{padding-top:5rem;background-color:#fff}.contenttype-title{display:flex}.contenttype-title h3{flex:1 0}.contenttype-all-button{margin-top:5px}.list-group-item-flex{display:flex}.list-group-item-tools{display:block;width:30px}.list-group-item-image{margin-right:10px}.list-group-item-content{flex:1 0}.content-input{height:500px}.wrapper{display:flex;width:100%}#sidebar{width:250px;position:fixed;top:0;left:0;height:100vh;z-index:999;background:#7386d5;color:#fff;transition:all .3s}#sidebar.active{margin-left:-250px}#sidebar .sidebar-header{padding:20px;background:#6d7fcc}#sidebar ul.components{padding:20px 0;border-bottom:1px solid #47748b}#sidebar ul p{color:#fff;padding:10px}#sidebar ul li a{text-decoration:none;color:#fff;padding:10px;font-size:1.1em;display:block}#sidebar ul li a:hover{color:#7386d5;background:#fff}#sidebar ul li.active>a,a[aria-expanded=true]{color:#fff;background:#6d7fcc}#content{width:calc(100% - 250px);padding:40px;min-height:100vh;transition:all .3s;position:absolute;top:0;right:0}#content.active{width:100%}
\ No newline at end of file
body{padding-top:5rem;background-color:#fff}.contenttype-title{display:flex}.contenttype-title h3{flex:1 0}.contenttype-all-button{margin-top:5px}.list-group-item-flex{display:flex}.list-group-item-tools{display:block;width:30px}.list-group-item-image{margin-right:10px}.list-group-item-content{flex:1 0}.box{margin-bottom:20px;border:2px solid #000;border-radius:6px;line-height:40px;text-align:center;padding-top:10px;background-color:#c3cee4}.content-input{height:500px}.article{padding-left:1rem;padding-bottom:1rem}[class*=col-xs]{width:auto}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto;align-items:center}@media (min-width:768px){.container{width:1170px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}#accordion-faq .card{margin-bottom:10px}.wrapper{display:flex;width:100%}#sidebar{width:250px;margin-left:-250px;position:fixed;top:0;left:0;height:100vh;z-index:999;background:#7386d5;color:#fff;transition:all .3s}#sidebar.active{margin-left:0}#sidebar .sidebar-header{padding:20px;background:#6d7fcc}#sidebar ul.components{padding:20px 0;border-bottom:1px solid #47748b}#sidebar ul p{color:#fff;padding:10px}#sidebar ul li a{text-decoration:none;color:#fff;padding:10px;font-size:1.1em;display:block}#sidebar ul li a:hover{color:#7386d5;background:#fff}#sidebar ul li.active>a,a[aria-expanded=true]{color:#fff;background:#6d7fcc}#content{width:100%;padding:40px;min-height:100vh;transition:all .3s;position:absolute;top:0;right:0}#content.active{width:calc(100% - 250px)}.dark{background-color:#112f41;color:#fff}.dark .task{border-color:#878787}.dark .modal-content{background-color:#1e4363}.dark .btn{background-color:#1c88cc}.dark .dropdown-menu{background-color:#1e4363}.dark .dropdown-item{color:#fff}.dark .card{background-color:#1e4363}
\ No newline at end of file
body{padding-top:5rem;background-color:#fff}.contenttype-title{display:flex}.contenttype-title h3{flex:1 0}.contenttype-all-button{margin-top:5px}.list-group-item-flex{display:flex}.list-group-item-tools{display:block;width:30px}.list-group-item-image{margin-right:10px}.list-group-item-content{flex:1 0}.box{margin-bottom:20px;border:2px solid #000;border-radius:6px;line-height:40px;text-align:center;padding-top:10px;background-color:#c3cee4}.content-input{height:500px}.article{padding-left:1rem;padding-bottom:1rem}[class*=col-xs]{width:auto}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto;align-items:center}@media (min-width:768px){.container{width:1170px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}#accordion-faq .card{margin-bottom:10px}.content-box{display:flex;margin:0 0 45px;padding:30px;background-color:#9d9d9d;color:#fff}.card-body{background:green;display:flex;justify-content:center;width:auto}.card-body-item{height:100%;width:100%}.card-body-item:nth-child(1){break-after:always}.card-body-item span{font-size:3em;color:#fff}#heart-rate{width:auto;height:auto;-webkit-animation-name:beating;-webkit-animation-duration:1.5s;-webkit-animation-iteration-count:infinite;animation-name:beating;animation-duration:1.5s;animation-iteration-count:infinite}@-webkit-keyframes beating{0%{transform:scale(.1,.1)}10%{transform:scale(.3,.3)}20%{transform:scale(.4,.4)}30%{transform:scale(.6,.6)}40%{transform:scale(.8,.8)}50%{transform:scale(1,1)}60%{transform:scale(.8,.8)}70%{transform:scale(.6,.6)}80%{transform:scale(.4,.4)}90%{transform:scale(.3,.3)}100%{transform:scale(.2,.2)}}@-webkit-keyframes beating{0%{transform:scale(.3,.3)}10%{transform:scale(.35,.35)}20%{transform:scale(.4,.4)}30%{transform:scale(.45,.45)}40%{transform:scale(.5,.5)}50%{transform:scale(.6,.6)}60%{transform:scale(.7,.7)}70%{transform:scale(.8,.8)}80%{transform:scale(.9,.9)}90%{transform:scale(.95,.95)}100%{transform:scale(1,1)}}.wrapper{display:flex;width:100%}#sidebar{width:250px;margin-left:-250px;position:fixed;top:0;left:0;height:100vh;z-index:999;background:#7386d5;color:#fff;transition:all .3s}#sidebar.active{margin-left:0}#sidebar .sidebar-header{padding:20px;background:#6d7fcc}#sidebar ul.components{padding:20px 0;border-bottom:1px solid #47748b}#sidebar ul p{color:#fff;padding:10px}#sidebar ul li a{text-decoration:none;color:#fff;padding:10px;font-size:1.1em;display:block}#sidebar ul li a:hover{color:#7386d5;background:#fff}#sidebar ul li.active>a,a[aria-expanded=true]{color:#fff;background:#6d7fcc}#content{width:100%;padding:40px;min-height:100vh;transition:all .3s;position:absolute;top:0;right:0}#content.active{width:calc(100% - 250px)}.dark{background-color:#112f41;color:#fff}.dark .task{border-color:#878787}.dark .modal-content{background-color:#1e4363}.dark .btn{background-color:#1c88cc}.dark .dropdown-menu{background-color:#1e4363}.dark .dropdown-item{color:#fff}.dark .card{background-color:#1e4363}
\ No newline at end of file
......@@ -14,6 +14,12 @@ router.route('/login')
router.route('/logout')
.get(indexController.logout);
router.route('/location')
.get(indexController.location);
router.route('/dashboard')
.get(indexController.dashboard);
router.use('/users', require('./userRoute'));
router.use('/resources', require('./resourceRoute'));
router.use('/checklists', require('./checklistRoute'));
......@@ -21,7 +27,4 @@ router.use('/sources', require('./sourceRoute'));
router.use('/guides', require('./guideRoute'));
router.use('/datacenters', require('./datacenterRoute'));
router.route('/location')
.get(indexController.location);
module.exports = router
......@@ -19,12 +19,12 @@
<i id="heart-rate" class="fas fa-heart fa-9x" style="color: white;"></i>
</div>
<div class="card-body-item">
<p>BPM</p>
<h1>90</h1>
<br>
<span>90 BPM</span>
</div>
</div>
<a class="card-footer" href="#">
<span class="float-left">View Details History of Heart Rate</span>
<span class="float-left">View detailed History of Heart Rate</span>
<span class="float-right"><i class="fas fa-angle-right"></i></span>
</a>
</div>
......@@ -39,12 +39,12 @@
<i style="color: white;" class="fas fa-thermometer-half fa-9x"></i>
</div>
<div class="card-body-item">
<p>(°C)</p>
<h1 style="font-size: 50px;">38</h1>
<br>
<span>38 °C</span>
</div>
</div>
<a class="card-footer" href="#">
<span class="float-left">View Details History of Heart Rate</span>
<span class="float-left">View detailed History of Heart Rate</span>
<span class="float-right"><i class="fas fa-angle-right"></i></span>
</a>
</div>
......@@ -68,12 +68,12 @@
<i style="color: white;" class="fas fa-sun fa-9x"></i>
</div>
<div class="card-body-item">
<br><br>
<h1>50 °C</h1>
<br>
<span>50 °C</span>
</div>
</div>
<a class="card-footer" href="#">
<span class="float-left">View Details History of Meteo</span>
<span class="float-left">View detailed History of Meteo</span>
<span class="float-right"><i class="fas fa-angle-right"></i></span>
</a>
</div>
......@@ -90,12 +90,11 @@
</div>
<div class="card-body-item">
<br>
<h1>North</h1>
<h1>60 km/h</h1>
<span>North > 60 km/h</span>
</div>
</div>
<a class="card-footer" href="#">
<span class="float-left">View Details History of Meteo</span>
<span class="float-left">View detailed History of Meteo</span>
<span class="float-right"><i class="fas fa-angle-right"></i></span>
</a>
</div>
......@@ -118,8 +117,7 @@
<i style="color: white;" class="fas fa-tint fa-9x"></i>
</div>
<div class="card-body-item">
<br><br>
<h1 style="padding-left: 50px">3 m<sup>3</sup> </h1>
<span style="padding-left: 50px">3 ml/m<sup>3</sup> </span>
<div class="progress">
<div class="progress-bar bg-info" style="width:30%"></div>
</div>
......@@ -127,7 +125,7 @@
</div>
<a class="card-footer" href="#">
<span class="float-left">View Details History of Water Capacity</span>
<span class="float-left">View detailed History of Water Capacity</span>
<span class="float-right"><i class="fas fa-angle-right"></i></span>
</a>
</div>
......@@ -142,17 +140,14 @@
<i style="color: white;" class="fas fa-bolt fa-9x"></i>
</div>
<div class="card-body-item">
<p>
<br>
<h1 style="padding-left: 50px"> 400 Ah</h1>
<span style="padding-left: 50px"> 400 Ah</span>
<div class="progress">
<div class="progress-bar bg-info" style="width:30%"></div>
</div>
</p>
</div>
</div>
<a class="card-footer" href="#">
<span class="float-left">View Details History of Electricity Capacity</span>
<span class="float-left">View detailed History of Electricity Capacity</span>
<span class="float-right"><i class="fas fa-angle-right"></i></span>
</a>
</div>
......@@ -170,13 +165,13 @@
<i style="color: white;" class="fas fa-user fa-9x"></i>
</div>
<div class="card-body-item">
<br><br>
<h1 style="padding-left: 30px">3 m<sup>3</sup> </h1>
<br>
<span style="padding-left: 30px">3 m<sup>3</sup> </span>
</div>
</div>
<a class="card-footer" href="#">
<span class="float-left">View Details History of Population</span>
<span class="float-left">View detailed History of Population</span>
<span class="float-right"><i class="fas fa-angle-right"></i></span>
</a>
</div>
......@@ -193,7 +188,7 @@
<div class="card-body-item">
<p>
<br>
<h1 style="padding-left: 50px"> 20.000 kcal</h1>
<span style="padding-left: 50px"> 20.000 kcal</span>
<div class="progress">
<div class="progress-bar bg-info" style="width:30%"></div>
</div>
......@@ -201,7 +196,7 @@
</div>
</div>
<a class="card-footer" href="#">
<span class="float-left">View Details History of Food Stock</span>
<span class="float-left">View detailed History of Food Stock</span>
<span class="float-right"><i class="fas fa-angle-right"></i></span>
</a>
</div>
......
......@@ -19,8 +19,6 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="/assets/dist/checklist-style.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<!-- Custom styles for this template -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment