Components Layout Components Retro Social Media Layout

Retro Social Media Layout

A simple, monochromatic retro-themed layout for social media, with support for dark mode.

Preview

HTML Code

<div class="min-h-screen bg-gray-100 dark:bg-gray-900 py-8">
  <div class="container mx-auto px-4">
    <div class="flex flex-col md:flex-row gap-8">
      <!-- Left Sidebar -->
      <div class="md:w-1/4">
        <div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-6">
          <h2 class="text-lg font-bold text-gray-800 dark:text-white mb-4">Profile</h2>
          <div class="flex items-center mb-4">
            <img class="w-12 h-12 rounded-full mr-4" src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar">
            <div>
              <p class="font-semibold text-gray-800 dark:text-white">John Doe</p>
              <p class="text-sm text-gray-600 dark:text-gray-400">View Profile</p>
            </div>
          </div>
          <ul class="space-y-2">
            <li><a href="#" class="text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white text-sm">Feed</a></li>
            <li><a href="#" class="text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white text-sm">Messages</a></li>
            <li><a href="#" class="text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white text-sm">Settings</a></li>
          </ul>
        </div>
      </div>

      <!-- Main Content -->
      <div class="md:w-1/2">
        <div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-6">
          <h2 class="text-lg font-bold text-gray-800 dark:text-white mb-4">Posts</h2>
          <div class="border-b border-gray-200 dark:border-gray-700 mb-6 pb-6">
            <div class="flex items-center mb-4">
              <img class="w-10 h-10 rounded-full mr-4" src="https://randomuser.me/api/portraits/women/2.jpg" alt="Avatar">
              <div>
                <p class="font-semibold text-gray-800 dark:text-white">Jane Smith</p>
                <p class="text-sm text-gray-600 dark:text-gray-400">2 hours ago</p>
              </div>
            </div>
            <p class="text-gray-700 dark:text-gray-300 mb-4">This is an example post with some sample text. #retro #coding</p>
             <img class="w-full rounded-lg" src="https://picsum.photos/seed/retro1/600/400" alt="Post Image">
          </div>
           <div class="border-b border-gray-200 dark:border-gray-700 mb-6 pb-6">
            <div class="flex items-center mb-4">
              <img class="w-10 h-10 rounded-full mr-4" src="https://randomuser.me/api/portraits/men/3.jpg" alt="Avatar">
              <div>
                <p class="font-semibold text-gray-800 dark:text-white">Peter Jones</p>
                <p class="text-sm text-gray-600 dark:text-gray-400">5 hours ago</p>
              </div>
            </div>
            <p class="text-gray-700 dark:text-gray-300 mb-4">Another post example. Simple is often better. #monochromatic</p>
             <img class="w-full rounded-lg" src="https://picsum.photos/seed/retro2/600/400" alt="Post Image">
          </div>
        </div>
      </div>

      <!-- Right Sidebar -->
      <div class="md:w-1/4">
        <div class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-6">
          <h2 class="text-lg font-bold text-gray-800 dark:text-white mb-4">Suggestions</h2>
          <ul class="space-y-4">
            <li class="flex items-center">
              <img class="w-10 h-10 rounded-full mr-4" src="https://randomuser.me/api/portraits/women/4.jpg" alt="Avatar">
              <div>
                <p class="font-semibold text-gray-800 dark:text-white">Sara White</p>
                <p class="text-sm text-gray-600 dark:text-gray-400">Follow</p>
              </div>
            </li>
             <li class="flex items-center">
              <img class="w-10 h-10 rounded-full mr-4" src="https://randomuser.me/api/portraits/men/5.jpg" alt="Avatar">
              <div>
                <p class="font-semibold text-gray-800 dark:text-white">David Green</p>
                <p class="text-sm text-gray-600 dark:text-gray-400">Follow</p>
              </div>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>

Related Components

Layout Components Component

A responsive web component layout following Material Design principles for a social media application with dark theme support.

Open

Portfolio Layout

A simple responsive layout component for a portfolio focusing on microinteractions with complementary colors, dark mode support, and minimal elements.

Open

Layout Components Component

A responsive portfolio layout component styled with a retro/vintage design aesthetic, utilizing an analogous color scheme and designed for medium complexity with interactive features for showcasing work or products.

Open