ok
This commit is contained in:
@@ -9,7 +9,7 @@ import useInView from '../hooks/useInView';
|
|||||||
const AboutUsSection = () => {
|
const AboutUsSection = () => {
|
||||||
const { ref, inView } = useInView();
|
const { ref, inView } = useInView();
|
||||||
return (
|
return (
|
||||||
<section id="about" ref={ref} className={`${styles.aboutSection} ${shared.revealSection} ${inView ? shared.isVisible : ''}`}>
|
<section id="about" ref={ref} style={{scrollMarginTop: '65px'}} className={`${styles.aboutSection} ${shared.revealSection} ${inView ? shared.isVisible : ''}`}>
|
||||||
<AnimatedBackground /> {/* Komponen animasi sebagai latar belakang */}
|
<AnimatedBackground /> {/* Komponen animasi sebagai latar belakang */}
|
||||||
<div className={styles.contentWrapper}>
|
<div className={styles.contentWrapper}>
|
||||||
<Container>
|
<Container>
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
padding: 80px 0; /* Ditinggikan dari 60px */
|
padding: 80px 0; /* Ditinggikan dari 60px */
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #0f172a; /* Latar belakang biru gelap (slate-900) */
|
background-color: #0f172a; /* Latar belakang biru gelap (slate-900) */
|
||||||
overflow: hidden; /* Mencegah canvas keluar dari section */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menghapus .blueprintGrid */
|
/* Menghapus .blueprintGrid */
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const AcademySection = ({setSelectedProduct, setShowedModal, courseSectionRef, s
|
|||||||
const { ref, inView } = useInView();
|
const { ref, inView } = useInView();
|
||||||
return (
|
return (
|
||||||
|
|
||||||
<section id="academy" className={`services pt-5 ${styles.academySection} ${styles.revealSection} ${inView ? styles.isVisible : ''}`} ref={(el) => {
|
<section id="academy" style={{scrollMarginTop: '65px' }} className={`services pt-5 ${styles.academySection} ${styles.revealSection} ${inView ? styles.isVisible : ''}`} ref={(el) => {
|
||||||
if (typeof courseSectionRef === 'function') courseSectionRef(el);
|
if (typeof courseSectionRef === 'function') courseSectionRef(el);
|
||||||
if (ref) ref.current = el;
|
if (ref) ref.current = el;
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ const FAQSection = () => {
|
|||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section id="faq" className={styles.faqSection}>
|
<section id="faq" style={{scrollMarginTop: '65px'}} className={styles.faqSection}>
|
||||||
<Container>
|
<Container>
|
||||||
<Row>
|
<Row>
|
||||||
<Col>
|
<Col>
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.contentInner {
|
.contentInner {
|
||||||
padding: 0 20px 20px;
|
padding: 15px 20px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.answer {
|
.answer {
|
||||||
|
|||||||
@@ -52,18 +52,7 @@ const Footer = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
<Col lg={3} md={6} className={styles.footerColumn}>
|
|
||||||
<h3 className={styles.footerTitle}>Quick Links</h3>
|
|
||||||
<ul className={styles.footerLinks}>
|
|
||||||
<li><a href="#home">Home</a></li>
|
|
||||||
<li><a href="#products">Products</a></li>
|
|
||||||
<li><a href="#academy">Academy</a></li>
|
|
||||||
<li><a href="#about">About Us</a></li>
|
|
||||||
<li><a href="#contact">Contact</a></li>
|
|
||||||
</ul>
|
|
||||||
</Col>
|
|
||||||
|
|
||||||
<Col lg={3} md={6} className={styles.footerColumn}>
|
<Col lg={3} md={6} className={styles.footerColumn}>
|
||||||
<h3 className={styles.footerTitle}>Newsletter</h3>
|
<h3 className={styles.footerTitle}>Newsletter</h3>
|
||||||
<div className={styles.newsletter}>
|
<div className={styles.newsletter}>
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
.footerContent {
|
.footerContent {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-bottom: 40px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.footerColumn {
|
.footerColumn {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const Header = ({ username, scrollToProduct, scrollToCourse, setShowedModal, han
|
|||||||
navigate('/');
|
navigate('/');
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const el = document.getElementById(id);
|
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
|
// Backward compatibility with refs passed from App for products/academy
|
||||||
if (id === 'products' && typeof scrollToProduct === 'function') scrollToProduct();
|
if (id === 'products' && typeof scrollToProduct === 'function') scrollToProduct();
|
||||||
if (id === 'academy' && typeof scrollToCourse === 'function') scrollToCourse();
|
if (id === 'academy' && typeof scrollToCourse === 'function') scrollToCourse();
|
||||||
@@ -28,48 +28,50 @@ const Header = ({ username, scrollToProduct, scrollToCourse, setShowedModal, han
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className={`${styles.header} ${isScrolled ? styles.headerScrolled : ''}`}>
|
<header className={`${styles.header} ${isScrolled ? styles.headerScrolled : ''}`}>
|
||||||
<img src="./kediri-technopark-logo.png" className={styles.logo} alt="Logo" />
|
<img src="./kediri-technopark-logo.png" className={styles.logo} alt="Logo" />
|
||||||
|
|
||||||
{/* Desktop Navigation */}
|
{/* Desktop Navigation */}
|
||||||
<nav className={styles.nav}>
|
<nav className={styles.nav}>
|
||||||
<a
|
|
||||||
className={`${styles.navLink} ${hoveredNav === 2 ? styles.navLinkHover : ''}`}
|
|
||||||
onMouseEnter={() => setHoveredNav(2)}
|
|
||||||
onMouseLeave={() => setHoveredNav(null)}
|
|
||||||
onClick={() => navigate('/')}
|
|
||||||
>
|
|
||||||
Home
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
className={`${styles.navLink} ${hoveredNav === 21 ? styles.navLinkHover : ''}`}
|
|
||||||
onMouseEnter={() => setHoveredNav(21)}
|
|
||||||
onMouseLeave={() => setHoveredNav(null)}
|
|
||||||
onClick={() => scrollToId('about')}
|
|
||||||
>
|
|
||||||
About
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
className={`${styles.navLink} ${hoveredNav === 22 ? styles.navLinkHover : ''}`}
|
|
||||||
onMouseEnter={() => setHoveredNav(22)}
|
|
||||||
onMouseLeave={() => setHoveredNav(null)}
|
|
||||||
onClick={() => scrollToId('services')}
|
|
||||||
>
|
|
||||||
Services
|
|
||||||
</a>
|
|
||||||
{username &&
|
{username &&
|
||||||
<a
|
<>
|
||||||
className={`${styles.navLink} ${hoveredNav === 3 ? styles.navLinkHover : ''}`}
|
<a
|
||||||
onMouseEnter={() => setHoveredNav(3)}
|
className={`${styles.navLink} ${hoveredNav === 2 ? styles.navLinkHover : ''}`}
|
||||||
onMouseLeave={() => setHoveredNav(null)}
|
onMouseEnter={() => setHoveredNav(2)}
|
||||||
onClick={() => {
|
onMouseLeave={() => setHoveredNav(null)}
|
||||||
navigate('/dashboard');
|
onClick={() => navigate('/')}
|
||||||
}}>
|
>
|
||||||
Dashboard
|
Home
|
||||||
</a>
|
</a>
|
||||||
|
<a
|
||||||
|
className={`${styles.navLink} ${hoveredNav === 3 ? styles.navLinkHover : ''}`}
|
||||||
|
onMouseEnter={() => setHoveredNav(3)}
|
||||||
|
onMouseLeave={() => setHoveredNav(null)}
|
||||||
|
onClick={() => {
|
||||||
|
navigate('/dashboard');
|
||||||
|
}}>
|
||||||
|
Dashboard
|
||||||
|
</a>
|
||||||
|
</>
|
||||||
}
|
}
|
||||||
{!username &&
|
{!username &&
|
||||||
<>
|
<>
|
||||||
|
<a
|
||||||
|
className={`${styles.navLink} ${hoveredNav === 21 ? styles.navLinkHover : ''}`}
|
||||||
|
onMouseEnter={() => setHoveredNav(21)}
|
||||||
|
onMouseLeave={() => setHoveredNav(null)}
|
||||||
|
onClick={() => scrollToId('about')}
|
||||||
|
>
|
||||||
|
About
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
className={`${styles.navLink} ${hoveredNav === 22 ? styles.navLinkHover : ''}`}
|
||||||
|
onMouseEnter={() => setHoveredNav(22)}
|
||||||
|
onMouseLeave={() => setHoveredNav(null)}
|
||||||
|
onClick={() => scrollToId('services')}
|
||||||
|
>
|
||||||
|
Services
|
||||||
|
</a>
|
||||||
<a
|
<a
|
||||||
className={`${styles.navLink} ${hoveredNav === 3 ? styles.navLinkHover : ''}`}
|
className={`${styles.navLink} ${hoveredNav === 3 ? styles.navLinkHover : ''}`}
|
||||||
onMouseEnter={() => setHoveredNav(3)}
|
onMouseEnter={() => setHoveredNav(3)}
|
||||||
@@ -109,7 +111,7 @@ const Header = ({ username, scrollToProduct, scrollToCourse, setShowedModal, han
|
|||||||
{username ? (
|
{username ? (
|
||||||
<>
|
<>
|
||||||
<div className={styles.username}>{username}</div>
|
<div className={styles.username}>{username}</div>
|
||||||
<button onClick={() => { setMenuOpen(false); navigate('/'); }}>Home</button>
|
{/* <button onClick={() => { setMenuOpen(false); navigate('/'); }}>Home</button> */}
|
||||||
<button onClick={() => { setMenuOpen(false); scrollToId('about'); }}>About</button>
|
<button onClick={() => { setMenuOpen(false); scrollToId('about'); }}>About</button>
|
||||||
<button onClick={() => { setMenuOpen(false); scrollToId('services'); }}>Services</button>
|
<button onClick={() => { setMenuOpen(false); scrollToId('services'); }}>Services</button>
|
||||||
<button onClick={() => { setMenuOpen(false); scrollToId('products'); }}>Products</button>
|
<button onClick={() => { setMenuOpen(false); scrollToId('products'); }}>Products</button>
|
||||||
@@ -164,7 +166,7 @@ const Header = ({ username, scrollToProduct, scrollToCourse, setShowedModal, han
|
|||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const ProductSection = ({ setSelectedProduct, setShowedModal, productSectionRef,
|
|||||||
|
|
||||||
const { ref, inView } = useInView();
|
const { ref, inView } = useInView();
|
||||||
return (
|
return (
|
||||||
<section id="products" className={`${styles.productSection} ${shared.revealSection} ${inView ? shared.isVisible : ''}`} ref={(el) => {
|
<section id="products" style={{scrollMarginTop: '65px' }} className={`${styles.productSection} ${shared.revealSection} ${inView ? shared.isVisible : ''}`} ref={(el) => {
|
||||||
if (typeof productSectionRef === 'function') productSectionRef(el);
|
if (typeof productSectionRef === 'function') productSectionRef(el);
|
||||||
if (ref) ref.current = el;
|
if (ref) ref.current = el;
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const services = [
|
|||||||
const ServicesSection = () => {
|
const ServicesSection = () => {
|
||||||
const { ref, inView } = useInView();
|
const { ref, inView } = useInView();
|
||||||
return (
|
return (
|
||||||
<section id="services" ref={ref} className={`${styles.blueprintContainer} ${shared.revealSection} ${inView ? shared.isVisible : ''}`}>
|
<section id="services" ref={ref} style={{scrollMarginTop: '65px'}} className={`${styles.blueprintContainer} ${shared.revealSection} ${inView ? shared.isVisible : ''}`}>
|
||||||
<div className={styles.blueprintGrid}></div>
|
<div className={styles.blueprintGrid}></div>
|
||||||
<div className={styles.contentWrapper}>
|
<div className={styles.contentWrapper}>
|
||||||
<Container>
|
<Container>
|
||||||
|
|||||||
Reference in New Issue
Block a user