Skip to content

Commit dd5661e

Browse files
authored
Merge pull request #20 from sadnxssdlm/fix/small-bugs
css title
2 parents 496c76d + 26770a2 commit dd5661e

4 files changed

Lines changed: 52 additions & 10 deletions

File tree

client/src/assets/Style/Quiz.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,24 @@
114114
.resultimage {
115115
width: 150px;
116116
}
117+
118+
.title {
119+
background-color: #ffcc00;
120+
color: black;
121+
text-align: center;
122+
font-weight: bold;
123+
padding: 0 20px;
124+
display: block;
125+
font-size: 1rem;
126+
margin: 0 auto 30px;
127+
text-transform: uppercase;
128+
width: fit-content;
129+
border-radius: 8px;
130+
margin: 40px 20px;
131+
}
132+
title h1 {
133+
padding: 10px;
134+
}
117135
}
118136

119137
@media (min-width: 768px) {
@@ -226,4 +244,25 @@
226244
.resultimage {
227245
width: 150px;
228246
}
247+
248+
.title {
249+
background-color: #ffcc00;
250+
color: black;
251+
text-align: center;
252+
font-weight: bold;
253+
padding: 0 20px;
254+
display: block;
255+
font-size: 1rem;
256+
margin: 0 auto 30px;
257+
text-transform: uppercase;
258+
width: fit-content;
259+
border-radius: 8px;
260+
margin-top: 100px;
261+
margin-bottom: 60px;
262+
}
263+
264+
.title h1 {
265+
padding: 6px;
266+
font-size: 2.1rem;
267+
}
229268
}

client/src/components/Cours/CartesCours.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
display: block;
2626
text-transform: uppercase;
2727
border-radius: 8px;
28+
margin: 20px;
2829
}
2930

3031
.cours2 {
@@ -69,8 +70,13 @@
6970
height: auto;
7071
}
7172

73+
.cours {
74+
padding-top: 10px;
75+
}
76+
7277
.cours h1 {
73-
font-size: 2.2rem;
78+
font-size: 2rem;
79+
padding: 5px;
7480
}
7581

7682
.cours h2 {
@@ -96,12 +102,13 @@
96102
color: black;
97103
text-align: center;
98104
font-weight: bold;
99-
padding: 8px 20px;
105+
padding: 0 20px;
100106
display: block;
101-
font-size: 35px;
107+
font-size: 1rem;
102108
margin: 0 auto 30px;
103109
text-transform: uppercase;
104110
width: fit-content;
105111
border-radius: 8px;
112+
margin-top: 30px;
106113
}
107114
}

client/src/components/Cours/Cours.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ function Cours() {
1414
return (
1515
<>
1616
<div className="cours">
17-
<h1>
18-
Mission 1 <br /> Decouvre le code
19-
</h1>
17+
<h1>Mission 1: Decouvre le code</h1>
2018
</div>
2119
<div className="cours2">
2220
<h2>Clique sur le poussin de ton choix.</h2>

client/src/components/Quiz.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,8 @@ const Quiz = () => {
110110

111111
return (
112112
<>
113-
<div className="cours">
114-
<h1>
115-
Mission 2 <br /> Teste tes connaissances.
116-
</h1>
113+
<div className="title">
114+
<h1>Mission 2: Teste tes connaissances</h1>
117115
</div>
118116
<div className="border">
119117
<div className="quiz">

0 commit comments

Comments
 (0)