add refactoring note on top of page
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user