change(navbar) changed the style of navbar

This commit is contained in:
Yusuf İpek
2021-07-27 13:27:30 +03:00
parent c2b59b9b29
commit 3399ece396
4 changed files with 18 additions and 16 deletions
+1 -10
View File
@@ -6,7 +6,7 @@ function Navbar() {
return (
<div className="navbar">
<h1>Teknoloji Rehberleri</h1>
<h1 className="navbar_logo">Teknoloji Rehberleri</h1>
<ul className="navbar_list">
<li
className={
@@ -26,15 +26,6 @@ function Navbar() {
>
<Link href="/hakkinda"> Site Hakkında </Link>
</li>
<li
className={
router.asPath == "/yazigonder"
? "navbar_list-item navbar_list-item--active"
: "navbar_list-item"
}
>
<Link href="/yazigonder"> Yazı Gönder </Link>
</li>
</ul>
</div>
);
-1
View File
@@ -13,7 +13,6 @@ html {
body {
box-sizing: border-box;
padding: 3rem;
background-color: var(--color-background);
}
+1 -1
View File
@@ -4,7 +4,7 @@ li {
}
h1 {
font-size: 2.7rem;
font-size: 2.5rem;
color: var(--color-primary);
}
+16 -4
View File
@@ -1,11 +1,23 @@
.navbar {
display: flex;
justify-content: space-between;
display: grid;
grid-template-columns: repeat(5, 1fr);
justify-items: center;
background-color: var(--color-grey);
padding: 1.6rem;
&_logo {
justify-self: flex-end;
grid-column: 1;
}
&_list {
display: flex;
justify-content: flex-end;
margin-top: 0.5rem;
grid-column: 5;
justify-self: flex-start;
margin-top: 0.3rem;
margin-left: 2rem;
font-size: 2rem;
list-style-type: none;