Skip to content

Commit

Permalink
1st commit
Browse files Browse the repository at this point in the history
  • Loading branch information
4F24L committed Dec 20, 2023
1 parent b7bec42 commit 39c1970
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 0 deletions.
Binary file added image.me.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions index.html
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>
141 changes: 141 additions & 0 deletions style.css
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;
}

0 comments on commit 39c1970

Please sign in to comment.