diff --git a/index.html b/index.html index 2f0d51a..95bdc89 100644 --- a/index.html +++ b/index.html @@ -4,32 +4,36 @@ , + 🫰 " /> + + + + + + - Mariia Shabelnik diff --git a/public/img/oreo-logo.png b/public/img/oreo-logo.png new file mode 100644 index 0000000..1040a8d Binary files /dev/null and b/public/img/oreo-logo.png differ diff --git a/src/App.jsx b/src/App.jsx index b70a026..49afcf3 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,8 +1,5 @@ //import "./App.css"; import { Routes, Route } from "react-router-dom"; -import Home from "./pages/Home"; -import Experience from "./pages/Experience"; -import Contact from "./pages/Contact"; import Footer from "./components/Footer"; import Header from "./components/Header"; import ExperianceDetail from "./pages/ExperienceDetail"; @@ -12,7 +9,7 @@ import ScrollToAnchor from "./components/ScrollToAnchor"; function App() { return ( -
+
diff --git a/src/components/Header.jsx b/src/components/Header.jsx index dc41439..3889260 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -13,20 +13,21 @@ function Header() { }, [isOpen]); const menu = [ - { link: "/#about", title: ".me()" }, - { link: "/#experience", title: ".experience()" }, - { link: "/#contact", title: ".contact()" }, + { link: "/#about", title: ".about( )" }, + { link: "/#experience", title: ".projects( )" }, + { link: "/#contact", title: ".contact( )" }, ]; const menuUI = menu.map((item) => { - let className = "drop-shadow-light hover:drop-shadow-doublelight"; - if (location.pathname === item.link) { - className += " text-white"; + let className = "drop-shadow-doublelight hover:drop-shadow-active"; + console.log(location); + if (`/${location.hash}` === item.link) { + className += " text-white "; } else { - className += " text-white/40"; + className += " text-gray-500"; } return ( -
  • +
  • { @@ -40,10 +41,19 @@ function Header() { ); }); - const headerClasses = ["sticky", "top-0", "z-40", "backdrop-blur-md", "h-16"]; + const headerClasses = [ + "sticky", + "top-0", + "z-40", + "backdrop-blur-sm", + "h-16", + "border-b-[1px]", + "border-white", + "rounded-b-[1rem]", + ]; const logoClasses = ["hover:drop-shadow-light"]; const overlayMenu = [ - "bg-black/90", + "bg-white/90", "z-50", "fixed", "left-0", @@ -54,11 +64,11 @@ function Header() { "p-2", ]; if (isOpen) { - headerClasses.push("bg-black/90"); - logoClasses.push("drop-shadow-yellow"); + headerClasses.push("bg-white/70"); + logoClasses.push("drop-shadow-gray"); } else { - headerClasses.push("bg-bgColor/90"); - logoClasses.push("drop-shadow-doublelight"); + headerClasses.push("bg-bgColor/70"); + logoClasses.push("drop-shadow-active"); } return ( @@ -71,11 +81,11 @@ function Header() {
  • )}
    -
    -