HERKEZE MERHABA ARKASAŞLAR BUGÜN KİŞİSEL BLOG YAPTIM UMARIM BEĞENİRSİNİZ
İYİ FORUMLAR
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sidebar</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
</head>
<body>
<div class="wrapper">
<div class="sidebar">
<div class="profile">
<img src="https://www.turkhackteam.org/data/avatars/l/1013/1013034.jpg?1720040094" </div>
<h3>Legandrary</h3>
<p>Turkhackteam</p>
<ul>
<li><a href="#" class="active" <span class="icon"><i class="fas fa-home"></i>
<span class="item">home</span>
</a></li>
<li><a href="#">
<span class="icon"><i class="fas fa-Dekstop"></i>
<span class="item">kişisel</span>
</a></li>
<li><a href="#">
<span class="icon"><i class="fas fa-tachometer-alt"></i>
<span class="item">blog </span>
</a></li>
<li><a href="#">
<span class="icon"><i class="fas fa-database"></i>
<span class="item">hikaye</span>
<li><a href="#">
<span class="icon"><i class="fas fa-user-friends"></i>
<span class="item">yakın arkadaşlarım</span>
</a></li>
<li><a href="#">
<span class="icon"><i class="fas fa-chart-line"></i>
<span class="item">raporlar</span>
</a></li>
<li><a href="#">
<span class="icon"><i class="fas fa-user-shield"></i>
<span class="item"> admin</span>
</a></li>
<li><a href="#">
<span class="icon"><i class="fas fa-cog"></i>
<span class="item">settings</span>
</a></li>
<div>
<div>
<i class="fa-solid fa-bars"></i>
</div>
</body>
</html>
CSS:
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
* {
list-style: none;
text-decoration: none;
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'open sasns', sans-serif;
}
body {
background: wheat;
}
.wrapper .sidebar {
background: rgb(5, 68, 104);
position: fixed;
top: 0;
left: 0;
width: 260px;
height: 120%;
padding: 40px 0;
transition: all 5rem ease;
}
.wrapper .sidebar .profile {
margin-bottom: 30px;
text-align: center;
}
.wrapper .sidebar .profile img {
display: block;
width: 100px;
border-radius: 50%;
margin: 0 auto;
}
.wrapper .sidebar .profile h3 {
color: #fff;
margin: 10px 0 5px;
}
.wrapper .sidebar .profile p {
color: rgb(206, 204, 253);
font-size: 14px;
}
.wrapper .sidebar ul li a {
display: block;
padding: 13px 30px;
border-bottom: 1px solid #10558d;
color: rgb(241, 237, 237);
font-size: 16px;
position: relative;
}
.wrapper .sidebar ul li a.icon {
color: #dee4ec;
width: 30px;
display: inline-block;
}
.wrapper .sidebar ul li a:hover,
.wrapper .sidebar ul li a.active {
color: #0c7db1;
background: white;
border-right: 2px solid rgb(5, 68, 104);
}
.wrapper .sidebar ul li a:hover .icon,
.wrapper .sidebar ul li a:active .icon {
color: #0c7db1;
}
.wrapper .sidebar ul li a:hover:before,
.wrapper .sidebar ul li a:active:before {
display: block;
}
.wrapper .section {
width: calc(100% - 225px);
margin-left: 225px;
transition: all 0.5s ease;
}
.wrapper .section .top_navbar {
background: rgb(7, 105, 138);
height: 50px;
display: flex;
align-items: center;
padding: 0 30px;
}
.wrapper .section .top_navbar .hamburger a {
font-size: 28px;
color: #f4fbff;
}
.wrapper .section .top_navbar {
background: rgb(7, 105, 138);
height: 80px;
display: flex;
align-items: center;
padding: 0 90px;
}
.wrapper .section .top_navbar .hamburger a {
font-size: 28px;
color: #f4fbff;
}
İYİ FORUMLAR
Son düzenleme:



