<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Social Network Home Feed</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="feed-container">
<div class="feed-header">
<h1>Home Feed</h1>
</div>
<div class="feed">
<div class="feed-item">
<div class="user-info">
<img src="https://codezillaye.com/wp-content/uploads/2024/06/avtare2.png" alt="User Avatar">
<div class="user-details">
<h2>codezillaye</h2>
<p>codezillaye.com 2h</p>
</div>
</div>
<div class="feed-content">
<p>This is a sample post content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque nisl eros, pulvinar facilisis justo mollis, auctor consequat urna.</p>
<img src="https://codezillaye.com/wp-content/uploads/2024/06/python.jpg" alt="Post Image">
</div>
<div class="feed-actions">
<button class="btn">Like</button>
<button class="btn">Comment</button>
<button class="btn">Share</button>
</div>
</div>
<div class="feed-item">
<div class="user-info">
<img src="https://codezillaye.com/wp-content/uploads/2024/06/avtare2.png" alt="User Avatar">
<div class="user-details">
<h2>codezillaye</h2>
<p>codezillaye • 3h</p>
</div>
</div>
<div class="feed-content">
<p>Another sample post content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque nisl eros, pulvinar facilisis justo mollis, auctor consequat urna.</p>
<img src="https://codezillaye.com/wp-content/uploads/2024/06/cmd.png" alt="Post Image">
</div>
<div class="feed-actions">
<button class="btn">Like</button>
<button class="btn">Comment</button>
<button class="btn">Share</button>
</div>
</div>
<!-- Repeat feed-item for more posts -->
</div>
</div>
</body>
</html>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.feed-container {
max-width: 600px;
margin: 20px auto;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.feed-header {
background-color: #007bff;
color: #fff;
padding: 20px;
text-align: center;
}
.feed {
padding: 20px;
}
.feed-item {
border-bottom: 1px solid #ddd;
padding: 20px 0;
}
.feed-item:last-child {
border-bottom: none;
}
.user-info {
display: flex;
align-items: center;
}
.user-info img {
width: 50px;
height: 50px;
border-radius: 50%;
margin-right: 15px;
}
.user-details h2 {
margin: 0;
font-size: 18px;
}
.user-details p {
margin: 5px 0 0;
color: #666;
}
.feed-content {
margin: 15px 0;
}
.feed-content p {
margin: 0 0 10px;
}
.feed-content img {
width: 100%;
border-radius: 8px;
object-fit: cover;
}
.feed-actions {
display: flex;
justify-content: space-between;
}
.btn {
background-color: #007bff;
color: #fff;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #0056b3;
}