-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
203 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Card - Afzal Mir</title> | ||
|
||
<link | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" | ||
rel="stylesheet"/> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
|
||
<div class="wrapper"> | ||
|
||
<div class="card"> | ||
|
||
<div class="image"> | ||
<img src="image.me.jpg" class="profile-image" alt=""> | ||
</div> | ||
|
||
<div class="hd-text"> | ||
<h2>Md Afzal Mir</h2> | ||
<h3>Youtuber & Blogger</h3> | ||
</div> | ||
|
||
<!-- icon starts here --> | ||
<div class="icons"> | ||
<a href="#" class="link"> | ||
<i class="ri-facebook-fill fbcon"></i></a> | ||
|
||
<a href="#" class="link"> | ||
<i class="ri-instagram-line inscon"></i></a> | ||
|
||
<a href="#" class="link"> | ||
<i class="ri-twitter-line twicon"></i></a> | ||
|
||
<a href="#" class="link"> | ||
<i class="ri-youtube-line youcon"></i></a> | ||
|
||
</div> | ||
|
||
<div class="buttons"> | ||
|
||
<button>Subscribe</button> | ||
|
||
<button>Message</button> | ||
</div> | ||
|
||
<div class="reaction"> | ||
|
||
<i class="ri-heart-line rxn">10k</i> | ||
|
||
<i class="ri-chat-1-line rxn">5k</i> | ||
|
||
<i class="ri-share-forward-line rxn">2k</i> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
*{ | ||
padding: 0; | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
.wrapper{ | ||
height: 100vh; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: #f4f4f4; | ||
} | ||
|
||
.card{ | ||
max-width: 370px; | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
flex-direction: column; | ||
background-color: #fff; | ||
|
||
box-shadow: 0 0 5px #949494; | ||
border-radius: 25px; | ||
|
||
position: relative; | ||
} | ||
|
||
.image{ | ||
height: 150px; | ||
width: 150px; | ||
position: relative; | ||
|
||
margin-top: 25px; | ||
padding: 3px; | ||
background-color: royalblue; | ||
border-radius: 50%; | ||
|
||
} | ||
|
||
.card::before{ | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 33%; | ||
width: 100%; | ||
background-color: royalblue; | ||
border-top-left-radius: 25px; | ||
border-top-right-radius: 25px; | ||
} | ||
|
||
.image .profile-image{ | ||
height: 100%; | ||
width: 100%; | ||
object-fit:cover; | ||
border-radius: 50%; | ||
/* padding: 3px; */ | ||
border: 3px solid #fff; | ||
|
||
} | ||
|
||
.hd-text{ | ||
font-family:cursive; | ||
text-align: center; | ||
padding-top: 20px; | ||
|
||
} | ||
|
||
.hd-text h3{ | ||
margin-top: 5px; | ||
} | ||
|
||
.link{ | ||
text-decoration: none; | ||
color: inherit; | ||
|
||
} | ||
|
||
.icons{ | ||
margin-top: 25px; | ||
font-size: 2em; | ||
} | ||
|
||
.fbcon, .twicon, .inscon, .youcon{ | ||
background-color: royalblue; | ||
color: white; | ||
border-radius: 50%; | ||
padding: 5px; | ||
margin: 3px; | ||
} | ||
|
||
.twicon{ | ||
background-color: rgb(0, 177, 236); | ||
} | ||
|
||
.inscon{ | ||
background-color: rgb(255, 0, 119); | ||
} | ||
|
||
.youcon{ | ||
background-color: rgb(255, 0, 0); | ||
} | ||
|
||
.buttons{ | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
margin-top: 30px; | ||
gap: 25px; | ||
} | ||
|
||
button{ | ||
background-color: royalblue; | ||
color: white; | ||
border: none; | ||
padding: 9px 20px; | ||
border-radius: 50px; | ||
font-weight: 600; | ||
font-size: 1.2rem; | ||
} | ||
|
||
.reaction{ | ||
margin: 30px 0; | ||
} | ||
|
||
.rxn{ | ||
|
||
font-size: 1.5rem; | ||
padding: 0 25px; | ||
border-right: 2px solid rgb(96, 96, 96); | ||
} | ||
|
||
.ri-share-forward-line{ | ||
border-right: none; | ||
} |