Skip to content

Commit

Permalink
Merge pull request #64 from Nick-h4ck3r/master
Browse files Browse the repository at this point in the history
Nice one @Nick-h4ck3r 馃敟
  • Loading branch information
keshavgbpecdelhi committed Oct 2, 2022
2 parents 3f07c06 + b8baf3a commit 93157b3
Show file tree
Hide file tree
Showing 13 changed files with 241 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions nft-preview-card-component/images/icon-clock.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions nft-preview-card-component/images/icon-ethereum.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions nft-preview-card-component/images/icon-view.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
167 changes: 167 additions & 0 deletions nft-preview-card-component/index.css
@@ -0,0 +1,167 @@
.attribution {
font-size: 11px;
text-align: center;
color: white;
}

.attribution a {
color: hsl(228, 45%, 44%);
}

* {
background-color: hsl(217, 54%, 11%);
font-family: "Outfit", sans-serift;
}

.Container {
background-color: hsl(216, 50%, 16%);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
padding: 15px;
width: 170px;
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
color: hsl(215, 32%, 27%);
border-radius: 10px;
}

.title {
color: white;
font-weight: 550;
display: flex;
background: transparent;
margin-top: 20px;
margin-bottom: 10px;
}

.title:hover {
color: hsl(178, 100%, 50%);
cursor: pointer;
}

.image {
justify-content: center;
align-items: center;
display: flex;
border-radius: 7px;
}

.hoverimage {
position: absolute;
top: 15px;
left: 15px;
width: 170px;
height: 170px;
border-radius: 7px;
background-color: hsl(178, 100%, 50%);
display: flex;
align-items: center;
justify-content: center;
display: none;
}

.imagepng {
object-fit: contain;
width: 100%;
border-radius: 7px;
}

.image:hover .hoverimage {
display: flex;
opacity: 0.7;
cursor: pointer;
}

.hoverpng {
object-fit: contain;
border-radius: 7px;
width: 30px;
background: transparent;
}

.description {
background: transparent;
color: hsl(215, 51%, 70%);
font-size: 10px;
font-weight: 330;
}

.price {
background: transparent;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 11px;
padding-top: 3px;
}

.price p {
background: transparent;
display: flex;
align-items: center;
font-size: 9px;
}

.price img {
background: transparent;
}

.ethsvg {
width: 7px;
margin-right: 4px;
}

.clocksvg {
width: 10px;
margin-right: 2px;
}

.creator {
background: transparent;
align-items: center;
display: flex;
font-size: 9px;
color: white;
}

.creator img {
width: 21px;
background: transparent;
background-color: white;
border-radius: 50px;
padding: 0.5px;
}

.creatorInfo {
background: transparent;
color: hsl(215, 51%, 70%);
margin: 7px;
}

.eth {
color: hsl(178, 100%, 50%);
}

.time {
color: hsl(215, 51%, 70%);
}

.creatorName {
color: white;
background: transparent;
margin-left: -3px;
}

.creatorName:hover {
color: hsl(178, 100%, 50%);
cursor: pointer;
}

hr {
display: flex;
border-style: solid;
border-color: hsl(215, 32%, 27%);
border-width: 0.2px;
}
68 changes: 68 additions & 0 deletions nft-preview-card-component/index.html
@@ -0,0 +1,68 @@
<!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="stylesheet" href="./index.css" />

<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=Outfit:wght@100;400&display=swap"
rel="stylesheet"
/>

<title>Frontend Mentor | NFT preview card component</title>
</head>

<body>
<div class="Container">
<div class="image">
<img src="./images/image-equilibrium.jpg" class="imagepng" />
<div class="hoverimage">
<img src="./images/icon-view.svg" class="hoverpng">
</div>
</div>

<div class="title">Equilibrium #3429</div>

<div class="description">
Our Equilibrium collection promotes balance and calm.
</div>

<div class="price">
<p class="eth">
<img src="./images/icon-ethereum.svg" class="ethsvg" />
0.041 ETH
</p>
<p class="time">
<img src="./images/icon-clock.svg" class="clocksvg" />
3 days left
</p>
</div>

<hr />

<div class="creator">
<img src="./images/image-avatar.png" alt="" />
<p class="creatorInfo">Creation of <p class="creatorName">Jules Wyvern</p></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="#">Nick</a>.
</div>
</body>
</html>
3 changes: 3 additions & 0 deletions nft-preview-card-component/readme.md
@@ -0,0 +1,3 @@
Added a new frontend project.

This a NFT Preview Card Component built using html and css only.

0 comments on commit 93157b3

Please sign in to comment.