<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Media Profile</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="profile-container">
<div class="profile-header">
<div class="profile-cover">
<img src="https://codezillaye.com/wp-content/uploads/2024/06/frontend.jpg" alt="Cover Image">
</div>
<div class="profile-avatar">
<img src="https://codezillaye.com/wp-content/uploads/2024/06/avatar.png" alt="Avatar Image">
</div>
<div class="profile-info">
<h1>codezillaye</h1>
<p>codezillaye.com</p>
<a href="#" class="btn btn-primary">Edit Profile</a>
</div>
</div>
<div class="profile-content">
<ul class="profile-tabs">
<li class="tab active"><a href="#">Followers</a></li>
<li class="tab"><a href="#">Following</a></li>
<li class="tab"><a href="#">Posts</a></li>
</ul>
<div class="profile-followers">
<div class="follower-card">
<div class="follower-avatar">
<img src="https://codezillaye.com/wp-content/uploads/2024/06/avatar.png" alt="Follower Avatar">
</div>
<div class="follower-info">
<h2>Karina Clark</h2>
<p>UX Designer</p>
<a href="#" class="btn btn-outline-primary">Follow</a>
</div>
</div>
<!-- Repeat follower card for other followers -->
</div>
</div>
</div>
</body>
</html>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.profile-container {
max-width: 800px;
margin: 20px auto;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.profile-header {
position: relative;
text-align: center;
padding-bottom: 60px;
}
.profile-cover img {
width: 100%;
height: 200px;
object-fit: cover;
}
.profile-avatar {
position: absolute;
top: 140px;
left: 50%;
transform: translateX(-50%);
width: 120px;
height: 120px;
border: 5px solid #fff;
border-radius: 50%;
overflow: hidden;
}
.profile-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.profile-info {
margin-top: 60px;
}
.profile-info h1 {
margin: 10px 0 5px;
font-size: 24px;
}
.profile-info p {
margin: 0;
color: #666;
}
.btn {
display: inline-block;
padding: 10px 20px;
margin: 10px 0;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s ease;
}
.btn-primary {
background-color: #007bff;
color: #fff;
}
.btn-primary:hover {
background-color: #0056b3;
}
.btn-outline-primary {
border: 1px solid #007bff;
color: #007bff;
background-color: #fff;
}
.btn-outline-primary:hover {
background-color: #007bff;
color: #fff;
}
.profile-tabs {
display: flex;
justify-content: center;
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
margin-bottom: 20px;
}
.tab {
list-style: none;
}
.tab a {
display: block;
padding: 10px 20px;
text-decoration: none;
color: #007bff;
transition: background-color 0.3s ease;
}
.tab a:hover, .tab.active a {
background-color: #007bff;
color: #fff;
border-radius: 4px;
}
.profile-content {
padding: 0 20px 20px;
}
.profile-followers {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.follower-card {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 20px;
width: calc(50% - 20px);
display: flex;
align-items: center;
}
.follower-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
overflow: hidden;
margin-right: 20px;
}
.follower-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.follower-info h2 {
margin: 0;
font-size: 18px;
}
.follower-info p {
margin: 5px 0;
color: #666;
}
.follower-info .btn {
margin-top: 10px;
}