darkseen-messenger / posts.html
fss1236c's picture
ابني لي منصة دردشة مثل منصة تليجرام بالضبط
f9bab3d verified
Raw History Blame Contribute Delete
11.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DarkSeen - Posts</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://cdn.tailwindcss.com"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
body {
font-family: 'Roboto', sans-serif;
background-color: #111;
color: #fff;
}
.sidebar {
background-color: #222;
border-right: 1px solid #333;
}
.content-area {
background-color: #111;
}
.nav-item.active {
color: #f00;
border-bottom: 2px solid #f00;
}
.post-card {
background-color: #222;
border: 1px solid #333;
transition: all 0.3s;
}
.post-card:hover {
border-color: #f00;
}
.like-btn.active {
color: #f00;
}
.create-post {
background-color: #222;
border: 1px solid #333;
}
.create-post-btn {
background-color: #f00;
transition: all 0.3s;
}
.create-post-btn:hover {
background-color: #c00;
}
.post-action {
color: #999;
transition: all 0.3s;
}
.post-action:hover {
color: #f00;
}
</style>
</head>
<body class="flex h-screen overflow-hidden">
<!-- Sidebar (same as chat.html) -->
<div class="sidebar w-20 md:w-64 flex flex-col">
<div class="p-4 border-b border-gray-800 flex items-center justify-center md:justify-between">
<div class="hidden md:block text-red-500 font-bold text-xl">DARK SEEN</div>
<div class="flex items-center space-x-2">
<button class="p-2 rounded-full hover:bg-gray-700">
<i class="fas fa-bars text-gray-400"></i>
</button>
</div>
</div>
<div class="overflow-y-auto flex-1">
<div class="p-2">
<div class="flex items-center p-3 rounded-lg bg-gray-800 mb-2">
<div class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center">
<i class="fas fa-search text-gray-400"></i>
</div>
<input type="text" placeholder="Search posts..." class="ml-2 bg-transparent border-none outline-none text-white w-full hidden md:block">
</div>
<!-- Post categories -->
<div class="mb-4 hidden md:block">
<div class="text-xs text-gray-500 uppercase tracking-wider px-3 mb-2">Categories</div>
<div class="space-y-1">
<a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-800 text-sm">All Posts</a>
<a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-800 text-sm">Following</a>
<a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-800 text-sm">Popular</a>
<a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-800 text-sm">Technology</a>
<a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-800 text-sm">Gaming</a>
</div>
</div>
</div>
</div>
<!-- Bottom navigation (same as chat.html) -->
<div class="border-t border-gray-800 p-2">
<div class="flex justify-around md:justify-start md:space-x-4">
<a href="chat.html" class="nav-item p-2 flex flex-col items-center md:flex-row">
<i class="fas fa-comment text-gray-400"></i>
<span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Chats</span>
</a>
<a href="channels.html" class="nav-item p-2 flex flex-col items-center md:flex-row">
<i class="fas fa-bullhorn text-gray-400"></i>
<span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Channels</span>
</a>
<a href="groups.html" class="nav-item p-2 flex flex-col items-center md:flex-row">
<i class="fas fa-users text-gray-400"></i>
<span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Groups</span>
</a>
<a href="#" class="nav-item active p-2 flex flex-col items-center md:flex-row">
<i class="fas fa-newspaper text-red-500"></i>
<span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Posts</span>
</a>
<a href="profile.html" class="nav-item p-2 flex flex-col items-center md:flex-row">
<i class="fas fa-user text-gray-400"></i>
<span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Profile</span>
</a>
</div>
</div>
</div>
<!-- Content area -->
<div class="content-area flex-1 flex flex-col overflow-hidden">
<!-- Header -->
<div class="border-b border-gray-800 p-4">
<h2 class="text-xl font-bold">Posts</h2>
</div>
<!-- Create post -->
<div class="border-b border-gray-800 p-4 create-post">
<div class="flex items-start">
<img src="http://static.photos/red/200x200/8" class="w-10 h-10 rounded-full">
<div class="ml-3 flex-1">
<input type="text" placeholder="What's on your mind?" class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 text-white focus:outline-none focus:border-red-500">
<div class="flex justify-between mt-3">
<div class="flex space-x-2">
<button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
<i class="fas fa-image mr-1"></i>
<span class="text-sm">Photo</span>
</button>
<button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
<i class="fas fa-video mr-1"></i>
<span class="text-sm">Video</span>
</button>
<button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
<i class="fas fa-file-alt mr-1"></i>
<span class="text-sm">Document</span>
</button>
</div>
<button class="create-post-btn px-4 py-2 rounded-lg text-white">
Post
</button>
</div>
</div>
</div>
</div>
<!-- Posts feed -->
<div class="flex-1 overflow-y-auto p-4 space-y-4">
<!-- Post card -->
<div class="post-card rounded-lg p-4">
<div class="flex items-start">
<img src="http://static.photos/red/200x200/9" class="w-10 h-10 rounded-full">
<div class="ml-3 flex-1">
<div class="flex items-center">
<span class="font-bold">John Doe</span>
<span class="verified-badge ml-1">
<i class="fas fa-check-circle text-red-500"></i>
</span>
<span class="text-gray-500 text-sm ml-2">2h ago</span>
</div>
<p class="mt-2">Just finished setting up my new DarkSeen profile! The red and black theme looks amazing. What do you think about the new update?</p>
<img src="http://static.photos/red/640x360/9" class="mt-3 rounded-lg w-full">
<div class="flex justify-between mt-4 pt-3 border-t border-gray-800">
<button class="post-action flex items-center">
<i class="far fa-thumbs-up mr-1"></i>
<span>Like</span>
</button>
<button class="post-action flex items-center">
<i class="far fa-comment mr-1"></i>
<span>Comment</span>
</button>
<button class="post-action flex items-center">
<i class="fas fa-share mr-1"></i>
<span>Share</span>
</button>
</div>
</div>
</div>
</div>
<!-- More post cards -->
<div class="post-card rounded-lg p-4">
<div class="flex items-start">
<img src="http://static.photos/red/200x200/10" class="w-10 h-10 rounded-full">
<div class="ml-3 flex-1">
<div class="flex items-center">
<span class="font-bold">Tech Updates</span>
<span class="verified-badge ml-1">
<i class="fas fa-check-circle text-red-500"></i>
</span>
<span class="text-gray-500 text-sm ml-2">5h ago</span>
</div>
<p class="mt-2">DarkSeen v2.0 is coming next week with amazing new features:</p>
<ul class="mt-2 list-disc list-inside text-gray-400">
<li>Enhanced encryption</li>
<li>New dark red theme variants</li>
<li>Improved file sharing</li>
<li>Group video calls</li>
</ul>
<div class="flex justify-between mt-4 pt-3 border-t border-gray-800">
<button class="post-action flex items-center">
<i class="far fa-thumbs-up mr-1"></i>
<span>Like</span>
</button>
<button class="post-action flex items-center">
<i class="far fa-comment mr-1"></i>
<span>Comment</span>
</button>
<button class="post-action flex items-center">
<i class="fas fa-share mr-1"></i>
<span>Share</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Posts functionality will be implemented here
</script>
</body>
</html>