mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-17 01:15:31 -04:00
fix unnoticeable background color bug in dark mode
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
background-color: var(--background-header);
|
||||
backdrop-filter: saturate(180%) blur(5px);
|
||||
z-index: 1000;
|
||||
|
||||
/* light-dark theme switch fading */
|
||||
transition: color 0.25s ease, background 0.25s ease, border 0.25s ease;
|
||||
}
|
||||
|
@@ -1,11 +1,15 @@
|
||||
import { memo } from "react";
|
||||
import classNames from "classnames";
|
||||
import Selfie from "../Selfie/Selfie";
|
||||
import Menu from "../Menu/Menu";
|
||||
import type { HTMLAttributes } from "react";
|
||||
|
||||
import styles from "./Header.module.css";
|
||||
|
||||
const Header = () => (
|
||||
<header className={styles.header}>
|
||||
type Props = HTMLAttributes<HTMLDivElement>;
|
||||
|
||||
const Header = ({ className }: Props) => (
|
||||
<header className={classNames(styles.header, className)}>
|
||||
<nav className={styles.nav}>
|
||||
<Selfie className={styles.selfie} />
|
||||
<Menu className={styles.menu} />
|
||||
|
Reference in New Issue
Block a user