Skip to content

Commit

Permalink
Add story and something
Browse files Browse the repository at this point in the history
  • Loading branch information
K0l4s committed Sep 2, 2023
1 parent 9f5102c commit ee1632d
Show file tree
Hide file tree
Showing 51 changed files with 372 additions and 0 deletions.
Binary file added image/contact_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/contact_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/contact_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/contact_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/contact_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/down_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/friend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/gift.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/haha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/heart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/like.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/live_video.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/marketplace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/page.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/post_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/post_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/post_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/post_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/post_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/profile1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/profile2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/profile_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/profile_10.png
Binary file added image/profile_11.png
Binary file added image/profile_12.jpg
Binary file added image/profile_2.jpg
Binary file added image/profile_3.jpg
Binary file added image/profile_4.png
Binary file added image/profile_5.png
Binary file added image/profile_6.png
Binary file added image/profile_7.png
Binary file added image/profile_8.png
Binary file added image/profile_9.png
Binary file added image/saved.png
Binary file added image/shortcuts_1.png
Binary file added image/shortcuts_2.jpeg
Binary file added image/shortcuts_3.webp
Binary file not shown.
Binary file added image/shortcuts_4.png
Binary file added image/shortcuts_5.webp
Binary file not shown.
Binary file added image/story_1.png
Binary file added image/story_2.jpg
Binary file added image/story_3.jpg
Binary file added image/story_4.png
Binary file added image/story_5.jpg
Binary file added image/upload.png
Binary file added image/watch.png
151 changes: 151 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,156 @@

</nav>

<!--------------main---------->

<div class="main">

<!--left-->

<div class="left">

<div class="img">
<img src="image/profile.jpg" alt="profile">
<p>Kolas</p>
</div>

<div class="img">
<img src="image/friend.png" alt="profile">
<p>Friends</p>
</div>

<div class="img">
<img src="image/saved.png" alt="profile">
<p>Saved</p>
</div>

<div class="img">
<img src="image/group.png" alt="profile">
<p>Groups</p>
</div>

<div class="img">
<img src="image/marketplace.png" alt="profile">
<p>Marketplace</p>
</div>

<div class="img">
<img src="image/watch.png" alt="profile">
<p>Watch</p>
</div>

<div class="img">
<img src="image/down_arrow.png" alt="profile">
<p>More</p>
</div>
<hr>

<h2>You shortcuts</h2>
<p class="edit">Edit</p>

<div class="shortcuts">
<img src="image/shortcuts_1.png" alt="">
<p>MOBILE GAMES</p>
</div>

<div class="shortcuts">
<img src="image/shortcuts_2.png" alt="">
<p>Online Education</p>
</div>

<div class="shortcuts">
<img src="image/shortcuts_3.webp" alt="">
<p>Food Lovers</p>
</div>

<div class="shortcuts">
<img src="image/shortcuts_4.png" alt="">
<p>Social Media</p>
</div>

<div class="shortcuts">
<img src="image/shortcuts_5.webp" alt="">
<p>PC Shop</p>
</div>
<div class="shortcuts">
<img src="image/down_arrow.png" alt="">
<p>See more</p>
</div>
</div>

<!--center-->

<div class="center">
<div class="top_box">

<div class="my_story_card">

<img src="image/profile.jpg" alt="">
<div class="story_upload">
<img src="image/upload.png" alt="">
<p class="story_tag">Create story</p>
</div>
</div>

<div class="story_card">
<img src="image/story_1.png">

<div class="story_profile">
<img src="image/profile_1.jpg">
<div class="circle"></div>
</div>

<div class="story_name">
<p class="name">Helle</p>
</div>
</div>

<div class="story_card">
<img src="image/story_2.jpg">

<div class="story_profile">
<img src="image/profile2.png">
<div class="circle"></div>
</div>

<div class="story_name">
<p class="name">Mona Katanas</p>
</div>
</div>

<div class="story_card">
<img src="image/story_3.jpg">

<div class="story_profile">
<img src="image/profile_11.png">
<div class="circle"></div>
</div>

<div class="story_name">
<p class="name">Charith Disanayaka</p>
</div>
</div>

<div class="story_card">
<img src="image/story_5.jpg">

<div class="story_profile">
<img src="image/profile_10.png">
<div class="circle"></div>
</div>

<div class="story_name">
<p class="name">Rugie</p>
</div>
</div>
</div>
</div>

<!--right-->

<div class="right"></div>

</div>

</body>
</html>
221 changes: 221 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
nav{
width: 100%;
height: 60px;
top:0;
display: flex;
align-items: center;
justify-content: space-between;
Expand Down Expand Up @@ -95,3 +96,223 @@ nav .right img{
line-height: 45px;
cursor: pointer;
}


/*------------main--------------*/

.main{
display: flex;
margin-top: 60px;
background-color: #f5f5f5;
}

.main .left{
width: 25%;
height: 92vh;
overflow: hidden;
overflow-y: scroll;
background: #f5f5f5;
padding: 20px 6px 5px 10px;
position: fixed;
}

.main .left::-webkit-scrollbar{
width: 7px;
}

.main .left::-webkit-scrollbar-thumb{
border-radius: 20px;
background: #f5f5f5;
}

.main .left:hover::-webkit-scrollbar-thumb{
background: #cccccc;
}

.main .left .img{
display: flex;
align-items: center;
cursor: pointer;
transition: 0.2s;
}

.main .left .img:hover{
background: #e3e3e3;
}

.main .left .img img{
width: 40px;
height: 40px;
object-fit: cover;
object-position: center;
border-radius: 50%;
margin: 8px 15px 8px 0;
}

.main .left hr{
width: 100%;
height: 1px;
border: 0;
background: #cccccc;
margin: 10px 0
}

.main .left h2{
font-size: 18px;
color:#919191;
margin: 5px 0;
}

.main .left .edit{
color: #45abff;
font-size: 15px;
float: right;
position: relative;
bottom: 23px;
cursor: pointer;
opacity: 0;
}

.main .left:hover .edit{
opacity: 1;
}

.main .left .shortcuts{
display: flex;
align-items: center;
transition: 0.2s;
}

.main .left .shortcuts:hover{
background: #e3e3e3;
cursor: pointer;
}

.main .left .shortcuts img{
width: 40px;
height: 40px;
object-fit: cover;
object-position: center;
border-radius: 10px;
margin: 8px 15px 8px 0;
}

.main .center{
width: 50px;
height: auto;
padding: 20px 20px 0 20px;
background: #f5f5f5;
margin-left: 25%;
}

.main .center::-webkit-scrollbar{
width: 0;
}

.main .center .top_box{
width: 100px;
height: 260px;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;;
}

.main .center .top_box .my_story_card{
width: 135px;
height: 250px;
overflow: hidden;
margin: 0 auto;
box-shadow: 0 1px 8px rgba(0,0,0,0.2);
border-radius: 10px;
cursor: pointer;
margin-right: 5px;
}

.main .center .top_box .my_story_card img{
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}

.main .center .top_box .my_story_card .story_upload{
width: 100%;
height: 60px;
background: #fff;
position: relative;
bottom: 50px;
cursor: pointer;
}

.main .center .top_box .my_story_card .story_upload img{
width: 30px;
height: 30px;
display: flex;
margin: 0 auto;
position: relative;
bottom: 15px;
border-radius: 50%;
}
.main .center .top_box .my_story_card .story_upload .story_tag{
display: flex;
align-items: center;
justify-content: center;
position: relative;
bottom: 10px;
font-weight: bold;
font-size: 14px;
}

.main .center .top_box .story_card{
width: 135px;
height: 250px;
overflow: hidden;
margin: 0 auto;
box-shadow: 0 1px 8px rgba(0,0,0,0.2);
border-radius: 10px;
margin-right: 5px;
margin-left: 5px;
cursor: pointer;
}

.main .center .top_box .story_card img{
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}

.main .center .top_box .story_card .story_profile{
position: relative;
bottom:240px;
margin-left: 10px;
}

.main .center .top_box .story_card .story_profile img{
width: 40px;
height: 40px;
border-radius: 50%;
border: 4px solid #45abff;
}

.main .center .top_box .story_card .story_pofile .circle{
width: 10px;
height: 10px;
border-radius: 50%;
background: #27cc37;
border: 2px solid #fff;
position: relative;
bottom: 15px;
left:25px;
}

.main .center .top_box .story_card .story_name{
position: relative;
bottom: 100px;
padding: 0 10px;
}

.main .center .top_box .story_card .story_name .name{
font-weight: bold;
color:#fff;
font-size: 14px;
}

0 comments on commit ee1632d

Please sign in to comment.