212 lines
8.0 KiB
HTML
212 lines
8.0 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<title>SocialConnect</title>
|
||
<style>
|
||
/* Core layout styles */
|
||
body { margin: 0; font-family: Arial, sans-serif; background: #f0f2f5; }
|
||
|
||
/* Fixed navigation bar */
|
||
.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;
|
||
}
|
||
|
||
/* Main content area */
|
||
.main-content {
|
||
display: flex;
|
||
margin-top: 60px;
|
||
padding: 20px;
|
||
max-width: 1200px;
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
}
|
||
|
||
/* 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;
|
||
padding: 16px;
|
||
margin-bottom: 16px;
|
||
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
||
}
|
||
|
||
/* Right sidebar */
|
||
.sidebar {
|
||
width: 300px;
|
||
position: sticky;
|
||
top: 80px;
|
||
height: calc(100vh - 80px);
|
||
overflow-y: auto;
|
||
}
|
||
|
||
/* 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>
|
||
|
||
<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 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>
|
||
|
||
<!-- 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>
|
||
|
||
<!-- 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>
|
||
|
||
<!-- 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>
|
||
|
||
<!-- 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> |