mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 09:17:00 +00:00
updated nav and logo
This commit is contained in:
@@ -1,36 +1,63 @@
|
||||
import React from "react";
|
||||
"use client";
|
||||
|
||||
import React, { useState } from "react";
|
||||
import { Button } from "../ui/button";
|
||||
import { Search } from "lucide-react";
|
||||
import { Input } from "../ui/input";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import Image from "next/image";
|
||||
|
||||
const Navbar = () => {
|
||||
const [inputValue, setInputvalue] = useState("");
|
||||
|
||||
const handleInputChange = (e: any) => {
|
||||
setInputvalue(e.target.value);
|
||||
};
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const searchInput = () => {
|
||||
router.push(`/symbol/${inputValue}`);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="h-16 p-6 w-screen flex flex-row justify-between items-center bg-[rgb(26,27,32)]">
|
||||
<div className="flex">
|
||||
<Button variant="linkNoUnderline" className="text-3xl font-bold">
|
||||
YellowBird
|
||||
<Link href="/">
|
||||
<Image
|
||||
src={"/yellowbird.svg"}
|
||||
height={10}
|
||||
width={120}
|
||||
alt="yellowbird"
|
||||
/>
|
||||
</Link>
|
||||
</Button>
|
||||
<div className="flex justify-between gap-8 px-8">
|
||||
<Button variant="link" className="text-white font-bold">
|
||||
HOME
|
||||
<Button variant="link" className="text-white font-semibold text-lg">
|
||||
<Link href="/">Home</Link>
|
||||
</Button>
|
||||
<Button variant="link" className="text-white font-bold">
|
||||
PORTFOLIO
|
||||
<Button variant="link" className="text-white font-semibold text-lg">
|
||||
<Link href="/portfolio">Portfolio</Link>
|
||||
</Button>
|
||||
<Button variant="link" className="text-white font-bold">
|
||||
RESEARCH
|
||||
<Button variant="link" className="text-white font-semibold text-lg">
|
||||
<Link href="/research">Research</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex">
|
||||
<div className="flex items-center px-4">
|
||||
<Input
|
||||
className="rounded-lg rounded-r-none w-96 bg-inherit border-neutral-700 p-4"
|
||||
type="search"
|
||||
type="text"
|
||||
placeholder="Search"
|
||||
value={inputValue}
|
||||
onChange={handleInputChange}
|
||||
/>
|
||||
<Button
|
||||
type="submit"
|
||||
onClick={searchInput}
|
||||
className="w-14 rounded-lg rounded-l-none bg-transparent border-neutral-700 border border-l-0 text-primary hover:text-neutral-700"
|
||||
>
|
||||
<Search size={16} />
|
||||
|
||||
Reference in New Issue
Block a user