Skip to content

Commit d769b8d

Browse files
committedOct 26, 2021
{oiu
1 parent 58e6a01 commit d769b8d

File tree

4 files changed

+31
-18
lines changed

4 files changed

+31
-18
lines changed
 

‎src/components/App.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function App() {
7070
if (countRef.current - 1 < 5) {
7171
setTimeout(myFunction, randomIntFromInterval(8, 20) * 1000);
7272
} else {
73-
setTimeout(myFunction, randomIntFromInterval(1, 11) * 1000);
73+
setTimeout(myFunction, randomIntFromInterval(1, 9) * 1000);
7474
}
7575
}
7676
}
@@ -84,7 +84,9 @@ function App() {
8484
console.info("CA VA REPRENDRE");
8585

8686
if (cookies.get("remaining") < 23) {
87-
setTimeout(myFunction, 7000);
87+
if (cookies.get("remaining") > 1) {
88+
setTimeout(myFunction, 7000);
89+
}
8890
} else {
8991
setTimeout(myFunction, 1000);
9092
}

‎src/components/Header.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ function Header({ startQuestions, remaining }) {
3939

4040
{remaining == 1 && (
4141
<p className="timeInfo">
42-
⏰ Encore seulement <strong>{remaining} demande disponible.</strong>{" "}
42+
⏰ Encore seulement <strong>{remaining} candidature</strong>{" "}
43+
disponible.
4344
</p>
4445
)}
4546

4647
{remaining != 1 && (
4748
<p className="timeInfo">
48-
⏰ Encore seulement <strong>{remaining} demandes disponibles.</strong>
49+
⏰ Encore seulement <strong>{remaining} candidatures</strong>{" "}
50+
disponibles.
4951
</p>
5052
)}
5153
</div>

‎src/components/Question.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,17 @@ function Question({
187187
appuyez sur <strong>Entrée ↵</strong>
188188
</p>
189189
</div>
190-
191190
{remaining == 1 && (
192191
<p className="timeInfo">
193-
⏰ Encore seulement <strong>{remaining} demande disponible.</strong>{" "}
192+
⏰ Encore seulement <strong>{remaining} candidature</strong>{" "}
193+
disponible.
194194
</p>
195195
)}
196196

197197
{remaining != 1 && (
198198
<p className="timeInfo">
199-
⏰ Encore seulement{" "}
200-
<strong>{remaining} demandes disponibles.</strong>
199+
⏰ Encore seulement <strong>{remaining} candidatures</strong>{" "}
200+
disponibles.
201201
</p>
202202
)}
203203
</div>

‎src/styles/Question.scss

+19-10
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,25 @@ input::placeholder {
369369
}
370370
}
371371

372+
.timeInfo {
373+
margin-top: 20px !important;
374+
color: red !important;
375+
font-weight: 400;
376+
}
377+
378+
.timeInfo strong {
379+
color: red !important;
380+
}
381+
382+
@media (max-width: 400px) {
383+
.timeInfo {
384+
margin-top: 20px !important;
385+
color: red !important;
386+
font-weight: 400;
387+
font-size: 13px !important;
388+
}
389+
}
390+
372391
@media (max-width: 340px) {
373392
.logo {
374393
height: 40px;
@@ -410,13 +429,3 @@ input::placeholder {
410429
display: none;
411430
}
412431
}
413-
414-
.timeInfo {
415-
margin-top: 20px !important;
416-
color: red !important;
417-
font-weight: 400;
418-
}
419-
420-
.timeInfo strong {
421-
color: red !important;
422-
}

0 commit comments

Comments
 (0)
Please sign in to comment.