Skip to content

Commit 5bcdb45

Browse files
committed
updates
1 parent 89029e7 commit 5bcdb45

File tree

2 files changed

+39
-38
lines changed

2 files changed

+39
-38
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap" rel="stylesheet">
1515
</head>
1616
<body>
17-
<main class="qr-container">
18-
<div id="qr-image"><img src="./images/image-qr-code.png" alt="QR"></div>
19-
<h1 id="qr-heading-text" class="outfit-bold">Improve your front-end</br>skills by building projects</h1>
20-
<p id="qr-body-text" class="outfit-regular">Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
17+
<main class="box-shadow">
18+
<div><img src="./images/image-qr-code.png" alt="QR"></div>
19+
<h1>Improve your front-end</br>skills by building projects</h1>
20+
<p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
2121
</main>
2222
</body>
2323
</html>

style.css

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11
:root{
2-
--qr-bg-color:hsl(0, 0%, 100%);
32
--background: hsl(212, 45%, 89%);
4-
--qr-body-text-color: hsl(216, 15%, 48%);
5-
--qr-heading-text-color: hsl(218, 44%, 22%);
3+
--qr-bg-color:hsl(0, 0%, 100%);
4+
--qr-body-color: hsl(216, 15%, 48%);
5+
--qr-heading-color: hsl(218, 44%, 22%);
66

77
--paragraph-font-size: 15px;
8+
--outfit-regular: 400;
9+
--outfit-bold: 700;
810

911
--radius: 12px;
1012
}
13+
14+
.box-shadow{
15+
-webkit-box-shadow: 2px 20px 57px -4px rgba(31,50,81,0.29);
16+
-moz-box-shadow: 2px 20px 57px -4px rgba(31,50,81,0.29);
17+
box-shadow: 2px 20px 57px -4px rgba(31,50,81,0.29);
18+
}
19+
1120
* {
1221
box-sizing: border-box;
1322
margin: 0;
1423
padding: 0;
1524
}
25+
1626
body {
27+
font-family: "Outfit", sans-serif;
28+
font-optical-sizing: auto;
29+
font-style: normal;
1730
min-height: 100vh;
1831
background: var(--background);
1932
display: flex;
@@ -22,49 +35,37 @@ body {
2235
align-items: center;
2336
}
2437

25-
.outfit-regular,
26-
.outfit-bold{
27-
font-family: "Outfit", sans-serif;
28-
font-optical-sizing: auto;
29-
font-style: normal;
30-
}
31-
32-
.outfit-regular {
33-
font-weight: 400;
34-
}
35-
.outfit-bold {
36-
font-weight: 700;
37-
}
38-
39-
.qr-container{
38+
main{
4039
display: flex;
4140
flex-direction: column;
42-
place-items: center;
43-
text-align: center;
44-
background-color: var(--qr-bg-color);
45-
border-radius: 15px;
46-
padding: 15px 15px 25px 15px;
47-
gap: 15px;
48-
width: 18rem;
41+
place-items: center;
42+
text-align: center;
43+
background-color: var(--qr-bg-color);
44+
border-radius: 15px;
45+
padding: 15px 15px 25px 15px;
46+
gap: 15px;
47+
width: 18rem;
4948
}
5049

51-
#qr-image{
52-
display: block;
50+
div, div>img, h1, p{ display: block; }
51+
52+
div{
5353
max-width:100%;
5454
border-radius: var(--radius);
5555
& img{
5656
width:100%;
57-
display: block;
5857
border-radius: var(--radius);
5958
}
6059
}
61-
#qr-heading-text{
62-
display: block;
60+
61+
h1{
6362
font-size: larger;
64-
color: var(--qr-heading-text-color);
63+
font-weight: var(--outfit-bold);
64+
color: var(--qr-heading-color);
6565
}
66-
#qr-body-text{
67-
display: block;
66+
67+
p{
6868
font-size: var(--paragraph-font-size);
69-
color: var(--qr-body-text-color);
69+
font-weight: var(--outfit-regular);
70+
color: var(--qr-body-color);
7071
}

0 commit comments

Comments
 (0)