Skip to content

Commit f555bd3

Browse files
Issue Number Dezenix#141 Solved
1 parent 945e073 commit f555bd3

File tree

9 files changed

+207
-0
lines changed

9 files changed

+207
-0
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"liveServer.settings.port": 5501
3+
}

NFT Preview Card Component/README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## NFT Preview Card Component
2+
3+
<h3> Tech Stack Used <img src = "https://media2.giphy.com/media/QssGEmpkyEOhBCb7e1/giphy.gif?cid=ecf05e47a0n3gi1bfqntqmob8g9aid1oyj2wr3ds3mg700bl&rid=giphy.gif" width = 32px> </h3>
4+
<p align="left"> <a href="https://www.w3.org/html/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> </a> <a href="https://www.w3schools.com/css/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/> </a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank"></a> </p>
5+
<br>
6+
7+
## Preview
8+
<br>
9+
10+
Desktop View :
11+
12+
![preview](https://user-images.githubusercontent.com/75005433/159526814-0da72864-dcf0-4f6d-a162-cc81752aea7b.gif)
13+
14+
<br>
15+
16+
Mobile View :
17+
18+
![mobpreview](https://user-images.githubusercontent.com/75005433/159528565-a02d85dd-6560-4a93-929a-e5c341843d83.gif)
Loading
Loading
Loading
5.08 MB
Loading
1.04 MB
Loading

NFT Preview Card Component/index.html

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
7+
8+
<title>Vedant Prac | NFT preview card component</title>
9+
10+
<link rel="stylesheet" href="styles.css" />
11+
</head>
12+
<body>
13+
<div class="container">
14+
<article class="main-image">
15+
<img src="./images/new.gif" alt="" />
16+
<div>
17+
<img src="./images/icon-view.svg" alt="" />
18+
</div>
19+
</article>
20+
21+
<article>
22+
<h2>Equilibrium #500</h2>
23+
<p>Our Equilibrium collection promotes balance and calm.</p>
24+
25+
<ul>
26+
<li><img src="./images/icon-ethereum.svg" alt="" /> 1 ETH</li>
27+
<li><img src="./images/icon-clock.svg" alt="" /> 2 days left</li>
28+
</ul>
29+
</article>
30+
31+
<article class="avatar">
32+
<img src="./images/vedantimg.png" alt="" />
33+
<p>Creation of <span>Vedant Oza</span></p>
34+
</article>
35+
</div>
36+
37+
38+
</body>
39+
</html>

NFT Preview Card Component/styles.css

+144
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap");
2+
3+
* {
4+
margin: 0;
5+
padding: 0;
6+
box-sizing: border-box;
7+
}
8+
9+
:root {
10+
--soft-blue: hsl(215, 83%, 47%);
11+
--cyan: hsl(208, 100%, 50%);
12+
13+
/* ### Neutral */
14+
15+
--main-bg: hsl(269, 68%, 23%);
16+
--card-bg: hsla(269, 55%, 53%, 0.864);
17+
--line: hsl(0, 0%, 100%);
18+
--white: hsl(0, 0%, 100%);
19+
}
20+
21+
img {
22+
max-width: 100%;
23+
}
24+
25+
ul {
26+
list-style-type: none;
27+
}
28+
29+
p {
30+
font-weight: 300;
31+
}
32+
33+
body {
34+
font-family: "Outfit", sans-serif;
35+
font-size: 18px;
36+
background-color: var(--main-bg);
37+
color: hsl(0, 0%, 100%, 60%);
38+
padding: 1.25rem;
39+
}
40+
41+
.container {
42+
padding: 1.25rem;
43+
background-color: var(--card-bg);
44+
border-radius: 0.5rem;
45+
margin-bottom: 1rem;
46+
}
47+
48+
.container .main-image {
49+
position: relative;
50+
}
51+
52+
.container .main-image div {
53+
position: absolute;
54+
top: 0;
55+
background-color: hsl(178, 100%, 50%, 60%);
56+
width: 100%;
57+
height: calc(100% - 4px);
58+
z-index: 999;
59+
opacity: 0;
60+
transition: opacity 0.3s ease-in-out;
61+
}
62+
63+
.container .main-image div:hover {
64+
opacity: 1;
65+
cursor: pointer;
66+
}
67+
68+
.container .main-image div img {
69+
position: absolute;
70+
left: 50%;
71+
top: 50%;
72+
transform: translate(-50%, -50%);
73+
}
74+
75+
.container h2 {
76+
color: var(--white);
77+
margin: 1rem 0.5rem 0.5rem 0;
78+
}
79+
80+
.container h2:hover {
81+
color: var(--cyan);
82+
cursor: pointer;
83+
}
84+
85+
.container ul {
86+
display: flex;
87+
align-items: center;
88+
justify-content: space-between;
89+
padding: 2rem 0;
90+
border-bottom: 1px solid var(--line);
91+
}
92+
93+
.container ul li {
94+
display: flex;
95+
align-items: center;
96+
}
97+
98+
.container ul li:first-child {
99+
color: var(--cyan);
100+
}
101+
102+
.container ul li img {
103+
margin-right: 0.5rem;
104+
}
105+
106+
.container .avatar {
107+
display: flex;
108+
align-items: center;
109+
justify-content: start;
110+
padding-top: 2rem;
111+
}
112+
113+
.container .avatar img {
114+
width: 3.5rem;
115+
border: 2px solid var(--white);
116+
border-radius: 50%;
117+
margin-right: 1rem;
118+
}
119+
120+
.container .avatar p span {
121+
color: var(--white);
122+
font-weight: 1000;
123+
}
124+
125+
.container .avatar p span:hover {
126+
color: var(--cyan);
127+
cursor: pointer;
128+
}
129+
130+
.attribution {
131+
font-size: 16px;
132+
text-align: center;
133+
}
134+
135+
.attribution a {
136+
color: hsl(228, 45%, 44%);
137+
}
138+
139+
@media (min-width: 500px) {
140+
.container {
141+
width: 450px;
142+
margin: 0 auto 1rem;
143+
}
144+
}

0 commit comments

Comments
 (0)