+
Made with heart by BP
Copyright © {today.getFullYear()}
diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx
index 6f8298f..2050319 100644
--- a/src/components/Header/Header.jsx
+++ b/src/components/Header/Header.jsx
@@ -1,24 +1,24 @@
-
-
import Navbar from "./navbar";
import Loginbtn from "./Loginbtn";
import ResponsiveNav from "./ResponsiveNav";
import { Link, useLocation } from "react-router-dom";
-
-
-
function Header() {
+ const location = useLocation();
-const location = useLocation();
-
-
-
return (
-
- {location.pathname=='/'?
-
: home
}
-
+
+ {location.pathname == '/' ? (
+
+
+
+
+ ) : (
+
+ home
+
+ )}
+
);
}
diff --git a/src/index.css b/src/index.css
index f137716..6084ee4 100644
--- a/src/index.css
+++ b/src/index.css
@@ -1,6 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
-
@tailwind base;
@tailwind components;
@tailwind utilities;
@@ -9,5 +8,12 @@
font-family: 'Poppins', sans-serif;
margin: 0px;
padding: 0px;
-
-}
\ No newline at end of file
+}
+
+body {
+ @apply bg-white text-black;
+}
+
+.dark body {
+ @apply bg-gray-900 text-white;
+}
diff --git a/tailwind.config.js b/tailwind.config.js
index 7e6d1f8..72a8599 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -1,6 +1,7 @@
-// @type {import('tailwindcss').Config}
+ // @type {import('tailwindcss').Config}
export default {
+ darkMode: 'class',
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
@@ -25,4 +26,3 @@ export default {
},
plugins: [],
}
-