Skip to content

Commit 8701f56

Browse files
committed
update qr-code
1 parent 987d19c commit 8701f56

File tree

2 files changed

+33
-30
lines changed

2 files changed

+33
-30
lines changed

qr-code/index.html

+12-11
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,23 @@
66

77
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
88
<link rel="stylesheet" href="style.css">
9-
109
<title>Frontend Mentor | QR code component</title>
10+
1111
</head>
1212
<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">
1717
<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>
1919
<p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
2020
</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>
2627
</body>
2728
</html>

qr-code/style.css

+21-19
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
11
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');
22

3-
html {
3+
* {
4+
margin: 0;
5+
padding: 0;
46
box-sizing: border-box;
57
}
6-
*, *:before, *:after {
7-
box-sizing: inherit;
8-
}
8+
99
body {
10-
background-color: hsl(212, 45%, 89%);
1110
font-family: 'Outfit', sans-serif;
11+
background-color: hsl(212, 45%, 89%);
12+
min-height: 100vh;
1213
display: flex;
14+
font-size: 15px;
1315
flex-direction: column;
1416
justify-content: center;
15-
align-items: center;
16-
min-height: 100vh;
17+
}
18+
19+
.container {
20+
max-width: 360px;
21+
margin: 0 auto;
1722
}
1823
.qr-code {
1924
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;
2329
}
24-
.qr-code img {
30+
.qr-code-img {
2531
width: 100%;
26-
max-width: 375px;
27-
border-radius: 10px;
32+
border-radius: 12px;
2833
}
2934
.qr-code-text {
30-
text-align: center;
35+
padding: 22px 10px;
3136
}
32-
.qr-code-text h1 {
37+
.qr-code-text h2 {
3338
color: hsl(218, 44%, 22%);
34-
font-weight: 700;
35-
font-size: 25px;
39+
padding-bottom: 15px;
3640
}
3741
.qr-code-text p {
3842
color: hsl(220, 15%, 55%);
39-
font-size: 15px;
40-
font-weight: 400;
4143
}
4244
.attribution {
4345
text-align: center;

0 commit comments

Comments
 (0)