Continue work on itb
This commit is contained in:
@@ -3,11 +3,10 @@
|
||||
<head>
|
||||
<title>SocialConnect</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Arial, sans-serif;
|
||||
background: #f0f2f5;
|
||||
}
|
||||
/* Core layout styles */
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f0f2f5; }
|
||||
|
||||
/* Fixed navigation bar */
|
||||
.navbar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
@@ -20,20 +19,34 @@
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
}
|
||||
.search-box {
|
||||
margin-left: 16px;
|
||||
padding: 8px;
|
||||
border-radius: 20px;
|
||||
border: 1px solid #ddd;
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
/* Main content area */
|
||||
.main-content {
|
||||
margin-top: 80px;
|
||||
display: flex;
|
||||
margin-top: 60px;
|
||||
padding: 20px;
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 680px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* Feed area */
|
||||
.feed {
|
||||
flex: 1;
|
||||
max-width: 680px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
/* Post creation area */
|
||||
.create-post {
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
/* Individual post styling */
|
||||
.post {
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
@@ -41,138 +54,159 @@
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
||||
}
|
||||
.post-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
|
||||
/* Right sidebar */
|
||||
.sidebar {
|
||||
width: 300px;
|
||||
position: sticky;
|
||||
top: 80px;
|
||||
height: calc(100vh - 80px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
.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;
|
||||
|
||||
/* Chat widget */
|
||||
.chat-widget {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 16px;
|
||||
width: 280px;
|
||||
background: white;
|
||||
border-radius: 8px 8px 0 0;
|
||||
box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Fixed navigation bar -->
|
||||
<nav class="navbar">
|
||||
<h1>SocialConnect</h1>
|
||||
<input type="text" class="search-box" placeholder="Search posts..." aria-label="Search posts">
|
||||
<button id="messages" aria-label="Open messages">Messages</button>
|
||||
<button id="notifications" aria-label="View notifications">Notifications</button>
|
||||
<img src="https://picsum.photos/100" alt="Your profile picture" id="profile_menu" aria-label="Open profile menu">
|
||||
</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 class="main-content">
|
||||
<!-- Main feed area -->
|
||||
<section class="feed">
|
||||
<!-- Post creation area -->
|
||||
<div class="create-post">
|
||||
<textarea placeholder="What's on your mind?" aria-label="Create a post"></textarea>
|
||||
<input type="file" id="post_images" multiple accept="image/*" aria-label="Add images to your post">
|
||||
<button type="button">Post</button>
|
||||
</div>
|
||||
|
||||
<!-- Feed posts -->
|
||||
<div class="post">
|
||||
<div class="post-header">
|
||||
<img src="https://picsum.photos/100?random=1" alt="Alice's profile picture" class="profile-pic">
|
||||
<div class="post-meta">
|
||||
<div class="username">Alice Johnson</div>
|
||||
<div class="timestamp">2 hours ago</div>
|
||||
</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 class="post-content">
|
||||
Just finished my morning hike! The sunrise was absolutely breathtaking today. 🌄
|
||||
#MorningHike #Nature #Wellness
|
||||
</div>
|
||||
<img src="https://picsum.photos/800/600?random=2" 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="comments">
|
||||
<div class="comment">
|
||||
<img src="https://picsum.photos/100?random=3" alt="Bob's profile picture" class="profile-pic">
|
||||
<div class="comment-content">Beautiful view! Which trail is this?</div>
|
||||
</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>
|
||||
<!-- Long post with "Read more" -->
|
||||
<div class="post">
|
||||
<div class="post-header">
|
||||
<img src="carol-avatar.jpg" alt="Carol's profile picture" class="profile-pic">
|
||||
<div class="post-meta">
|
||||
<div class="username">Carol White</div>
|
||||
<div class="timestamp">3 hours ago</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-content truncated">
|
||||
Just finished reading an fascinating paper on artificial intelligence and its implications...
|
||||
<button class="read-more">Read more</button>
|
||||
</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
|
||||
|
||||
<!-- Multi-image post -->
|
||||
<div class="post">
|
||||
<div class="post-header">
|
||||
<img src="https://picsum.photos/100?random=4" alt="David's profile picture" class="profile-pic">
|
||||
<div class="post-meta">
|
||||
<div class="username">David Brown</div>
|
||||
<div class="timestamp">5 hours ago</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
Amazing day at the photography exhibition! Swipe to see more 📸
|
||||
</div>
|
||||
<div class="image-gallery">
|
||||
<img src="https://picsum.photos/800/800?random=5" alt="Exhibition photo 1" class="gallery-image">
|
||||
<img src="https://picsum.photos/800/800?random=6" alt="Exhibition photo 2" class="gallery-image">
|
||||
<img src="https://picsum.photos/800/800?random=7" alt="Exhibition photo 3" class="gallery-image">
|
||||
<button class="gallery-nav prev" aria-label="Previous image">←</button>
|
||||
<button class="gallery-nav next" aria-label="Next image">→</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-actions">
|
||||
<button class="action-button">Like</button>
|
||||
<button class="action-button">Comment</button>
|
||||
<button class="action-button">Share</button>
|
||||
|
||||
<!-- Continue with more posts... -->
|
||||
<!-- Add 15-20 more posts with varying content -->
|
||||
</section>
|
||||
|
||||
<!-- Right sidebar -->
|
||||
<aside class="sidebar">
|
||||
<!-- Online friends -->
|
||||
<div class="friends-list">
|
||||
<h2>Online Friends</h2>
|
||||
<div class="friend">
|
||||
<img src="https://picsum.photos/100?random=8" alt="Emma's profile picture">
|
||||
<span>Emma Davis</span>
|
||||
<div class="online-indicator"></div>
|
||||
</div>
|
||||
<div class="friend">
|
||||
<img src="https://picsum.photos/100?random=9" alt="Frank Wilson's profile picture">
|
||||
<span>Frank Wilson</span>
|
||||
<div class="online-indicator"></div>
|
||||
</div>
|
||||
<!-- Add more online friends -->
|
||||
</div>
|
||||
|
||||
<!-- Trending topics -->
|
||||
<div class="trending">
|
||||
<h2>Trending Topics</h2>
|
||||
<div class="topic">#Photography</div>
|
||||
<div class="topic">#TechNews</div>
|
||||
<div class="topic">#Hiking</div>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
<!-- Chat widget -->
|
||||
<div class="chat-widget">
|
||||
<div class="chat-header">
|
||||
<h3>Chat</h3>
|
||||
<button class="minimize" aria-label="Minimize chat">−</button>
|
||||
</div>
|
||||
<div class="chat-messages">
|
||||
<!-- Chat messages would go here -->
|
||||
</div>
|
||||
<input type="text" class="chat-input" placeholder="Type a message..." aria-label="Type a message">
|
||||
</div>
|
||||
|
||||
<!-- Continue with more posts... -->
|
||||
<!-- Posts 3-20 would follow similar pattern with varied content -->
|
||||
|
||||
</main>
|
||||
<!-- Image preview modal -->
|
||||
<div class="modal" id="image_preview" style="display: none;">
|
||||
<img src="" alt="Large preview of selected image">
|
||||
<button class="close-modal" aria-label="Close preview">×</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user