Files
SIA/tools/itb/social.html
2024-12-04 17:19:46 +01:00

179 lines
5.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>SocialConnect</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
background: #f0f2f5;
}
.navbar {
position: fixed;
top: 0;
width: 100%;
height: 60px;
background: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 100;
display: flex;
align-items: center;
padding: 0 16px;
}
.search-box {
margin-left: 16px;
padding: 8px;
border-radius: 20px;
border: 1px solid #ddd;
width: 240px;
}
.main-content {
margin-top: 80px;
margin-left: auto;
margin-right: auto;
max-width: 680px;
padding: 20px;
}
.post {
background: white;
border-radius: 8px;
padding: 16px;
margin-bottom: 16px;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.post-header {
display: flex;
align-items: center;
margin-bottom: 12px;
}
.profile-pic {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 12px;
background: #ddd;
}
.post-meta {
flex-grow: 1;
}
.username {
font-weight: bold;
color: #1a1a1a;
}
.timestamp {
color: #65676b;
font-size: 13px;
}
.post-content {
margin-bottom: 12px;
line-height: 1.5;
}
.post-image {
width: 100%;
max-height: 400px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 12px;
}
.post-actions {
display: flex;
border-top: 1px solid #ddd;
padding-top: 12px;
}
.action-button {
flex: 1;
text-align: center;
padding: 8px;
border: none;
background: none;
cursor: pointer;
color: #65676b;
font-weight: 600;
}
.action-button:hover {
background: #f2f2f2;
border-radius: 4px;
}
.comment-section {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #ddd;
}
.comment {
display: flex;
margin-bottom: 8px;
}
.comment-content {
background: #f0f2f5;
padding: 8px 12px;
border-radius: 18px;
margin-left: 8px;
flex-grow: 1;
}
</style>
</head>
<body>
<nav class="navbar">
<h1>SocialConnect</h1>
<input type="text" class="search-box" placeholder="Search posts..." aria-label="Search posts">
</nav>
<main class="main-content">
<!-- Generate 20 posts with varying content -->
<div class="post">
<div class="post-header">
<div class="profile-pic"></div>
<div class="post-meta">
<div class="username">Alice Johnson</div>
<div class="timestamp">2 hours ago</div>
</div>
</div>
<div class="post-content">
Just finished my morning hike! The sunrise was absolutely breathtaking today. 🌄
#MorningHike #Nature #Wellness
</div>
<img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='648' height='400'><rect width='100%' height='100%' fill='%23ddd'/></svg>" alt="Sunrise view from mountain top" class="post-image">
<div class="post-actions">
<button class="action-button">Like</button>
<button class="action-button">Comment</button>
<button class="action-button">Share</button>
</div>
<div class="comment-section">
<div class="comment">
<div class="profile-pic"></div>
<div class="comment-content">
<div class="username">Bob Smith</div>
Beautiful view! Which trail is this?
</div>
</div>
</div>
</div>
<!-- Repeat similar structure with different content 20 times -->
<!-- This is post 2 -->
<div class="post">
<div class="post-header">
<div class="profile-pic"></div>
<div class="post-meta">
<div class="username">Sarah Chen</div>
<div class="timestamp">3 hours ago</div>
</div>
</div>
<div class="post-content">
Just launched my new portfolio website! 🚀 Excited to share my latest projects with everyone.
Check it out and let me know what you think! #WebDevelopment #Portfolio #Coding
</div>
<div class="post-actions">
<button class="action-button">Like</button>
<button class="action-button">Comment</button>
<button class="action-button">Share</button>
</div>
</div>
<!-- Continue with more posts... -->
<!-- Posts 3-20 would follow similar pattern with varied content -->
</main>
</body>
</html>