This commit is contained in:
Janis
2022-12-21 02:23:41 +01:00
parent 348ba019c1
commit e44d6cc967
2 changed files with 18 additions and 2 deletions

View File

@@ -3,14 +3,17 @@ import React, { useRef } from "react";
import styles from "../styles/Nav.module.scss"; import styles from "../styles/Nav.module.scss";
import Image from "next/image"; import Image from "next/image";
import Link from "next/link"; import Link from "next/link";
import "../styles/test.css";
function switchTheme() {} function switchTheme() {}
export default function Nav() { export default function Nav() {
const switchThemeSvgRef = useRef(); const switchThemeSvgRef = useRef();
return ( return (
<nav className={styles.nav}> <nav className={styles.nav}>
<div className="dark">
<div className="test"></div>
</div>
<div className={styles.containerLeft}> <div className={styles.containerLeft}>
<Image <Image
src={"/images/logo.svg"} src={"/images/logo.svg"}

13
styles/test.css Normal file
View File

@@ -0,0 +1,13 @@
:root {
--test-test: red;
}
.dark {
--test-test: black;
}
.test {
background-color: var(--test-test);
height: 100px;
width: 100px;
}