drawDB/src/components/header/index.jsx

20 lines
713 B
React
Raw Normal View History

2023-09-19 20:46:46 +08:00
import React from "react";
import blank_pfp from "../../assets/blank_pfp.webp";
import logo from "../../assets/logo_80.png";
import "./index.css";
export default function Header(props) {
return (
2023-09-19 20:46:48 +08:00
<nav className="flex justify-between py-2 bg-blue text-white items-center">
<img width={136} src={logo} alt="logo" className="ms-8" />
2023-09-19 20:46:46 +08:00
<div className="text-xl">{props.name}</div>
2023-09-19 20:46:48 +08:00
<div className="flex justify-around items-center text-md me-8">
<button className="me-6 border px-4 py-1 rounded-xl">
<i className="fa-solid fa-lock me-2"></i>Share
2023-09-19 20:46:46 +08:00
</button>
<img src={blank_pfp} alt="profile" className="rounded-full h-10 w-10" />
</div>
</nav>
);
}