Header.tsx 916 Bytes
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from "react";
import { Link } from "react-router-dom";
import "tailwindcss/tailwind.css";

type HeaderProps = {

};

const Header = ({ }: HeaderProps) => (
    <div className="bg-white border-b-2 border-b-themeColor px-2 sm:px-4 py-2.5 dark:bg-gray-800">
        <div className="container flex flex-wrap justify-between items-center mx-auto">
            <Link to="/" className="font-bold text-2xl text-themeColor"> Simple Survey Form </Link>
            <div className="md:flex items-center justify-end md:flex-1 lg:w-0">
                <Link to="/login" className="whitespace-nowrap font-bold text-gray-600 hover:text-themeColor mx-1 py-2 px-3 rounded-md">Login</Link>
                <Link to="/signup" className="whitespace-nowrap font-bold text-white hover:bg-blue-500 mx-1 py-2 px-3 bg-themeColor rounded-md ">Sign Up</Link>
            </div>
        </div>
    </div>
);

export default Header;