add refactoring note on top of page

This commit is contained in:
Nathaniel Tampus
2023-02-16 22:00:19 +08:00
parent aae76e83c4
commit 903cfc10ee
2 changed files with 35 additions and 12 deletions

View File

@@ -13,3 +13,17 @@
background: transparent; background: transparent;
color: var(--blue12); color: var(--blue12);
} }
.note {
text-align: center;
background-color: var(--blue2);
padding: 0.9em 0;
font-size: 0.7em;
width: 100%;
color: var(--blue12);
}
.note a {
color: var(--blue11);
text-decoration: underline;
}

View File

@@ -29,18 +29,27 @@ const Header = () => {
} }
return ( return (
<header className={styles.header}> <>
<Link to="/" className={styles.title}> <div className={styles.note}>
chessu This project is currently undergoing a major refactor & redesign. (
</Link> <a href="https://github.com/nizewn/chessu/pull/4" target="_blank" rel="noreferrer">
<button #4
className={styles.themeToggle} </a>
type="button" )
onClick={() => changeTheme(darkTheme ? "light" : "dark")} </div>
> <header className={styles.header}>
{darkTheme ? <SunIcon /> : <MoonIcon />} <Link to="/" className={styles.title}>
</button> chessu
</header> </Link>
<button
className={styles.themeToggle}
type="button"
onClick={() => changeTheme(darkTheme ? "light" : "dark")}
>
{darkTheme ? <SunIcon /> : <MoonIcon />}
</button>
</header>
</>
); );
}; };