Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added-profile-card-page #1560

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
141 changes: 141 additions & 0 deletions Web Development/Basic/Profile card/design.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
@import url('https://fonts.googleapis.com/css2?family=Concert+One&family=Kalnia:wght@100;200&family=Raleway:ital,wght@1,500&display=swap');

*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Concert One', sans-serif;
font-family: 'Kalnia', serif;
font-family: 'Raleway', sans-serif;
}

body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #f4f4f4;
}

.profile-card {
display: flex;
flex-direction: column;
align-items: center;
max-width: 370px;
width: 100%;
background: #fff;
border-radius: 30px;
padding: 25px;
box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
position: relative;
}
.profile-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
height: 36%;
width: 100%;
border-radius: 24px 24px 0 0;
background-color: #4000ff;
}

.image {
position: relative;
height: 150px;
width: 150px;
border-radius: 50%;
background-color: #190f9b;
padding: 3px;
margin-bottom: 10px;
}

.image .profile-card {
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 50%;
border: 3px solid #fff;
}

.profile-card .text-data {
display: flex;
flex-direction: column;
align-items: center;
}

.text-data .name {
font-size: 22px;
font-weight: 500px;
}

.text-data .job {
font-size: 15px;
font-weight: 400px;
}

.profile-card .media-buttons {
display: flex;
align-items: center;
margin-top: 15px;
}

.media-buttons .link {
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
font-size: 18px;
height: 34px;
width: 34px;
border-radius: 50%;
margin: 0 8px;
text-decoration: none;
}

.profile-card .buttons {
display: flex;
align-items: center;
margin-top: 25px;
}

.buttons .button {
padding: 8px 24px;
margin: 0 10px;
border-radius: 25px;
color: #ffffff;
font-size: 14px;
font-weight: 400;
border: none;
background-color: #4070f4;
cursor: pointer;
transition: all 0.3s ease;
}

.buttons .button:hover {
background-color: #0e4bf1;
}

.profile-card .analytics {
display: flex;
align-items: center;
margin-top: 25px;
}

.analytics .data {
display: flex;
align-items: center;
color: #333;
padding: 0 20px;
border-right: 2px solid #e7e7e7;
}

.data i{
font-size: 18px;
margin-right: 6px;
}

.data:last-child {
border-right: none;

}
Binary file added Web Development/Basic/Profile card/id-photo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions Web Development/Basic/Profile card/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Slider</title>
<link rel="stylesheet" href="design.css">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
</head>
<body>
<div class="profile-card">
<div class="image">
<img src="id-photo.jpg" alt="" class="profile-card">
</div>

<div class="text-data">
<span class="name">Williams Joe</span>
<span class="job">Artist</span>
</div>

<div class="media-buttons">
<a href="#" style="background: #4267b2;" class="link">
<i class='bx bxl-facebook'></i>
</a>
<a href="#" style="background: #1da1f2;" class="link">
<i class='bx bxl-twitter'></i>
</a>
<a href="#" style="background: #e1306c;" class="link">
<i class='bx bxl-instagram'></i>
</a>
<a href="#" style="background: #ff0000;" class="link">
<i class='bx bxl-youtube'></i>
</a>
</div>

<div class="buttons">
<button class="button">Subscribe</button>
<button class="button">Message</button>
</div>

<div class="analytics">
<div class="data">
<i class='bx bx-heart'></i>
<span class="number">60k</span>
</div>
<div class="data">
<i class='bx bx-message-rounded'></i>
<span class="number">20k</span>
</div>
<div class="data">
<i class='bx bx-share'></i>
<span class="number">40k</span>
</div>
</div>
</div>
</body>
</html>
Loading