Skip to content

Commit d21ae19

Browse files
committed
completed
1 parent c1b3976 commit d21ae19

File tree

2 files changed

+58
-4
lines changed

2 files changed

+58
-4
lines changed

index.html

+8-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@
1313
.attribution { font-size: 11px; text-align: center; }
1414
.attribution a { color: hsl(228, 45%, 44%); }
1515
</style>
16+
17+
<link rel="stylesheet" href="style.css">
1618
</head>
1719
<body>
18-
19-
Improve your front-end skills by building projects
20-
21-
Scan the QR code to visit Frontend Mentor and take your coding skills to the next level
2220

21+
<div class="card">
22+
<img src="C:\Users\Saurabh\code\Frontend-Mentor\qr-code-component\images\image-qr-code.png" alt="" >
23+
<h2>Improve your front-end skills by building projects</h2>
24+
<p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
25+
</div>
26+
2327
<div class="attribution">
2428
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
2529
Coded by <a href="#">Your Name Here</a>.

style.css

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Outfit&display=swap');
2+
3+
:root {
4+
/* Colors */
5+
--White : hsl(0, 0%, 100%) ;
6+
--Light_gray : hsl(212, 45%, 89%) ;
7+
--Grayish_blue : hsl(220, 15%, 55%) ;
8+
--Dark_blue : hsl(218, 44%, 22%) ;
9+
}
10+
11+
html, body {
12+
width : 100% ;
13+
height : 100% ;
14+
margin : 0 ;
15+
padding : 0 ;
16+
text-align: center;
17+
font-family: 'Outfit', sans-serif;
18+
font-size : 15px ;
19+
}
20+
21+
body {
22+
background-color: var(--Light_gray);
23+
display : flex ;
24+
flex-direction: column ;
25+
align-items : center ;
26+
justify-content : center ;
27+
position : relative ;
28+
}
29+
30+
.card {
31+
background-color: var(--White);
32+
max-width : 300px ;
33+
padding : 20px ;
34+
border-radius: 15px ;
35+
align-self: center ;
36+
}
37+
38+
.card img {
39+
width : 100% ;
40+
border-radius : 15px ;
41+
}
42+
43+
.card p {
44+
color : var(--Grayish_blue) ;
45+
}
46+
47+
.attribution {
48+
position : absolute ;
49+
bottom : 0 ;
50+
}

0 commit comments

Comments
 (0)