-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (116 loc) · 2.76 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<title>Frontend Mentor | QR code component</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution {
font-size: 11px; text-align: center;
margin-top: -700px;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
body{
background: url('backG.jpg');
display:flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
*{
padding:0;
margin:0;
}
.main{
display:flex;
justify-content: center;
align-content: center;
background:lightblue;
width:800px;
height:530px;
margin:670px 0;
box-shadow: 0px +1px 20px -2px #999;
}
.sub{
width:30%;
height:68%;
background: white;
margin:auto 0px;
border-radius:15px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
box-shadow: 0px +1px 10px 1px #999;
}
.qr-code{
margin-top: 7px;
border-radius: 10px;
}
#bold{
font-weight:bold;
margin:20px 0;
font-size: 17px;
}
#pale{
color:#666;
font-size: 15px;
}
@media screen and (max-width: 300px){
body{
overflow-y: hidden;
}
.main{
width:415px;
height:1800px;
margin-top: 0;
display:flex;
flex-direction: column;
justify-content:center;
align-items: center;
}
.sub{
width:90%;
align-self: center;
height:600px;
margin-top:55px;
}
.qr-code{
width:88%;
height:60%;
margin-top:20px;
}
#bold{
font-weight:bold;
margin:20px 0;
font-size: 25px;
}
#pale{
color:#666;
font-size: 19px;
}
.attribution {
font-size: 21px;
margin-left: 0%;
}
}
</style>
</head>
<body>
<div class="main">
<div class="sub">
<img src="image-qr-code.png" width="220px" height="205px" class="qr-code"/>
<p class="para" id="bold">Improve your front-end skills by building projects</p>
<p class="para" id="pale">Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
</div>
</div>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Utkarsh95-dev</a>.
</div>
</body>
</html>