DEV Community

Cover image for Code for insta part 2
Prince
Prince

Posted on

Code for insta part 2

https://www.instagram.com/webstreet_code/

CODE

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Instagram Frontend - Part 2</title>
  <!-- Link to Font Awesome for icons -->
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
  <style>
    body {
      margin: 0;
      padding: 0;
      background-color: black;
      color: white;
      font-family: Arial, sans-serif;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      border-bottom: 1px solid white;
    }

    .header .settings-icon, 
    .header .at-symbol {
      font-size: 24px;
    }

    .header .page-title {
      font-size: 18px;
      font-weight: bold;
      display: flex;
      align-items: center;
    }

    .header .page-title i {
      margin-left: 5px;
    }

    .imgdiv {
      display: flex;
      margin-top: 40px;
      padding: 0 20px;
    }

    .img {
      margin-top: 100px;
      height: 100px;
      width: 100px;
      border: 2px solid white;
      border-radius: 50%;
    }

    .profile-info {
      margin-left: 20px;
    }

    .profile-info h2 {
      display: flex;
      align-items: center;
      font-size: 20px;
      gap: 15px;
    }

    .buttons {
      margin-top: 10px;
    }

    .twobuttons {
      display: flex;
      gap: 10px;
    }

    button {
      border-radius: 10px;
      width: 100%;
      background-color: #3a3939;
      color: white;
      font-size: small;
      padding: 10px;
      border: none;
      cursor: pointer;
      margin: 5px;
    }

    h4 {
      margin: 10px 0;
    }

    .bio {
      padding: 0 20px;
      line-height: 1;
    }

    .bio .tags {
      margin-top: 5px;
      font-size: 14px;
    }

    .bio .more {
      color: #999;
      cursor: pointer;
    }

    .typ {
      color: #444444;
    }

    /* Highlight Section */
    .highlight {
      display: flex;
      /* justify-content: center; */
      padding: 20px;
    }

    .highlight-circle {
      position: relative;
      height: 60px;
      width: 60px;
      border-radius: 50%;
      background-color: gray;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .highlight-circle i {
      font-size: 24px;
      color: white;
    }

    /* Posts, Followers, Following Section */
    .social-info {
      display: flex;
      justify-content: space-around;
      padding: 10px 20px;
      margin-top: 20px;
      border-bottom: 1px solid white;
    }

    .social-info div {
      text-align: center;
    }

    .social-info div h4 {
      margin: 5px 0;
      font-size: 20px;
    }

    .social-info div p {
      margin: 0;
      font-size: 16px;
      color: #999;
    }

    /* Post Section */
    .posts {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
      padding: 20px;
    }

    .posts img {
      width: 100%;
      height: 100%;
      border-radius: 10px;
    }

    /* Bottom Navbar */
    .navbar {
      position: fixed;
      bottom: 0;
      width: 100%;
      background-color: #111;
      padding: 10px 0;
      display: flex;
      justify-content: space-around;
      border-top: 1px solid white;
    }

    .navbar i {
      font-size: 24px;
      color: white;
    }

  </style>
</head>
<body>
  <div class="container">
    <!-- Header Section -->
    <div class="header">
      <div class="settings-icon"><i class="fas fa-cog"></i></div>
      <div class="page-title">web_streetcode
        <i class="fas fa-chevron-down"></i></div>
      <div class="at-symbol">@</div>
    </div>

    <!-- Profile Image and Info Section -->
    <div class="imgdiv">
      <img src="./pic.jpg" alt="Profile Image" class="img">
      <div class="profile-info">
        <h2>web_streetcode <i class="fas fa-cog"></i></h2>
        <div class="buttons">
          <div class="twobuttons">
            <button>Edit Profile</button>
            <button>View Archive</button>
          </div>
          <button>Ad Tools</button>
        </div>
        <h5>3.2K accounts reached in the last 30 days. View Insights</h5>
      </div>
    </div>

    <!-- Bio Section -->
    <div class="bio">
      <h4>Street Coder</h4>
      <h4 class="typ">Education</h4>
      <div class="tags">
        Follow for learning coding with fun
        <span style="color:rgb(38, 64, 120)">
          #coding #freshers #learning #codinglife #india #students #education #skills #job... <span class="more">more</span>
        </span>
      </div>
    </div>

    <!-- Social Info (Posts, Followers, Following) -->
    <!-- Highlight Section -->
    <div class="highlight">
      <div class="highlight-circle">
        <i class="fas fa-plus"></i>
      </div>
    </div>
    <div class="social-info">
      <div>
        <h4>33</h4>
        <p>Posts</p>
      </div>
      <div>
        <h4>113</h4>
        <p>Followers</p>
      </div>
      <div>
        <h4>38</h4>
        <p>Following</p>
      </div>
    </div>


    <!-- Post Section -->
    <div class="posts">
      <img src="./pic.jpg" alt="Post 1">
      <img src="./pic.jpg" alt="Post 2">
      <img src="./pic.jpg" alt="Post 3">
      <img src="./pic.jpg" alt="Post 4">
      <img src="./pic.jpg" alt="Post 5">
      <img src="./pic.jpg" alt="Post 6">
    </div>
  </div>

  <!-- Bottom Navbar -->
  <div class="navbar">
    <i class="fas fa-home"></i>
    <i class="fas fa-search"></i>
    <i class="fas fa-plus-square"></i>
    <i class="fas fa-heart"></i>
    <i class="fas fa-user"></i>
  </div>
</body>
</html>

Enter fullscreen mode Exit fullscreen mode

Top comments (0)