1
1
"use client" ;
2
2
import { IconUserCircle } from "@tabler/icons-react" ;
3
+ import Image from "next/image" ;
4
+ import Link from "next/link" ;
3
5
4
6
type NavigationProps = {
5
7
menu : Page [ ] ;
@@ -16,12 +18,19 @@ export type Page = {
16
18
17
19
export default function Navigation ( { menu } : NavigationProps ) {
18
20
return (
19
- < header className = "sidebar" >
20
- < nav className = "flex flex-col items-center justify-between h-full" >
21
- < a className = "w-3/4" href = "/" >
22
- < img src = "/vim.svg" alt = "Vim Logo" />
23
- </ a >
24
- < ul className = "w-full flex flex-col gap-2" >
21
+ < header className = "h-full rounded-[35px] pt-8 bg-gray-5" >
22
+ < nav className = "flex flex-col items-center h-full" >
23
+ < Link className = "mb-8" href = "/" >
24
+ < Image src = "/vim.svg" width = { 64 } height = { 64 } alt = "Vim Logo" />
25
+ </ Link >
26
+ < ul className = "w-full flex flex-col gap-2 px-8" >
27
+ < li className = "block rounded-xl py-2 px-4 text-white hover:bg-gray-4 hover:cursor-pointer" >
28
+ < Link href = "#" > Downloads</ Link >
29
+ </ li >
30
+ < li className = "block rounded-xl py-2 px-4 text-white hover:bg-gray-4 hover:cursor-pointer" >
31
+ < Link href = "#" > Downloads</ Link >
32
+ </ li >
33
+
25
34
{ menu . map ( menuItem => {
26
35
return (
27
36
< li className = "nav-link" key = { menuItem . id } >
@@ -31,11 +40,11 @@ export default function Navigation({ menu }: NavigationProps) {
31
40
} ) }
32
41
</ ul >
33
42
34
- < div >
35
- < a className = "flex flex-row gap-2" href = "/my-account" >
36
- < IconUserCircle size = { 24 } />
43
+ < div className = "group mt-auto mb-8 hover:text-gray-2" >
44
+ < Link className = "flex items-center gap-2 text-white group-hover:text-gray -2" href = "/my-account" >
45
+ < IconUserCircle className = "text-white group-hover:text-gray-2" size = { 40 } />
37
46
My Account
38
- </ a >
47
+ </ Link >
39
48
</ div >
40
49
</ nav >
41
50
</ header >
0 commit comments