forked from freeCodeCamp/classroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.js
37 lines (36 loc) · 1.1 KB
/
navbar.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import Image from 'next/image';
import Link from 'next/link';
import React from 'react';
import AuthButton from '../components/authButton';
export default function Navbar({ children }) {
return (
<div className='h-[38px]'>
<div className='h-[38px] bg-[#0a0a23] text-white flex items-center flex-wrap p-1'>
<div className='hidden lg:flex block flex-1 justify-end'></div>
<Link href='/classes'>
<a className='flex items-center'>
<Image
className=''
priority
layout='fixed'
src='/images/fcc_primary_large.png'
alt='FreeCodecamp Logo'
width={210}
height={24}
></Image>
</a>
</Link>
<div className='flex-1 inline-flex justify-end'>
{React.Children.toArray(children).map(child => (
<div className='pl-2 hidden md:block' key={child.key}>
{child}
</div>
))}
<div className='pl-2'>
<AuthButton></AuthButton>
</div>
</div>
</div>
</div>
);
}