Added initial header

This commit is contained in:
Keannu Christian Bernasol 2023-11-17 17:23:53 +08:00
parent 9c4a5fd4fb
commit 2b5fe8171c
3 changed files with 27 additions and 6 deletions

View file

@ -0,0 +1,23 @@
import styles, { colors } from "../../styles";
export interface props {
label: React.ReactNode;
}
export default function Header(props: props) {
return (
<div
style={{
position: "sticky",
top: 0,
zIndex: -1,
backgroundColor: colors.header_color,
display: "flex",
flexDirection: "column",
alignContent: "center",
}}
>
<p style={{ ...styles.text_light, ...styles.text_M }}>{props.label}</p>
</div>
);
}

View file

@ -116,7 +116,7 @@ export default function LoginModal() {
type={"dark"}
label={"Login"}
onClick={() => {
navigate(0);
navigate("/dashboard");
}}
/>
</>