From cd5fb36279bc7f108c745377894b49186a396898 Mon Sep 17 00:00:00 2001 From: everythingonblack Date: Sun, 17 Aug 2025 20:33:57 +0700 Subject: [PATCH] ok --- src/components/AboutUsSection.js | 2 +- src/components/AboutUsSection.module.css | 1 - src/components/AcademySection.js | 2 +- src/components/FAQSection.js | 2 +- src/components/FAQSection.module.css | 2 +- src/components/Footer.js | 13 +--- src/components/Footer.module.css | 2 +- src/components/Header.js | 78 ++++++++++++------------ src/components/ProductSection.js | 2 +- src/components/ServicesSection.js | 2 +- 10 files changed, 48 insertions(+), 58 deletions(-) diff --git a/src/components/AboutUsSection.js b/src/components/AboutUsSection.js index 5f19512..521b092 100644 --- a/src/components/AboutUsSection.js +++ b/src/components/AboutUsSection.js @@ -9,7 +9,7 @@ import useInView from '../hooks/useInView'; const AboutUsSection = () => { const { ref, inView } = useInView(); return ( -
+
{/* Komponen animasi sebagai latar belakang */}
diff --git a/src/components/AboutUsSection.module.css b/src/components/AboutUsSection.module.css index 82df8ca..571c33a 100644 --- a/src/components/AboutUsSection.module.css +++ b/src/components/AboutUsSection.module.css @@ -2,7 +2,6 @@ padding: 80px 0; /* Ditinggikan dari 60px */ position: relative; background-color: #0f172a; /* Latar belakang biru gelap (slate-900) */ - overflow: hidden; /* Mencegah canvas keluar dari section */ } /* Menghapus .blueprintGrid */ diff --git a/src/components/AcademySection.js b/src/components/AcademySection.js index b83f214..b60385a 100644 --- a/src/components/AcademySection.js +++ b/src/components/AcademySection.js @@ -43,7 +43,7 @@ const AcademySection = ({setSelectedProduct, setShowedModal, courseSectionRef, s const { ref, inView } = useInView(); return ( -
{ +
{ if (typeof courseSectionRef === 'function') courseSectionRef(el); if (ref) ref.current = el; }}> diff --git a/src/components/FAQSection.js b/src/components/FAQSection.js index 1bd1f88..a5fd6ee 100644 --- a/src/components/FAQSection.js +++ b/src/components/FAQSection.js @@ -116,7 +116,7 @@ const FAQSection = () => { ]; return ( -
+
diff --git a/src/components/FAQSection.module.css b/src/components/FAQSection.module.css index 0336cc1..938b23d 100644 --- a/src/components/FAQSection.module.css +++ b/src/components/FAQSection.module.css @@ -103,7 +103,7 @@ } .contentInner { - padding: 0 20px 20px; + padding: 15px 20px 20px; } .answer { diff --git a/src/components/Footer.js b/src/components/Footer.js index 11dee67..2bdad67 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -52,18 +52,7 @@ const Footer = () => {
- - -

Quick Links

- - - +

Newsletter

diff --git a/src/components/Footer.module.css b/src/components/Footer.module.css index 75dd035..5b5dc10 100644 --- a/src/components/Footer.module.css +++ b/src/components/Footer.module.css @@ -8,8 +8,8 @@ .footerContent { display: flex; + justify-content: space-between; flex-wrap: wrap; - margin-bottom: 40px; } .footerColumn { diff --git a/src/components/Header.js b/src/components/Header.js index 17fb629..6cfbcc9 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -20,7 +20,7 @@ const Header = ({ username, scrollToProduct, scrollToCourse, setShowedModal, han navigate('/'); setTimeout(() => { const el = document.getElementById(id); - if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' }); + if (el) el.scrollIntoView({ behavior: 'smooth' }); // Backward compatibility with refs passed from App for products/academy if (id === 'products' && typeof scrollToProduct === 'function') scrollToProduct(); if (id === 'academy' && typeof scrollToCourse === 'function') scrollToCourse(); @@ -28,48 +28,50 @@ const Header = ({ username, scrollToProduct, scrollToCourse, setShowedModal, han }; return ( -
- Logo +
+ Logo {/* Desktop Navigation */}
- + ); }; diff --git a/src/components/ProductSection.js b/src/components/ProductSection.js index afe9511..099e4ad 100644 --- a/src/components/ProductSection.js +++ b/src/components/ProductSection.js @@ -49,7 +49,7 @@ const ProductSection = ({ setSelectedProduct, setShowedModal, productSectionRef, const { ref, inView } = useInView(); return ( -
{ +
{ if (typeof productSectionRef === 'function') productSectionRef(el); if (ref) ref.current = el; }}> diff --git a/src/components/ServicesSection.js b/src/components/ServicesSection.js index a47f836..b3cc53a 100644 --- a/src/components/ServicesSection.js +++ b/src/components/ServicesSection.js @@ -29,7 +29,7 @@ const services = [ const ServicesSection = () => { const { ref, inView } = useInView(); return ( -
+