mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-29 21:02:13 +01:00
fgh
This commit is contained in:
@@ -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
13
styles/test.css
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
:root {
|
||||||
|
--test-test: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark {
|
||||||
|
--test-test: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.test {
|
||||||
|
background-color: var(--test-test);
|
||||||
|
height: 100px;
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user