[Instagram Clone]Main Page Layout & Design
Table of contents
Instagram Clone Coding Using HTML, CSS, and Vanilla Javascript
HTML & CSS
Body
- Nav bar
<nav class="navbar">
<div class="nav-wrapper">
<span class="logo">Westagram</span>
<input type="text" placeholder="Search" class="search-box">
<div class="nav-icons">
<img src="img/home.png" alt="home" class="icon">
<img src="img/send.png" alt="send" class="icon">
<img src="img/plus.png" alt="plus" class="icon">
<img src="img/compass.png" alt="compass" class="icon">
<img src="img/heart.png" alt="likes" class="icon">
<img src="img/user.png" alt="user" class="icon user-profile">
</div>
</div>
</nav>
.navbar {
position: fixed;
z-index: 9999;
top: 0;
left: 0;
width: 100%;
height: 50px;
background: #fff;
border-bottom: 1px solid #dfdfdf;
padding: 5px 0;
display: flex;
justify-content: center;
}
.nav-wrapper {
width: 70%;
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
}
.logo {
display: inline-block;
height: 70%;
margin-top: 8px;
font-family: 'Lobster', cursive;
font-weight: 600px;
font-size: larger;
background-color: #fff;
}
.search-box {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 250px;
height: 30px;
background: #f0f0f0;
border: 1px solid #f0f0f0;
border-radius: 5px;
background-image: url(img/magnifier.png);
background-repeat: no-repeat;
background-size: 15px;
background-position: left center;
background-position-x: 6%;
}
.search-box::placeholder {
color: darkgray;
padding-left: 40px;
font-weight: 300;
}
.nav-icons {
height: 22px;
position: relative;
background-color: #fff;
}
.icon {
height: 100%;
display: inline-block;
cursor: pointer;
margin: 0 10px;
background-color: #fff;
}
- Left column_Stories bar
<section class="main">
<div class="wrapper">
<div class="left-col">
<div class="status-wrapper">
<div class="status-card">
<div class="status-pic">
<img src="">
<p class="status-name">/*username*/</p>
</div>
</div>
...
<div class="status-card">
<div class="status-pic">
<img src="">
<p class="status-name">/*username*/</p>
</div>
</div>
</div>
.main {
width: 100%;
padding: 40px 0;
margin-top: 50px;
display: flex;
justify-content: center;
}
.wrapper {
width: 70%;
max-width: 1000px;
display: grid;
grid-template-columns: 60% 40%;
grid-gap: 30px;
}
.left-col {
display: flex;
flex-direction: column;
}
.status-wrapper {
width: 80;
height: 120px;
background: #fff;
border: 1px solid #dfdfdf;
border-radius: 2px;
padding: 10px;
padding-right: 0;
display: flex;
align-items: center;
overflow: hidden;
overflow-x: auto;
}
.status-wrapper::-webkit-scrollbar{
display: none;
}
.status-card {
background: #fff;
width: 80px;
display: flex;
align-items: center;
margin-right: 15px;
}
.status-pic {
width: 70px;
height: 70px;
border-radius: 50%;
padding: 3px;
background: linear-gradient(45deg, rgb(255, 230, 0), rgb(255, 0, 128) 80%);
}
.status-pic img{
width: 70px;
height: 70px;
border-radius: 50%;
object-fit: cover;
border-radius: 2px solid #fff;
}
.status-name {
width: 100%;
font-size: 11px;
text-align: center;
margin-top: 5px;
background: #fff;
}
- Left column_Posts
<section class="main">
<div class="wrapper">
<div class="left-col">
...
<article class="post">
<div class="post-info">
<div class="user">
<div class="profile-pic">
<img alt="profile-pic" src="">
</div>
<p class="username">/*username*/</p>
</div>
<img class="options" src="img/dots.png" alt="ellipsis">
</div>
<img class="post-image" alt="image" src="">
<div class="post-content">
<div class="reaction-wrapper">
<img alt="likes" src="img/heart.png" class="r-icon">
<img alt="comments" src="img/bubble.png" class="r-icon">
<img alt="send" src="img/send.png" class="r-icon">
</div>
<p class="likes-count">... likes</p>
<p class="description">
<span>/*username*/</span>
/*Post content*/
</p>
<p class="post-time">... HOURS AGO</p>
<div class="comment-place"></div>
</div>
<div class="comment-wrapper">
<img alt="smile" src="img/smile.png" class="smile-icon">
<input type="text" class="comment-box" placeholder="Add a comment...">
<button class="comment-btn">Post</button>
</div>
</article>
</div>
</div>
</section>
.post {
width: 100%;
height: auto;
background: #fff;
border: 1px solid #dfdfdf;
margin-top: 40px;
}
.post-info {
box-sizing: border-box;
width: 100%;
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
background-color: #fff;
position: relative;
}
.post-info .user {
display: flex;
align-items: center;
background-color: #fff;
}
.post-info .profile-pic {
padding: 0;
background: none;
}
.post-info .profile-pic img {
border: none;
border-radius: 50%;
width: 100%;
height: 35px;
width: 35px;
object-fit: cover;
}
.post-info .username {
width: auto;
font-weight: bold;
font-size: 14px;
margin-left: 15px;
background-color: #fff;
}
.post-info .options {
height: 10px;
cursor: pointer;
background-color: #fff;
position: absolute;
right: 15px;
}
.post-image {
width: 100%;
height: 600px;
object-fit: cover;
}
.post-content {
width: 80%;
padding: 20px;
background-color: #fff;
}
.likes-count {
font-weight: 500;
font-size: 15px;
background-color: #fff;
}
.description {
margin: 10px 0;
font-size: 16px;
line-height: 20px;
background-color: #fff;
}
.description span {
font-weight: 600;
font-size: 16px;
margin-right: 10px;
background-color: #fff;
}
.post-time {
color: rgba(0, 0, 0, 0.5);
font-size: 11px;
background-color: #fff;
}
.comment-place {
background: #fff;
font-size: 15px;
}
.comment-place p {
background: #fff;
margin: 3px;
display: inline-block;
width: 420px;
}
.comment-plce span {
font-weight: 500;
}
.comment-place .cmt-btn {
border: none;
background: #fff;
padding: 0;
margin-right: 3px;
}
.comment-place .cmt-btn img{
width: 13px;
background: #fff;
}
.reaction-wrapper {
width: 100%;
height: 50px;
display: flex;
align-items: center;
margin-top: -20px;
background-color: #fff;
}
.reaction-wrapper .r-icon {
height: 25px;
margin: 0;
margin-right: 15px;
background-color: #fff;
cursor: pointer;
}
.comment-wrapper {
width: 100%;
height: 50px;
border: 1px solid #dfdfdf;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
}
.comment-wrapper .smile-icon {
height: 30px;
margin: 0 10px;
background-color: #fff;
}
.comment-box {
width: 80%;
height: 95%;
border: none;
outline: none;
font-size: 14px;
background-color: #fff;
}
.comment-btn {
width: 70px;
height: 100%;
background: none;
border: none;
outline: none;
font-size: 16px;
color: royalblue;
cursor: pointer;
}
- Right column_User profile card
<section class="main">
<div class="wrapper">
<div class="right-col">
<div class="profile-card">
<div class="card-pic">
<img alt="profile-pic" src="img/user.png">
</div>
<div>
<p class="username">/*username*/</p>
<p class="sub-text">/*description*/</p>
</div>
</div>
</div>
</div>
</section>
.right-col {
padding: 20px;
}
.profile-card {
width: fit-content;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 10px;
margin-top: 20px;
}
.profile-card .card-pic {
width: 60px;
height: 60px;
margin-right: 20px;
}
.profile-card .card-pic img {
width: 100%;
border: 1px solid lightgrey;
border-radius: 50%;
}
.profile-card .username {
font-weight: 450;
font-size: 16px;
}
.sub-text {
color: rgba(0, 0, 0, 0.5);
font-size: 13px;
font-weight: 450;
margin-top: -13px;
}
- Right column_Suggestion section
<p class="suggestion">Suggestions for you</p>
<div class="suggestion-profile">
<div class="suggestion-pic">
<img alt="profile" src="">
</div>
<div class="suggestion-wrapper">
<p class="suggestion-name">/*username*/</p>
<p class="suggestion-text">Popular</p>
</div>
<button class="follow-btn">Follow</button>
</div>
...
<div class="suggestion-profile">
<div class="suggestion-pic">
<img alt="profile" src="">
</div>
<div class="suggestion-wrapper">
<p class="suggestion-name">/*username*/</p>
<p class="suggestion-text">Popular</p>
</div>
<button class="follow-btn">Follow</button>
</div>
.suggestion {
font-size: 15px;
color: rgba(0, 0, 0, 0.5);
font-weight: 600;
margin: 30px 0 5px 0;
}
.suggestion-profile .suggestion-pic {
margin-right: 10px;
display: flex;
}
.suggestion-pic img {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.suggestion-name {
font-size: 15px;
font-weight: 600;
margin-bottom: -10px;
}
.suggestion-text {
color: rgba(0, 0, 0, 0.5);
font-size: 13px;
}
.follow-btn {
color: royalblue;
border: none;
font-size: 13px;
}
.suggestion-profile {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 250px;
margin-bottom: -10px;
}
.suggestion-wrapper:first-child {
flex-grow: 1;
}
.suggestion-wrapper:nth-child(2) {
flex-grow: 1;
}
- Media Query
@media (max-width: 1200px) {
.search-box {
display: none;
}
}
@media (max-width: 820px) {
.right-col, .nav-icons {
display: none;
}
.nav-wrapper {
width: 30%;
}
}
Output ๐
To Doโ๏ธ
- Refactoring
- CSS:
1) Media queries for responsive design should be improved
2) Search box input cursor should be placed next to the magnifier icon
Entire Code ๐
-HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sooyeon Jang (@sy_970616)</title>
<link rel="stylesheet" href="main.css" />
<link rel="stylesheet" href="common.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet" />
<link rel="icon" href="instagram.png" type="image/icon type">
</head>
<body>
<nav class="navbar">
<div class="nav-wrapper">
<span class="logo">Westagram</span>
<input type="text" placeholder="Search" class="search-box">
<div class="nav-icons">
<img src="img/home.png" alt="home" class="icon">
<img src="img/send.png" alt="send" class="icon">
<img src="img/plus.png" alt="plus" class="icon">
<img src="img/compass.png" alt="compass" class="icon">
<img src="img/heart.png" alt="likes" class="icon">
<img src="img/user.png" alt="user" class="icon user-profile">
</div>
</div>
</nav>
<section class="main">
<div class="wrapper">
<div class="left-col">
<div class="status-wrapper">
<div class="status-card">
<div class="status-pic">
<img src="https://images.unsplash.com/photo-1574517858464-7bfc583d16e7?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1325&q=80">
<p class="status-name">rhcp</p>
</div>
</div>
<div class="status-card">
<div class="status-pic">
<img src="https://images.unsplash.com/photo-1604514288114-3851479df2f2?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1471&q=80">
<p class="status-name">tim tomey</p>
</div>
</div>
<div class="status-card">
<div class="status-pic">
<img src="https://images.unsplash.com/photo-1598387181032-a3103a2db5b3?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NXx8cm9jayUyMGJhbmR8ZW58MHx8MHx8&auto=format&fit=crop&w=500&q=60">
<p class="status-name">sam mog...</p>
</div>
</div>
<div class="status-card">
<div class="status-pic">
<img src="https://images.unsplash.com/photo-1549834125-82d3c48159a3?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTZ8fHJvY2slMjBiYW5kfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60">
<p class="status-name">austin wade</p>
</div>
</div>
<div class="status-card">
<div class="status-pic">
<img src="https://images.unsplash.com/photo-1596827391559-de49a8f619e5?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MjV8fHJvY2slMjBiYW5kfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60">
<p class="status-name">quinton co...</p>
</div>
</div>
<div class="status-card">
<div class="status-pic">
<img src="https://images.unsplash.com/photo-1619961601586-0bd6b291164a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NTB8fHJvY2slMjBiYW5kfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60">
<p class="status-name">ben collins</p>
</div>
</div>
<div class="status-card">
<div class="status-pic">
<img src="https://images.unsplash.com/photo-1604514288114-3851479df2f2?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1471&q=80">
<p class="status-name">tim tomey</p>
</div>
</div>
</div>
<article class="post">
<div class="post-info">
<div class="user">
<div class="profile-pic">
<img alt="profile-pic" src="https://images.unsplash.com/photo-1651416019837-a6b8e7ae5d42?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=765&q=80">
</div>
<p class="username">marcsm</p>
</div>
<img class="options" src="img/dots.png" alt="ellipsis">
</div>
<img class="post-image" alt="image" src="https://images.unsplash.com/photo-1517411032315-54ef2cb783bb?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=765&q=80">
<div class="post-content">
<div class="reaction-wrapper">
<img alt="likes" src="img/heart.png" class="r-icon">
<img alt="comments" src="img/bubble.png" class="r-icon">
<img alt="send" src="img/send.png" class="r-icon">
</div>
<p class="likes-count">381 likes</p>
<p class="description">
<span>marcsm</span>
Capturing the shifting aurora in the shape of wings🧚
</p>
<p class="post-time">11 HOURS AGO</p>
<div class="comment-place"></div>
</div>
<div class="comment-wrapper">
<img alt="smile" src="img/smile.png" class="smile-icon">
<input type="text" class="comment-box" placeholder="Add a comment...">
<button class="comment-btn">Post</button>
</div>
</article>
<article class="post">
<div class="post-info">
<div class="user">
<div class="profile-pic">
<img alt="profile-pic" src="https://images.unsplash.com/photo-1650896602771-2555bc1e1fb5?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80">
</div>
<p class="username">wild_animal</p>
<img class="options" src="img/dots.png" alt="ellipsis">
</div>
</div>
<img class="post-image" alt="image" src="https://images.unsplash.com/photo-1532986701744-5cee048ef948?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80">
<div class="post-content">
<div class="reaction-wrapper">
<img alt="likes" src="img/heart.png" class="r-icon">
<img alt="comments" src="img/bubble.png" class="r-icon">
<img alt="send" src="img/send.png" class="r-icon">
</div>
<p class="likes-count">1,022 likes</p>
<p class="description">
<span>animal</span>
Lynx kitten at Skรฆrup Zoo
</p>
<p class="post-time">16 HOURS AGO</p>
<div class="comment-place"></div>
</div>
<div class="comment-wrapper">
<img alt="smile" src="img/smile.png" class="smile-icon">
<input type="text" class="comment-box" placeholder="Add a comment...">
<button class="comment-btn">Post</button>
</div>
</article>
<article class="post">
<div class="post-info">
<div class="user">
<div class="profile-pic">
<img alt="profile-pic" src="https://images.unsplash.com/photo-1551024601-bec78aea704b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=764&q=80">
</div>
<p class="username">foooody</p>
<img class="options" src="img/dots.png" alt="ellipsis">
</div>
</div>
<img class="post-image" alt="image" src="https://images.unsplash.com/photo-1563729784474-d77dbb933a9e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80">
<div class="post-content">
<div class="reaction-wrapper">
<img alt="likes" src="img/heart.png" class="r-icon">
<img alt="comments" src="img/bubble.png" class="r-icon">
<img alt="send" src="img/send.png" class="r-icon">
</div>
<p class="likes-count">687 likes</p>
<p class="description">
<span>foooody</span>
Cupcake time!
</p>
<p class="post-time">2 DAYS AGO</p>
<div class="comment-place"></div>
</div>
<div class="comment-wrapper">
<img alt="smile" src="img/smile.png" class="smile-icon">
<input type="text" class="comment-box" placeholder="Add a comment...">
<button class="comment-btn">Post</button>
</div>
</article>
</div>
<div class="right-col">
<div class="profile-card">
<div class="card-pic">
<img alt="profile-pic" src="img/user.png">
</div>
<div>
<p class="username">sy_970616</p>
<p class="sub-text">Sooyeon Jang</p>
</div>
</div>
<p class="suggestion">Suggestions for you</p>
<div class="suggestion-profile">
<div class="suggestion-pic">
<img alt="profile-nike" src="https://images.unsplash.com/photo-1542291026-7eec264c27ff?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80">
</div>
<div class="suggestion-wrapper">
<p class="suggestion-name">nike</p>
<p class="suggestion-text">Popular</p>
</div>
<button class="follow-btn">Follow</button>
</div>
<div class="suggestion-profile">
<div class="suggestion-pic">
<img alt="profile-natgio" src="https://images.unsplash.com/photo-1586593112548-f455aa4c0118?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80">
</div>
<div class="suggestion-wrapper">
<p class="suggestion-name">natgeo</p>
<p class="suggestion-text">Popular</p>
</div>
<button class="follow-btn">Follow</button>
</div>
<div class="suggestion-profile">
<div class="suggestion-pic">
<img alt="profile-discovery" src="https://images.unsplash.com/photo-1501707305551-9b2adda5e527?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1453&q=80">
</div>
<div class="suggestion-wrapper">
<p class="suggestion-name">discovery</p>
<p class="suggestion-text">Popular</p>
</div>
<button class="follow-btn">Follow</button>
</div>
<div class="suggestion-profile">
<div class="suggestion-pic">
<img alt="profile-instagram" src="https://images.unsplash.com/photo-1611162618758-2a29a995354b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=627&q=80">
</div>
<div class="suggestion-wrapper">
<p class="suggestion-name">instagram</p>
<p class="suggestion-text">Popular</p>
</div>
<button class="follow-btn">Follow</button>
</div>
<div class="suggestion-profile">
<div class="suggestion-pic">
<img alt="profile-nasa" src="https://images.unsplash.com/photo-1541873676-a18131494184?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=718&q=80">
</div>
<div class="suggestion-wrapper">
<p class="suggestion-name">nasa</p>
<p class="suggestion-text">Popular</p>
</div>
<button class="follow-btn">Follow</button>
</div>
</div>
</div>
</section>
<script src="main.js"></script>
</body>
</html>
-CSS
.navbar {
position: fixed;
z-index: 9999;
top: 0;
left: 0;
width: 100%;
height: 50px;
background: #fff;
border-bottom: 1px solid #dfdfdf;
padding: 5px 0;
display: flex;
justify-content: center;
}
.nav-wrapper {
width: 70%;
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
}
.logo {
display: inline-block;
height: 70%;
margin-top: 8px;
font-family: 'Lobster', cursive;
font-weight: 600px;
font-size: larger;
background-color: #fff;
}
.search-box {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 250px;
height: 30px;
background: #f0f0f0;
border: 1px solid #f0f0f0;
border-radius: 5px;
background-image: url(img/magnifier.png);
background-repeat: no-repeat;
background-size: 15px;
background-position: left center;
background-position-x: 6%;
}
.search-box::placeholder {
color: darkgray;
padding-left: 40px;
font-weight: 300;
}
.nav-icons {
height: 22px;
position: relative;
background-color: #fff;
}
.icon {
height: 100%;
display: inline-block;
cursor: pointer;
margin: 0 10px;
background-color: #fff;
}
.main {
width: 100%;
padding: 40px 0;
margin-top: 50px;
display: flex;
justify-content: center;
}
.wrapper {
width: 70%;
max-width: 1000px;
display: grid;
grid-template-columns: 60% 40%;
grid-gap: 30px;
}
.left-col {
display: flex;
flex-direction: column;
}
.status-wrapper {
width: 80;
height: 120px;
background: #fff;
border: 1px solid #dfdfdf;
border-radius: 2px;
padding: 10px;
padding-right: 0;
display: flex;
align-items: center;
overflow: hidden;
overflow-x: auto;
}
.status-wrapper::-webkit-scrollbar{
display: none;
}
.status-card {
background: #fff;
width: 80px;
display: flex;
align-items: center;
margin-right: 15px;
}
.status-pic {
width: 70px;
height: 70px;
border-radius: 50%;
padding: 3px;
background: linear-gradient(45deg, rgb(255, 230, 0), rgb(255, 0, 128) 80%);
}
.status-pic img{
width: 70px;
height: 70px;
border-radius: 50%;
object-fit: cover;
border-radius: 2px solid #fff;
}
.status-name {
width: 100%;
font-size: 11px;
text-align: center;
margin-top: 5px;
background: #fff;
}
.post {
width: 100%;
height: auto;
background: #fff;
border: 1px solid #dfdfdf;
margin-top: 40px;
}
.post-info {
box-sizing: border-box;
width: 100%;
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
background-color: #fff;
position: relative;
}
.post-info .user {
display: flex;
align-items: center;
background-color: #fff;
}
.post-info .profile-pic {
padding: 0;
background: none;
}
.post-info .profile-pic img {
border: none;
border-radius: 50%;
width: 100%;
height: 35px;
width: 35px;
object-fit: cover;
}
.post-info .username {
width: auto;
font-weight: bold;
font-size: 14px;
margin-left: 15px;
background-color: #fff;
}
.post-info .options {
height: 10px;
cursor: pointer;
background-color: #fff;
position: absolute;
right: 15px;
}
.post-image {
width: 100%;
height: 600px;
object-fit: cover;
}
.post-content {
width: 80%;
padding: 20px;
background-color: #fff;
}
.likes-count {
font-weight: 500;
font-size: 15px;
background-color: #fff;
}
.description {
margin: 10px 0;
font-size: 16px;
line-height: 20px;
background-color: #fff;
}
.description span {
font-weight: 600;
font-size: 16px;
margin-right: 10px;
background-color: #fff;
}
.post-time {
color: rgba(0, 0, 0, 0.5);
font-size: 11px;
background-color: #fff;
}
.comment-place {
background: #fff;
font-size: 15px;
}
.comment-place p {
background: #fff;
margin: 3px;
display: inline-block;
width: 420px;
}
.comment-plce span {
font-weight: 500;
}
.comment-place .cmt-btn {
border: none;
background: #fff;
padding: 0;
margin-right: 3px;
}
.comment-place .cmt-btn img{
width: 13px;
background: #fff;
}
.reaction-wrapper {
width: 100%;
height: 50px;
display: flex;
align-items: center;
margin-top: -20px;
background-color: #fff;
}
.reaction-wrapper .r-icon {
height: 25px;
margin: 0;
margin-right: 15px;
background-color: #fff;
cursor: pointer;
}
.comment-wrapper {
width: 100%;
height: 50px;
border: 1px solid #dfdfdf;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
}
.comment-wrapper .smile-icon {
height: 30px;
margin: 0 10px;
background-color: #fff;
}
.comment-box {
width: 80%;
height: 95%;
border: none;
outline: none;
font-size: 14px;
background-color: #fff;
}
.comment-btn {
width: 70px;
height: 100%;
background: none;
border: none;
outline: none;
font-size: 16px;
color: royalblue;
cursor: pointer;
}
.right-col {
padding: 20px;
}
.profile-card {
width: fit-content;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 10px;
margin-top: 20px;
}
.profile-card .card-pic {
width: 60px;
height: 60px;
margin-right: 20px;
}
.profile-card .card-pic img {
width: 100%;
border: 1px solid lightgrey;
border-radius: 50%;
}
.profile-card .username {
font-weight: 450;
font-size: 16px;
}
.sub-text {
color: rgba(0, 0, 0, 0.5);
font-size: 13px;
font-weight: 450;
margin-top: -13px;
}
.suggestion {
font-size: 15px;
color: rgba(0, 0, 0, 0.5);
font-weight: 600;
margin: 30px 0 5px 0;
}
.suggestion-profile .suggestion-pic {
margin-right: 10px;
display: flex;
}
.suggestion-pic img {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.suggestion-name {
font-size: 15px;
font-weight: 600;
margin-bottom: -10px;
}
.suggestion-text {
color: rgba(0, 0, 0, 0.5);
font-size: 13px;
}
.follow-btn {
color: royalblue;
border: none;
font-size: 13px;
}
.suggestion-profile {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 250px;
margin-bottom: -10px;
}
.suggestion-wrapper:first-child {
flex-grow: 1;
}
.suggestion-wrapper:nth-child(2) {
flex-grow: 1;
}
@media (max-width: 1200px) {
.search-box {
display: none;
}
}
@media (max-width: 820px) {
.right-col, .nav-icons {
display: none;
}
.nav-wrapper {
width: 30%;
}
}
ย