-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
161 lines (141 loc) · 3.6 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!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 | NFT preview card component</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');
:root{
--Soft_blue: hsl(215, 51%, 70%);
--Cyan: hsl(178, 100%, 50%);
/* (main BG) */
--Very_dark_blue1: hsl(217, 54%, 11%);
/* (card BG) */
--Very_dark_blue2: hsl(216, 50%, 16%);
/* (line) */
--Very_dark_blue: hsl(215, 32%, 27%);
--White: hsl(0, 0%, 100%);
}
body{
background-color: var(--Very_dark_blue1);
font-family: 'Outfit', sans-serif;
}
.card{
width: 350px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
border-radius: 15px;
background-color: var(--Very_dark_blue2);
}
.image{
margin: 20px;
overflow: hidden;
border-radius: 15px;
overflow: hidden;
position: relative;
}
.image>img{
width: 100%;
}
.hoverEffect{
width: 100%;
height: 100%;
position: absolute;
background: rgba(0, 255, 255, 0.5);
left: 50%;
opacity: 0;
transform: translate(-50%);
transition: all 0.5s;
}
.hoverEffect:hover{
opacity: 1;
}
.eyeicon{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
}
h1{
color: white;
margin: 20px;
font-size: 26px;
}
h1:hover{
color: cyan;
}
p{
margin: 20px;
font-size: 18px;
color: var(--Soft_blue);
}
.price{
display: flex;
margin: 20px;
justify-content: space-between;
font-size: 18px;
color: var(--Soft_blue);
}
.price span:nth-child(1){
color: var(--Cyan);
}
.creator{
margin-left: 20px;
margin-right: 20px;
margin-bottom: 20px;
display: flex;
align-items: center;
}
.creator img{
width: 100%;
}
.creator div{
border: 2px solid white;
border-radius: 200px;
width: 34px;
height: 34px;
}
.creator p span:nth-child(2){
color: white;
}
.creator p span:nth-child(2):hover{
color: cyan;
}
.line{
border-top: 1px solid var(--Soft_blue);
margin-left: 20px;
margin-right: 20px;
margin-bottom: 10px;
opacity: 0.4;
}
</style>
</head>
<body>
<!-- Equilibrium #3429 -->
<!-- 0.041 ETH -->
<!-- 3 days left -->
<!-- Creation of Jules Wyvern -->
<div class="card">
<div class="image">
<div class="hoverEffect"><img class="eyeicon" src="./images/icon-view.svg" alt=""></div>
<img src="./images/image-equilibrium.jpg" alt="">
</div>
<h1 class="title">Equilibrium #3429</h1>
<p class="desc">Our Equilibrium collection promotes balance and calm.</p>
<div class="price" >
<span><img src="./images/icon-ethereum.svg" alt=""> 0.041 ETH</span>
<span><img src="./images/icon-clock.svg" alt=""> 3 days left</span>
</div>
<div class="line"></div>
<div class="creator">
<div><img src="./images/image-avatar.png" alt=""></div>
<p><span>Creation of </span><span>Jules Wyvern</span></p>
</div>
</div>
</body>
</html>