Skip to content

Commit 0e9b992

Browse files
proper spacing and responsiveness
1 parent 8291fd0 commit 0e9b992

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

index.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
<link rel="stylesheet" href="./styles/styles.css">
1515
</head>
1616
<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>
2324
</div>
2425
</main>
25-
2626
</body>
2727
</html>

styles/styles.css

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
body {
1+
:root {
22
--color-slate-900: rgb(31, 49, 79);
33
--color-slate-500: rgb(104, 119, 141);
44
--color-slate-300: rgb(213 225, 239);
5+
--color-white-900: rgb(255, 255, 255);
56

67
--spacing-500: 40px;
78
--spacing-300: 24px;
89
--spacing-200: 16px;
910

10-
--text-preset-1: normal bold 22px/1.2 "Outfit", sans-serif;
11-
--text-preset-2: normal 400 15px/1.4 "Outfit", sans-serif;
11+
--font-family: "Outfit", sans-serif;
12+
--text-preset-1: normal bold 22px/1.2 var(--font-family);
13+
--text-preset-2: normal 400 15px/1.4 var(--font-family);
14+
}
1215

16+
body {
1317
background-color: var(--color-slate-300);
1418
margin: 0;
1519
display: flex;
@@ -18,12 +22,17 @@ body {
1822
min-height: 100vh;
1923
}
2024

25+
main {
26+
margin: 0 auto;
27+
padding: 1rem;
28+
}
29+
2130
#qr-card {
2231
max-width: 20rem;
2332
padding: var(--spacing-200) var(--spacing-200) var(--spacing-500)
2433
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);
2736
border-radius: 20px;
2837
margin: auto;
2938
text-align: center;

0 commit comments

Comments
 (0)