File tree Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 1
- import React from 'react'
1
+ import React from "react" ;
2
+ import SearchBar from "../reusable/SearchBar" ;
3
+ import { IoMdHome , IoIosNotifications } from "react-icons/io" ;
4
+ import { BiSolidMessageRounded } from "react-icons/bi" ;
5
+ import Image from "next/image" ;
2
6
3
7
const Navbar = ( ) => {
4
8
return (
5
- < div >
6
- I am navbar for profile
9
+ < div className = "flex justify-between mt-2 mb-8" >
10
+ < SearchBar placeholder = "Enter interests" />
11
+ < div className = "flex gap-10 items-center" >
12
+ < IoMdHome className = "text-2xl" />
13
+ < BiSolidMessageRounded className = "text-2xl" />
14
+ < IoIosNotifications className = "text-2xl" />
15
+ < Image
16
+ src = "/profile-image.png"
17
+ height = { 35 }
18
+ width = { 35 }
19
+ alt = "profile-image"
20
+ className = "rounded-full"
21
+ />
22
+ </ div >
7
23
</ div >
8
- )
9
- }
24
+ ) ;
25
+ } ;
10
26
11
27
export default Navbar ;
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
- const SearchBar = ( ) => {
3
+ const SearchBar = ( { placeholder } : { placeholder : string } ) => {
4
4
return (
5
5
< form className = "min-w-[50%] text-center" >
6
6
< label
@@ -31,7 +31,7 @@ const SearchBar = () => {
31
31
type = "search"
32
32
id = "default-search"
33
33
className = "block w-full p-2 ps-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
34
- placeholder = "Find new friends, chat, and discover communities"
34
+ placeholder = { placeholder }
35
35
required
36
36
/>
37
37
{ /* <button
You can’t perform that action at this time.
0 commit comments