Commit 8701f56 1 parent 987d19c commit 8701f56 Copy full SHA for 8701f56
File tree 2 files changed +33
-30
lines changed
2 files changed +33
-30
lines changed Original file line number Diff line number Diff line change 6
6
7
7
< link rel ="icon " type ="image/png " sizes ="32x32 " href ="./images/favicon-32x32.png ">
8
8
< link rel ="stylesheet " href ="style.css ">
9
-
10
9
< title > Frontend Mentor | QR code component</ title >
10
+
11
11
</ head >
12
12
< body >
13
- < main class =" qr-code " >
14
- < div class ="qr-code-image ">
15
- < img src =" ./images/image- qr-code.png " alt =" QR code ">
16
- </ div >
13
+
14
+ < div class ="container ">
15
+ < div class =" qr-code ">
16
+ < img src =" ./images/image-qr-code.png " alt =" QR code " class =" qr-code-img " >
17
17
< div class ="qr-code-text ">
18
- < h1 > Improve your front-end skills by building projects</ h1 >
18
+ < h2 > Improve your front-end skills by building projects</ h2 >
19
19
< p > Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</ p >
20
20
</ div >
21
- </ main >
22
- < footer class ="attribution ">
23
- Challenge by < a href ="https://www.frontendmentor.io?ref=challenge " target ="_blank "> Frontend Mentor</ a > .
24
- Coded by < a href ="https://github.com/lele-sf "> lele-sf</ a > .
25
- </ footer >
21
+ </ div >
22
+ </ div >
23
+ < footer class ="attribution ">
24
+ Challenge by < a href ="https://www.frontendmentor.io?ref=challenge " target ="_blank "> Frontend Mentor</ a > .
25
+ Coded by < a href ="https://github.com/lele-sf "> lele-sf</ a > .
26
+ </ footer >
26
27
</ body >
27
28
</ html >
Original file line number Diff line number Diff line change 1
1
@import url ('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap' );
2
2
3
- html {
3
+ * {
4
+ margin : 0 ;
5
+ padding : 0 ;
4
6
box-sizing : border-box;
5
7
}
6
- * , * : before , * : after {
7
- box-sizing : inherit;
8
- }
8
+
9
9
body {
10
- background-color : hsl (212 , 45% , 89% );
11
10
font-family : 'Outfit' , sans-serif;
11
+ background-color : hsl (212 , 45% , 89% );
12
+ min-height : 100vh ;
12
13
display : flex;
14
+ font-size : 15px ;
13
15
flex-direction : column;
14
16
justify-content : center;
15
- align-items : center;
16
- min-height : 100vh ;
17
+ }
18
+
19
+ .container {
20
+ max-width : 360px ;
21
+ margin : 0 auto;
17
22
}
18
23
.qr-code {
19
24
background-color : hsl (0 , 0% , 100% );
20
- border-radius : 20px ;
21
- padding : 20px ;
22
- max-width : 400px ;
25
+ padding : 18px ;
26
+ border-radius : 17px ;
27
+ text-align : center;
28
+ margin : 0 1em ;
23
29
}
24
- .qr-code img {
30
+ .qr-code- img {
25
31
width : 100% ;
26
- max-width : 375px ;
27
- border-radius : 10px ;
32
+ border-radius : 12px ;
28
33
}
29
34
.qr-code-text {
30
- text-align : center ;
35
+ padding : 22 px 10 px ;
31
36
}
32
- .qr-code-text h1 {
37
+ .qr-code-text h2 {
33
38
color : hsl (218 , 44% , 22% );
34
- font-weight : 700 ;
35
- font-size : 25px ;
39
+ padding-bottom : 15px ;
36
40
}
37
41
.qr-code-text p {
38
42
color : hsl (220 , 15% , 55% );
39
- font-size : 15px ;
40
- font-weight : 400 ;
41
43
}
42
44
.attribution {
43
45
text-align : center;
You can’t perform that action at this time.
0 commit comments