diff --git a/src/component/Footer.js b/src/component/Footer.js index f98a3d4..0b24e59 100644 --- a/src/component/Footer.js +++ b/src/component/Footer.js @@ -134,7 +134,7 @@ export default function Footer() { }; return ( - + diff --git a/src/component/Header.js b/src/component/Header.js index 5dc5de5..799f571 100644 --- a/src/component/Header.js +++ b/src/component/Header.js @@ -28,9 +28,9 @@ function Header() { const scrollToSection = (sectionId) => { const sectionElement = document.getElementById(sectionId); const offset = 128; - if (globalThis.location.pathname === '/') { - if (sectionId === '') { - globalThis.location.href = '/'; + if (globalThis.location.pathname === "/") { + if (sectionId === "") { + globalThis.location.href = "/"; } else if (sectionElement) { const targetScroll = sectionElement.offsetTop - offset; sectionElement.scrollIntoView({ behavior: "smooth" }); @@ -41,194 +41,230 @@ function Header() { setOpen(false); } } else { - if (sectionId === ' ') { - globalThis.location.href = '/'; + if (sectionId === " ") { + globalThis.location.href = "/"; } else { - globalThis.location.href = '/#' + sectionId; + globalThis.location.href = "/#" + sectionId; } } }; - return ( -
- - - ({ + + + ({ + display: "flex", + alignItems: "center", + justifyContent: "space-between", + flexShrink: 0, + borderRadius: ".5rem", + bgcolor: + theme.palette.mode === "light" + ? "rgba(255, 255, 255, 0.4)" + : "rgba(0, 0, 0, 0.4)", + backdropFilter: "blur(24px)", + maxHeight: 40, + border: "1px solid", + + boxShadow: + theme.palette.mode === "light" + ? `0 0 1px rgba(85, 166, 246, 0.1), 1px 1.5px 2px -1px rgba(85, 166, 246, 0.15), 4px 4px 12px -2.5px rgba(85, 166, 246, 0.15)` + : "0 0 1px rgba(2, 31, 59, 0.7), 1px 1.5px 2px -1px rgba(2, 31, 59, 0.65), 4px 4px 12px -2.5px rgba(2, 31, 59, 0.65)", + })} + > + - - EcoThaili scrollToSection("ms")} /> - scrollToSection("ms")} + /> + + scrollToSection("os")} + sx={{ py: "6px", px: "12px" }} > - scrollToSection("os")} - sx={{ py: "6px", px: "12px" }} + - - Our Story - - - scrollToSection("pwas")} - sx={{ py: "6px", px: "12px" }} + Our Story + + + scrollToSection("pwas")} + sx={{ py: "6px", px: "12px" }} + > + - - Problem We are Solving - - - scrollToSection("mc")} - sx={{ py: "6px", px: "12px" }} + Problem We are Solving + + + scrollToSection("mc")} + sx={{ py: "6px", px: "12px" }} + > + - - Material Composition - - - scrollToSection("mp")} - sx={{ py: "6px", px: "12px" }} + Material Composition + + + scrollToSection("mp")} + sx={{ py: "6px", px: "12px" }} + > + - - Manufacturing Process - - - scrollToSection("oi")} - sx={{ py: "6px", px: "12px" }} + Manufacturing Process + + + scrollToSection("oi")} + sx={{ py: "6px", px: "12px" }} + > + - - Our Impact - - - scrollToSection("p")} - sx={{ py: "6px", px: "12px" }} + Our Impact + + + scrollToSection("p")} + sx={{ py: "6px", px: "12px" }} + > + - - Product - - - scrollToSection("faq")} - sx={{ py: "6px", px: "12px" }} + Product + + + scrollToSection("faq")} + sx={{ py: "6px", px: "12px" }} + > + - - FAQ - - - scrollToSection("a")} - sx={{ py: "6px", px: "12px" }} + FAQ + + + scrollToSection("a")} + sx={{ py: "6px", px: "12px" }} + > + - - About - - - + About + + - - - + + - - - - - scrollToSection("os")}> - Our Story - - scrollToSection("pwas")}> - problem We are Solving - - scrollToSection("mc")}> - Material Composition - - scrollToSection("oi")}> - Our Impact - - scrollToSection("p")}> - Product - - scrollToSection("faq")}> - FAQ - - scrollToSection("a")}> - About - - - - - - - - -
+ >
+ scrollToSection("os")}> + Our Story + + scrollToSection("pwas")}> + problem We are Solving + + scrollToSection("mc")}> + Material Composition + + scrollToSection("oi")}> + Our Impact + + scrollToSection("p")}> + Product + + scrollToSection("faq")}>FAQ + scrollToSection("a")}>About + + + + + + + ); } -export default Header; \ No newline at end of file +export default Header; diff --git a/src/component/MainSlider.js b/src/component/MainSlider.js index 0b3b8a0..04e1e90 100644 --- a/src/component/MainSlider.js +++ b/src/component/MainSlider.js @@ -64,7 +64,7 @@ function MainSlider() { return ( - -
+
+ - - - - - - - -