Skip to content

Commit aaf69ab

Browse files
committed
New popup hardware section UI
1 parent ade6780 commit aaf69ab

File tree

4 files changed

+363
-107
lines changed

4 files changed

+363
-107
lines changed

css/main.css

Lines changed: 129 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,44 @@ select:hover {
7575
background-color: var(--color-dark-grey);
7676
}
7777

78+
79+
#multi-select-sensors {
80+
padding-right: 0;
81+
height: 10rem;
82+
border-radius: 8px;
83+
border: none;
84+
width: 25rem;
85+
overflow: auto;
86+
scrollbar-width: none; /*For Firefox*/;
87+
-ms-overflow-style: none;
88+
}
89+
90+
#multi-select-sensors > option {
91+
white-space: normal;
92+
outline-color: var(--color-blue);
93+
font-size: 20px;
94+
padding: 15px;
95+
border-radius: 8px;
96+
border: 1px solid transparent;
97+
}
98+
99+
#multi-select-sensors > option:hover {
100+
border: 1px solid var(--color-grey-background-selected-item);
101+
}
102+
103+
#multi-select-sensors > option:checked {
104+
border: 1px solid var(--color-grey-background-selected-item);
105+
background-color: transparent;
106+
}
107+
108+
#multi-select-sensors:hover{
109+
background-color: var(--color-grey-background);
110+
}
111+
112+
#multi-select-label{
113+
margin:1em;
114+
}
115+
78116
canvas {
79117
/*width: 100% !important;
80118
height: 100% !important;*/
@@ -676,7 +714,6 @@ textarea:focus {
676714
height: 68%;
677715
width: 90%;
678716
margin: 2vh 0;
679-
padding: 1vh 0;
680717
}
681718

682719
.builder-section-content{
@@ -899,8 +936,7 @@ textarea:focus {
899936

900937
/** HARDWARES SECTION **/
901938
#hardware-section-builder{
902-
gap: 30%;
903-
padding-top: 2%;
939+
padding-bottom: 2%;
904940
}
905941

906942
.hardware-radio-label [type=radio] + div {
@@ -1052,4 +1088,94 @@ a{
10521088
a:hover {
10531089
color: var(--color-blue-2);
10541090
text-decoration: none;
1091+
}
1092+
1093+
/* Button 1 */
1094+
#button-1 .knobs:before {
1095+
content: "";
1096+
position: absolute;
1097+
top: 4px;
1098+
left: 4px;
1099+
width: 20px;
1100+
height: 10px;
1101+
color: #fff;
1102+
font-size: 10px;
1103+
font-weight: bold;
1104+
text-align: center;
1105+
line-height: 1;
1106+
padding: 9px 4px;
1107+
background-color: #03a9f4;
1108+
border-radius: 50%;
1109+
transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
1110+
}
1111+
1112+
#button-1 .checkbox:checked + .knobs:before {
1113+
content: "";
1114+
left: 42px;
1115+
background-color: rgb(34, 221, 65);
1116+
}
1117+
1118+
#button-1 .checkbox:checked ~ .layer {
1119+
background-color: #e5fde5;
1120+
}
1121+
1122+
#button-1 .knobs,
1123+
#button-1 .knobs:before,
1124+
#button-1 .layer {
1125+
transition: 0.3s ease all;
1126+
}
1127+
1128+
.button-toggle.r,
1129+
.button-toggle.r .layer {
1130+
border-radius: 100px;
1131+
}
1132+
1133+
.button-toggle {
1134+
position: relative;
1135+
top: 0%;
1136+
width: 74px;
1137+
height: 36px;
1138+
margin: -20px auto 0 auto;
1139+
overflow: hidden;
1140+
}
1141+
1142+
.button-cover,
1143+
.knobs,
1144+
.layer {
1145+
position: absolute;
1146+
top: 0;
1147+
right: 0;
1148+
bottom: 0;
1149+
left: 0;
1150+
}
1151+
1152+
.knobs {
1153+
z-index: 2;
1154+
}
1155+
1156+
.layer {
1157+
width: 100%;
1158+
background-color: #ebf7fc;
1159+
transition: 0.3s ease all;
1160+
z-index: 1;
1161+
}
1162+
1163+
.checkbox {
1164+
position: relative;
1165+
width: 100%;
1166+
height: 100%;
1167+
padding: 0;
1168+
margin: 0;
1169+
opacity: 0;
1170+
cursor: pointer;
1171+
z-index: 3;
1172+
}
1173+
1174+
#button-toggle-text{
1175+
margin: 1em;
1176+
}
1177+
1178+
#new-toggle{
1179+
padding-left: 20px;
1180+
width: 8em;
10551181
}

index.html

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ <h3>Hardware</h3>
172172
<div id="hardware-content" class="column builder-section hidden">
173173
<!-- HARDWARES SELECTION -->
174174
<div id="hardware-section-builder" class="column center-x center-y builder-section-content ">
175-
<div id="hardware-switch-indoor-outdoor" class="row center-x center-y">
175+
<div id="hardware-switch-indoor-outdoor" class="row center-x center-y hidden">
176176
<label class="hardware-radio-label">
177177
<input id="hardware-input-radio-indoor" type="radio" name="switch-indoor-outdoor-builder" value="indoor" checked>
178178
<div class="row center-x center-y hardware-switch">
@@ -186,11 +186,33 @@ <h3>Hardware</h3>
186186
</div>
187187
</label>
188188
</div>
189-
<div id="hardware-sensors-selection" class="row wrap center-x center-y">
189+
190+
<div class="row">
191+
<!-- New Sensor selection -->
192+
<div id="new-selector">
193+
<h3 id="multi-select-label" for="multi-select">Select sensor</h3>
194+
<div class="select select--multiple">
195+
<select id="multi-select-sensors" size="3">
196+
<!-- FILLED IN JS WITH CORRECT SENSORS -->
197+
</select>
198+
</div>
199+
</div>
200+
<!-- Outdoor/Indoor toggle -->
201+
<div id="new-toggle">
202+
<p id="button-toggle-text">INDOOR</p>
203+
<div class="button-toggle r" id="button-1">
204+
<input id="toggle-outdoor-indoor" type="checkbox" class="checkbox" />
205+
<div class="knobs"></div>
206+
<div class="layer"></div>
207+
</div>
208+
</div>
209+
</div>
210+
211+
<div id="hardware-sensors-selection" class="row wrap center-x center-y hidden">
190212
<!-- FILLED IN JS WITH CORRECT SENSORS -->
191213
</div>
192214
<div id="hardware-warning-message" class="row center-x wrap hardware-warning-message hidden">
193-
<p id="hardware-warning-text" class="warning-text">No hardware setup found,</p><p id="hardware-warning-button" class="text-button">click here to get in touch with our experts.</p>
215+
<p id="hardware-warning-text" class="warning-text">No hardware setup found,</p><p id="hardware-warning-button" class="text-button"><a href="https://augmenta.tech/contact/" target="_blank">click here to get in touch with our experts.</a></p>
194216
</div>
195217
</div>
196218
<!-- HARDWARES BUTTONS-->
@@ -493,7 +515,7 @@ <h3>Choose the type.s of sensor.s you want to use</h3>
493515
<!-- END WIZARD MODAL -->
494516

495517
<img id="tracking-img" src="img/human-tracking.png" alt="Tracking image" class="tracking-img">
496-
<h3 id="height-detection-text">Target overlap height detection: HIPS</h3>
518+
<h3 id="height-detection-text">Target overlap height detection: Hips</h3>
497519

498520
<!-- TRACKING SECTION IN INSPECTOR -->
499521
<div id="tracking-section-inspector" class="hidden">

0 commit comments

Comments
 (0)