-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (130 loc) · 4.07 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
132
133
134
135
<!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">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap" rel="stylesheet">
<title>Frontend Mentor | Profile card component</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.nm{
width:30%;display:flex;flex-direction:row;justify-content:space-around;
}
body{
font-family: 'Kumbh Sans', sans-serif;
background-color:hsl(185, 75%, 39%);
background-image:url('https://raw.githubusercontent.com/barnilsarma/Profile-card-component/103da7754052cf946e43dbff0c28e9485ea8e54a/bg-pattern-top.svg'),url('https://raw.githubusercontent.com/barnilsarma/Profile-card-component/adfd8b0f2d841829f71be4e3a1f973ac57a84f70/bg-pattern-bottom.svg');
background-position:-150px -300px,250px 300px;
background-size:85% 130%,50% 150%;
background-repeat:no-repeat,no-repeat;
}
.desktop-profile{
visibility:hidden;
}
.details{
display:flex;
flex-direction:column;
justify-content:space-around;
}
.profile{
transition-duration:0.5s;
position:relative;
display:flex;
font-weight:400;
flex-direction:column;
background-image:url('https://raw.githubusercontent.com/barnilsarma/Profile-card-component/a628c7224de5ab25afd565bd45f613783e10e209/bg-pattern-card.svg');
background-size:100% 40%;
background-repeat:no-repeat;
background-color:#ffffff;
margin-left:2%;
margin-right:2%;
margin-top:30%;
font-size:18px;
border-radius:10px;
box-shadow:0 0 20px rgba(0,0,0,0.5);
}
.stats{
display:flex;
flex-direction:row;
justify-content:space-around;
}
.victor{
border:5px solid #ffffff;
border-radius:100px;
}
.attribution { position:absolute;left:20%;bottom:0%;font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
@media screen and (min-width:800px){
.desktop-preview{
transition-duration:0.5s;
position:absolute;
visibility:visible;
background-color:hsl(185, 75%, 39%);
width:90%;
height:80%;
top:10%;
left:5%;
background-image:url('https://raw.githubusercontent.com/barnilsarma/Profile-card-component/092a445077abc10708ede00f320d00ea3b2f3685/bg-pattern-top.svg'),url('https://raw.githubusercontent.com/barnilsarma/Profile-card-component/17d5f0facfa4cd723c0442879a12cb6b068e9aad/bg-pattern-bottom.svg');
background-position:-600px -300px,600px 300px;
background-repeat:no-repeat,no-repeat;
background-size:100% 100%,100% 100%;
box-shadow:0 0 20px rgba(0,0,0,0.3);
}
.profile{
position:relative;
top:-50%;
width:25%;
box-shadow:0 0 100px rgba(0,0,0,0.5);
}
.nm{
width:50%;
}
body{
background:#eeeeee;
}
.desktop-preview:hover{
width:100%;
height:100%;
top:0;
left:0;
transition-duration:0.5s;
}
.desktop-preview:hover .profile{
top:-40%;
width:30%;
height:50%;
transition-duration:0.5s;
}
}
}
</style>
</head>
<body>
<center><div class="desktop-preview">
<div class="profile">
<br><br><br>
<div><img class="victor" src="https://github.com/barnilsarma/Profile-card-component/blob/main/image-victor.jpg?raw=true"></div>
<center><div class="nm"> <div style="font-weight:700;"> Victor Crest</div><div style="font-weight:400;">
26</div></div></center>
<div style="font-size:16px;font-weight:400;">London</div>
<br><br>
<div class="stats">
<div class="details">
<div style="font-weight:700;">80K</div>
<div style="font-size:12px;font-weight:400;">Followers</div></div>
<div class="details">
<div style="font-weight:700;">803K</div>
<div style="font-size:12px;font-weight:400;"> Likes</div></div>
<div class="details">
<div style="font-weight:1000;">1.4K</div>
<div style="font-size:12px;font-weight:400;">Photos </div></div>
</div></div></center>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Barnil Sarma</a>.
</div>
</body>
</html>