File tree 2 files changed +21
-12
lines changed
2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 14
14
< link rel ="stylesheet " href ="./styles/styles.css ">
15
15
</ head >
16
16
< body >
17
-
18
- < main id ="qr-card ">
19
- < img src ="./images/image-qr-code.png " alt ="Qr code image ">
20
- < div id ="qr-card-details ">
21
- < h1 > Improve your front-end skills by building projects</ h1 >
22
- < p > Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</ p >
17
+ < main >
18
+ < div id ="qr-card ">
19
+ < img src ="./images/image-qr-code.png " alt ="Qr code image ">
20
+ < div id ="qr-card-details ">
21
+ < h1 > Improve your front-end skills by building projects</ h1 >
22
+ < p > Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</ p >
23
+ </ div >
23
24
</ div >
24
25
</ main >
25
-
26
26
</ body >
27
27
</ html >
Original file line number Diff line number Diff line change 1
- body {
1
+ : root {
2
2
--color-slate-900 : rgb (31 , 49 , 79 );
3
3
--color-slate-500 : rgb (104 , 119 , 141 );
4
4
--color-slate-300 : rgb (213 225 , 239 );
5
+ --color-white-900 : rgb (255 , 255 , 255 );
5
6
6
7
--spacing-500 : 40px ;
7
8
--spacing-300 : 24px ;
8
9
--spacing-200 : 16px ;
9
10
10
- --text-preset-1 : normal bold 22 px/1.2 "Outfit" , sans-serif;
11
- --text-preset-2 : normal 400 15 px/1.4 "Outfit" , sans-serif;
11
+ --font-family : "Outfit" , sans-serif;
12
+ --text-preset-1 : normal bold 22 px/1.2 var (--font-family );
13
+ --text-preset-2 : normal 400 15 px/1.4 var (--font-family );
14
+ }
12
15
16
+ body {
13
17
background-color : var (--color-slate-300 );
14
18
margin : 0 ;
15
19
display : flex;
@@ -18,12 +22,17 @@ body {
18
22
min-height : 100vh ;
19
23
}
20
24
25
+ main {
26
+ margin : 0 auto;
27
+ padding : 1rem ;
28
+ }
29
+
21
30
# qr-card {
22
31
max-width : 20rem ;
23
32
padding : var (--spacing-200 ) var (--spacing-200 ) var (--spacing-500 )
24
33
var (--spacing-200 );
25
- background-color : white;
26
- filter : drop -shadow( 0 25px 25px rgba (0 , 0 , 0 , 0.0477 ) );
34
+ background-color : var ( --color- white-900 ) ;
35
+ box -shadow: 0 25px 25px rgba (0 , 0 , 0 , 0.0477 );
27
36
border-radius : 20px ;
28
37
margin : auto;
29
38
text-align : center;
You can’t perform that action at this time.
0 commit comments