Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!--
This project is free to use, enjoy. Grab the CSS, HTML, and JS code below and implement it on your website. I ask that you support my projects by crediting me somewhere on your webpage.

Sidebar Menu by Bitoony.com
-->



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />

<body>
  
  <div class="chat_button_parent">
    <div class="chat_button"><i class="fas fa-comment-alt"></i>
      
    </div>
    <div class="chat_notif">2</div>
  </div>
  
  <div class="toggle_button_parent" onclick="toggleSidebar()">
    
    <i class="fas fa-bars" id="toggle_button"></i></div>
  
  <div class="header">
    <div class="header_content">
      <span class="logo">
        <i class="fas fa-bone"></i>
        dog<span class="logo-book">book</span></span>
    
      <input type="text" class="header_search desktop-only" placeholder="Search dogbook">
      <i class="fas fa-search" id="searchicon"></i>
    </div>
  
<div class="sidebar-container" id="sidebar">
  
 <img src="https://cdn.pixabay.com/photo/2021/08/02/12/39/boston-terrier-6516656__340.jpg" class="avatar">
  <div class="user-welcomer">
  Welcome—ruff ruff,<br>
    <span class="username">Barkley</span>
    <div class="user-buttons">
      
      <span id="notifs">
    <i class="fas fa-bell"></i>
    <div class="notifs">3</div>
      </span>
    &nbsp;&nbsp; <i class="fas fa-cog"></i>
    &nbsp;&nbsp; <i class="fas fa-sign-out-alt"></i>
    </div>
  </div>
  
  <div class="seperator" clear="all"></div>
  
  <div class="sidebar-content">
  <b>Who's Online</b>
 <br clear="all">
  
   <div class="friend_row">
  <img src="https://cdn.pixabay.com/photo/2017/09/25/13/12/cocker-spaniel-2785074__340.jpg" class="avatar friend_avatar">
<div class="online_status active"><i class="fas fa-circle"></i></div>
    <div class="friend_name">Axel</div>
  </div>
  
   <div class="friend_row">
  <img src="https://cdn.pixabay.com/photo/2016/02/19/15/46/labrador-retriever-1210559__340.jpg" class="avatar friend_avatar">
<div class="online_status active"><i class="fas fa-circle"></i></div>
    <div class="friend_name">Bud</div>
  </div>
  
   <div class="friend_row">
  <img src="https://cdn.pixabay.com/photo/2016/07/15/15/55/dachshund-1519374__340.jpg" class="avatar friend_avatar">
<div class="online_status active"><i class="fas fa-circle"></i></div>
    <div class="friend_name">Rex</div>
  </div>
  
   <div class="friend_row">
  <img src="https://cdn.pixabay.com/photo/2016/02/18/18/37/puppy-1207816__340.jpg" class="avatar friend_avatar">
<div class="online_status active"><i class="fas fa-circle"></i></div>
    <div class="friend_name">Bear</div>
  </div>
  
   <div class="friend_row">
  <img src="https://cdn.pixabay.com/photo/2015/07/09/19/32/dog-838281__340.jpg" class="avatar friend_avatar">
<div class="online_status active"><i class="fas fa-circle"></i></div>
    <div class="friend_name">Frank</div>
  </div>
  
   <div class="friend_row">
  <img src="https://cdn.pixabay.com/photo/2018/05/07/10/48/husky-3380548__340.jpg" class="avatar friend_avatar">
<div class="online_status active"><i class="fas fa-circle"></i></div>
    <div class="friend_name">Jerry</div>
  </div>
  
   <div class="friend_row">
  <img src="https://cdn.pixabay.com/photo/2021/08/18/22/42/australian-shepherd-6556697__340.jpg" class="avatar friend_avatar">
<div class="online_status"><i class="fas fa-circle"></i></div>
     <div class="friend_name">Alice <small>32min ago</small></div>
  </div>
  
   <div class="friend_row">
  <img src="https://cdn.pixabay.com/photo/2018/01/09/11/04/dog-3071334__340.jpg" class="avatar friend_avatar">
<div class="online_status"><i class="fas fa-circle"></i></div>
    <div class="friend_name">Dolly <small>1hr ago</small></div>
  </div>
  
  <div class="seperator"></div>
  
  <b>Your Active Groups</b>
  <br clear="all">
  <div class="friend_row" id="group">
 <img src="https://i.gyazo.com/12eaea08eb3212f91775a67bf00812f2.png" class="group_img">
    <div class="group_name">Squirrel Tracker <small>3 new posts</small></div>
  </div>
  
  <div class="friend_row" id="group">
 <img src="https://cdn.pixabay.com/photo/2020/12/30/12/05/woman-5873274__340.jpg" class="group_img">
    <div class="group_name">Tips to Annoy Owner <small>1 new post</small></div>
  </div>
    
  <div class="friend_row" id="group">
 <img src="https://i.gyazo.com/4edc690954da101eb3677fdf4d5db1e8.png" class="group_img">
    <div class="group_name">Control Your Zoomies <small></small></div>
  </div> 
    
  </div>
    </div>
 
  
  
</div>
  
  
<!-- end of left sidebar !-->
  
<div class="page_content">
  
  <div class="mobile_search"> 
  <center>
<input type="text" class="header_search" placeholder="Search dogbook">
      <i class="fas fa-search" id="searchicon"></i>
  </center>
  </div>
  
  <div class="stories">
    
  <div class="story_container you">
<i class="fas fa-plus-circle" id="plus_icon_story"></i>
  </div>
    
  <div class="story_container one">
    <img src="https://i.gyazo.com/ed2e3bb972ad32f4b827f717101aaa67.png" class="avatar story_avatar">
  </div>
  
  <div class="story_container two">
    <img src="https://i.gyazo.com/c132c8f87f7a9a608440fc41c1375485.png" class="avatar story_avatar">
  </div>
  
  <div class="story_container three">
    <img src="https://i.gyazo.com/7f1f5956dc62335ae47e0d8f22266810.png" class="avatar story_avatar">
  </div>
  
  
  <div class="story_container four">
    <img src="https://i.gyazo.com/03ecd6b8e6c48b44b18491f322e8a0b1.png" class="avatar story_avatar">
  </div>
  
  <div class="story_container five">
    <img src="https://i.gyazo.com/4b563fab58f589b3389c55b87206d046.png" class="avatar story_avatar">
  </div>
  
  <div class="story_container six">
    <img src="https://i.gyazo.com/cbf7814ff2d09408986ecc7f5ecc19f5.png" class="avatar story_avatar">
  </div>
  
  <div class="story_container seven">
    <img src="https://i.gyazo.com/e42555afecbdbbeeef0fce8575c0bd4a.png" class="avatar story_avatar">
  </div>
  
  <div class="story_container eight">
    <img src="https://i.gyazo.com/d5d7f1473ce0b55f542fdf8e2bc47aee.png" class="avatar story_avatar">
  </div>
  </div>
  
  
  <div class="new_status">
 <img src="https://cdn.pixabay.com/photo/2021/08/02/12/39/boston-terrier-6516656__340.jpg" class="avatar" style="height:50px;width:50px;">
    <i class="fas fa-image" style="margin-left:20px;"></i>
    <i class="fas fa-video"></i>
    <i class="fas fa-smile"></i>
    
    <br>
    <textarea placeholder="What's on your mind bud?"></textarea>
</div>
  
  
  <div class="post_container">
 <img src="https://cdn.pixabay.com/photo/2016/02/19/15/46/labrador-retriever-1210559__340.jpg" class="avatar" style="height:50px;width:50px;"> 
    
    <div class="post_content">
      <span class="link">Bud</span> posted in group <span class="link">Squirrel Tracker</span>
    <br><small>5min ago</small>
    </div>
    
    <br clear="all"><br>
    Visiting Boyd park later, spottings? 😛
    
    <div class="reacts">
    <i class="fas fa-comment-alt"></i> 5
      &nbsp;&nbsp; <i class="fas fa-paw"></i> 5
    </div>
    
  </div>
  
  
  <div class="post_container">
 <img src="https://i.gyazo.com/32604c4f5d27fbf94a79e416ac558829.png" class="avatar" style="height:50px;width:50px;"> 
    
    <div class="post_content">
    Sponsored Ad from <span class="link">The Feline Party</span>
    <br><small>Advertisement</small>
    </div>
    
    <br clear="all"><br>
    Vote for the Feline party this November. Your future leader Fernando promises a dog free utopia.
    <br><br>
 <img src="https://i.gyazo.com/7a405224cfcb091e239556e47079455d.png" class="border-r">
    
    <div class="reacts">
   <i class="fas fa-paw fa-rotate-180" style="color:#F75F5A;"></i> 1,038
    </div>
  </div>
  
  
  
  <div class="post_container">
 <img src="https://i.gyazo.com/b62795ff5cabe445dcda99d7bfd7727f.png" class="avatar" style="height:50px;width:50px;"> 
    
    <div class="post_content">
    <span class="link">Jackson</span> shared 6 images to group <span class="link">Tips to Annoy Your Owner</span>
    <br><small>1hr ago</small>
    </div>
    
    <br clear="all"><br>
Trip to Woodbine Beach with owner. Lots dirt, mud, rolling. 😂😂😂
    <br clear="all">
<img src="https://cdn.pixabay.com/photo/2020/09/29/19/11/dog-5613713__340.jpg" class="gallery_img">

<img src="https://cdn.pixabay.com/photo/2020/09/27/09/35/dog-5606212__340.jpg" class="gallery_img">

<img src="https://cdn.pixabay.com/photo/2020/09/27/09/34/dog-5606209__340.jpg" class="gallery_img">

<img src="https://cdn.pixabay.com/photo/2020/09/27/09/34/dog-5606210__340.jpg" class="gallery_img">

<img src="https://cdn.pixabay.com/photo/2020/09/27/09/34/dog-5606207__340.jpg" class="gallery_img">

<img src="https://cdn.pixabay.com/photo/2016/10/19/12/49/boston-terrier-pup-1752894__340.jpg" class="gallery_img">
    
    
    <div class="reacts">
    <i class="fas fa-comment-alt"></i> 12
      &nbsp;&nbsp; <i class="fas fa-laugh"></i> 316
    </div>
    
  </div>    
  
  
  
  
  
  <div class="post_container">
 <img src="https://cdn.pixabay.com/photo/2016/02/19/15/46/labrador-retriever-1210559__340.jpg" class="avatar" style="height:50px;width:50px;"> 
    
    <div class="post_content">
      <span class="link">Bud</span> posted
    <br><small>5min ago</small>
    </div>
    
    <br clear="all"><br>
    Owner left room 2 minutes ago. Where he go? What I do? 😭
    
    <div class="reacts">
    <i class="fas fa-comment-alt"></i> 1
    </div>
    
  </div>
    
  <div class="loading" align="center">
  <br clear="all">
    <i class="fas fa-circle-notch fa-spin"></i><br>Loading More Posts
    <br><br>
  </div>
    
  </div>
  
  
</body>
              
            
!

CSS

              
                @media only screen and (max-width: 800px) {
  
  .mobile_search {
    display:block !important;
  }
    .desktop-only {
    display:none !important;
  }
  
  .header .fa-search {
    display:none !important;
  }
  
 .sidebar-container {
  width:100% !important;
  border-bottom:1px solid #e4e8e9 !important;
   border-right:none !important;
 box-shadow: none !Important;
} 
  
  #sidebar {
    left:-1600px;
  }
  
.page_content {
  margin:10px !important;
  margin-top:80px !important;
}
  
.header_content {
margin-left:0px !important;
}
  
  .logo {
  width:100% !important;
  text-align:center;
  }
  
#toggle_button {
 width:19px;height:20px;padding:10px;padding-top:18px;
  padding-bottom:5px;border-radius:0px 0px 50px 50px;background:#fff;text-align:center;color:#001f2b;cursor:pointer;
}

.toggle_button_parent {
  position:fixed;left:0;top:0;z-index:1000;padding:0px 5px;
}
  
  .header_search {
    width:100% !important;
    box-sizing: border-box;
    margin-left:0px !important;
    margin-bottom:20px !important;
    padding:15px !important;
    background:#dde8ec !important;
  }
  
  #searchicon {
    margin-top:14px !important;
  }
  
  .gallery_img {
    width:100% !important;
    height:auto !important;
    display:block !important;
    margin:0px !important;
    margin-top:15px !important;
    
  }
  
  
  
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
  background:#f0f6f8;
  font-family: 'Roboto', sans-serif;
  height:2000px;
  font-weight:300;
  color:#555;
}

.chat_button_parent {
position:fixed;bottom:10px;right:10px;z-index:2;
}

.chat_button_parent:hover {
  cursor:pointer;
  opacity:0.8;
  transition:0.3s;
}

.chat_button {
background: linear-gradient(to right, #00c6ff, #0072ff);border-radius:50%;padding:15px 18px;color:#fff;font-size:24px;text-align:center;
}

.chat_notif {
  background:#00b8ff;
  display:inline-block;
  font-weight:900;
  color:#fff !important;
  padding:1px 5px;
  border-radius:50px;
  font-size:12px;
  float:right;
  margin-top:-62px;
  border:2px solid #f0f6f8;
}

.mobile_search {
  display:none;
}

.story_container {
  width:150px;height:200px;
  background-repeat: no-repeat;
  background-size: cover;
  position:relative;
              border-radius:5px;
  display:inline-block;
  margin-right:15px;
  box-shadow: 0px 19px 25px -23px rgba(0,0,0,0.4);
}

.story_container.one {
  background: url(https://cdn.pixabay.com/photo/2017/09/20/21/21/chihuahua-2769980__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
  
}

.story_container.two {
  background: url(https://cdn.pixabay.com/photo/2015/06/15/23/56/chihuahua-810789__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
}

.story_container.three {
  background: url(https://cdn.pixabay.com/photo/2021/11/20/13/24/chihuahua-6811805__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
}

.story_container.four {
  background: url(https://cdn.pixabay.com/photo/2017/08/29/12/13/dogs-2693074__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
}

.story_container.five {
  background: url(https://cdn.pixabay.com/photo/2013/09/01/09/50/animal-178024__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
}

.story_container.six {
  background: url(https://cdn.pixabay.com/photo/2017/05/22/05/36/chihuahua-2333176__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
}

.story_container.six {
  background: url(https://cdn.pixabay.com/photo/2019/01/28/19/18/chihuahua-3961095__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
}

.story_container.seven {
  background: url(https://cdn.pixabay.com/photo/2017/09/07/17/48/chihuahua-2726117__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
}

.story_container.eight {
  background: url(https://cdn.pixabay.com/photo/2019/02/10/19/54/chihuahua-3988105__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
}

.story_container.you {
  background: url(https://cdn.pixabay.com/photo/2021/08/02/12/39/boston-terrier-6516656__340.jpg);
background-repeat: no-repeat;
  background-size: cover;
  background-position:center;
  opacity:0.4;
}

.story_avatar {
width:30px !important;height:30px !Important;position:absolute;bottom:5px;left:5px;
 background: linear-gradient(to right, #00c6ff, #0072ff);
  padding:3px;
  opacity:0.8;
}

#plus_icon_story {
 position:absolute;
  bottom:7px;
  left:7px;
  color:#fff;
  font-size:30px;
}


.stories {
  white-space: nowrap;
  overflow:hidden;
  padding-bottom:30px;
}

.story_container:hover {
  opacity:0.8;
  cursor:pointer;
  transition:0.4s;
}

.post_content {
  display:inline-block;
  margin-left:10px;
}

.link {
  font-weight:600;
  cursor:pointer;
}

.link:hover {
  opacity:0.7;
}

.group_img {
  width:40px;
  height:40px;
  border-radius:5px;
  float:left;
  object-fit:cover;
}

#group {
  margin-bottom:40px !important;
}

.group_name {
  position:relative;
  left:10px;
  top:10px;
}

.friend_row {
  margin-top:25px;
  clear:both;
}

.online_status {
  left:-9px;
  display:inline-block;
  bottom:-15px;
  position: relative;
  font-size:12px;
  color:#aaa;
  border:2px solid #001f2b;
  border-radius:50%;
  background:#001f2b;
}

.online_status.active {
  color:#3FC08C !important;
}

.friend_row:hover {
  opacity:0.7;
  transition:0.3s;
  cursor:pointer;
}

.friend_avatar {
  width:30px !important;height:30px !important;
}

.friend_name {
  display:inline-block;
  position:relative;
  top:8px;
}

.user-welcomer {
margin-left:20px;display:inline-block;
}

.user-welcomer .username {
  font-size:30px;font-weight:900;
}

.username {
  color:#fff;
}

.avatar {
  width:80px;height:80px;object-fit:cover;border-radius:50%;float:left;
  cursor:pointer;
}

.sidebar-container {
  font-family: 'Roboto', sans-serif;
  width:280px;
  padding:30px;
  position: fixed;
  left:0;top:0;bottom:0;
  background:#001f2b;
  color:rgba(255,255,255,0.8);
 box-shadow: 11px 0px 50px -3px rgba(52,73,94,0.2);
  overflow:hidden;
}

.sidebar-content {
  overflow-y:auto;
  height:90%;
  overflow-x:hidden;
}

.seperator {
  border-bottom:1px solid #fff;
  opacity:0.08;
  margin-top:40px;
  margin-bottom:20px;
}



.page_content {
  margin-left:380px;
  margin-right:80px;
  margin-top:50px;
}

.gallery_img {
width:100%;height:300px !important;object-fit:cover;
border-radius:5px;
  display:inline-block;
  margin:20px;
  width:28%;
  border-radius:5px;
}

.gallery_img:hover {
  opacity:0.6;
  cursor:pointer;
  transition:0.3s;
}


.new_status {
  padding:20px;background:#fff;border-radius:5px;overflow:hidden;
  box-shadow: 0px 7px 14px -12px rgba(0,0,0,0.1);
}

.new_status textarea {
 width:80%;border:none;
 font-family: 'Roboto', sans-serif;
 padding-left:20px;resize: none;
  display:inline-block;
 
}

textarea:focus, input:focus{
    outline: none;
}

.post_container {
  margin-top:20px;
  padding:20px;
  background:#fff;
  border-radius:5px;
  box-shadow: 0px 7px 14px -12px rgba(0,0,0,0.1);
}

small {
  opacity:0.6;
}

img {
  max-width:100%;
  height:auto;
}

.border-r {
  border-radius:5px;
}

.loading i {
  font-size:30px;
  margin-bottom:10px;
}

.loading {
  font-size:13px;
  opacity:0.5;
}

.reacts {
  margin-top:10px;
  border-top:1px solid #fafafa;
  padding-top:10px;
  font-weight:900;
  font-size:13px;
}

.reacts i {
  color:#00b8ff;
}

.reacts i:hover {
  opacity:0.6;
  cursor:pointer;
}

.notifs {
  background:#00b8ff;
  display:inline-block;
  font-weight:900;
  color:#fff !important;
  padding:1px 5px;
  border-radius:50px;
  font-size:12px;
  margin-left:-7px;
}

.user-buttons {
  margin-top:5px;
  color:#fff;
}

.user-buttons i:hover, #notifs:hover {
  opacity:0.5;
  cursor:pointer;
}

.logo {
  font-size:30px;
  font-weight:900;
  color:#00b8ff;
  float:left;
}

.logo:hover {
  opacity:0.8;
  cursor:pointer;
}

.logo-book {
  font-weight:300 !important;
}

.header { background:#fff;width:100%;position:fixed;top:0;left:0;right:0;z-index:3;
  padding:10px 0px;
  box-shadow: 0px 7px 14px -12px rgba(0,0,0,0.1);
}

.header_content {
margin-left:390px;
}

.header_search {
  background:#ebf0f1;
  border:none;
  padding:10px;
  border-radius:5px;
  width:25%;
  margin-left:20px;
  box-sizing: border-box;
  
}

#searchicon {
  margin-left:-28px;
  margin-top:9px;
  opacity:0.4;
  position:absolute;
  cursor:pointer;
}

.new_status i {
  margin-right:20px;
  color:#00b8ff;
  font-size:18px;
  margin-bottom:10px;
}

.new_status i:hover {
  opacity:0.6;
  cursor:pointer;
}
              
            
!

JS

              
                function toggleSidebar() {
  var x = document.getElementById("sidebar");
  if (x.style.left === "-1000px") {
    x.style.left = "0";
    x.style.transition = "0.9s";
  } else {
    x.style.left = "-1000px";
    x.style.transition = "0.9s";
  }
}
              
            
!
999px

Console