forked from YJU-OKURA/project_minori-next-deployment-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat : Creating a navbar component and applying it to the entire la…
…yout - To create the functionality of the navbar, we created the navbar component. - You have added the created component to the overall layout. Related issue: YJU-OKURA#33
- Loading branch information
Showing
2 changed files
with
134 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import { | ||
book, | ||
door, | ||
group, | ||
moreHoriz, | ||
moreVert, | ||
mypage, | ||
search, | ||
} from '@/public/svgs/navbar'; | ||
import {user} from '@/public/images/navbar'; | ||
|
||
export default function Navbar() { | ||
return ( | ||
<div className="w-full h-screen bg-gray-50 px-6 "> | ||
{/* Profile */} | ||
<div className="w-full h-12 flex items-center justify-between box-content py-1"> | ||
<div className="flex items-center"> | ||
<Image | ||
src={user} | ||
width={10} | ||
height={10} | ||
alt="userImage" | ||
className="w-8 h-8 rounded-lg" | ||
/> | ||
<div className="mx-2 ">Name</div> | ||
</div> | ||
<button className="w-8 h-8 rounded-lg float-end"> | ||
<Image src={moreVert} alt="icon" width={30} height={30}></Image> | ||
</button> | ||
</div> | ||
<div className="h-px bg-zinc-300"></div> | ||
<div className="h-8"></div> | ||
|
||
{/* Pages */} | ||
<div className="w-full"> | ||
<div className="text-zinc-400 mb-4">Pages</div> | ||
<ul className="w-full"> | ||
<li className="w-full flex mb-3 py-1"> | ||
<Image | ||
src={group} | ||
alt="icon" | ||
width={30} | ||
height={30} | ||
className="w-6 h-6 mr-3" | ||
></Image> | ||
<Link href="/" className=""> | ||
Group | ||
</Link> | ||
</li> | ||
<li className="w-full flex mb-3 py-1"> | ||
<Image | ||
src={mypage} | ||
alt="icon" | ||
width={30} | ||
height={30} | ||
className="w-6 h-6 mr-3" | ||
></Image> | ||
<Link href="/" className=""> | ||
MyPage | ||
</Link> | ||
</li> | ||
{/* Billing Page - 보류 */} | ||
{/* <li className="w-full flex my-2 py-2"> | ||
<div className="w-6 h-6 bg-gray-600 mr-3"></div> | ||
<Link href="/" className=""> | ||
Billing | ||
</Link> | ||
</li> */} | ||
</ul> | ||
</div> | ||
<div className="h-8"></div> | ||
{/* Prompt */} | ||
<div className="w-full h-1/2"> | ||
<div className="text-zinc-400 mb-4">Prompt</div> | ||
{/* prompt - search */} | ||
<div className="w-full flex bg-white items-center mb-3 px-1"> | ||
<Image | ||
src={search} | ||
alt="icon" | ||
width={20} | ||
height={20} | ||
className="w-5 h-5 opacity-50" | ||
/> | ||
<input | ||
type="text" | ||
className="w-full p-1 border-0 outline-none" | ||
placeholder="Search" | ||
/> | ||
</div> | ||
{/* Prompt - list */} | ||
<ul> | ||
<li className="flex mb-3 py-1 items-center"> | ||
<Image | ||
src={book} | ||
alt="prompt" | ||
width={15} | ||
height={15} | ||
className="w-6 h-6 mr-3" | ||
></Image> | ||
<div className="flex w-full items-center justify-between"> | ||
<Link href="/" className=""> | ||
prompt1 | ||
</Link> | ||
<Image src={moreHoriz} alt="icon" width={30} height={30}></Image> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
{/* group exit */} | ||
<div className="flex absolute bottom-14"> | ||
<Image | ||
src={door} | ||
alt="icon" | ||
width={30} | ||
height={30} | ||
className="w-6 h-6 mr-2" | ||
></Image> | ||
<div>그룹 나가기</div> | ||
</div> | ||
</div> | ||
); | ||
} |