Skip to content

Commit c18624b

Browse files
committed
fix: correct intro screen icons and prevent auto-scroll on Product page
- Replace Menu icon with proper icons: Award for Brand, Code for Product - Fix ProductPrinciples auto-scroll to only trigger on user interaction - Prevent unwanted scroll behavior on Product page landing - Maintain proper icon consistency with navigation header - Improve user experience by eliminating unexpected scroll behavior
1 parent e2ff9e6 commit c18624b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/app/design/brand/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Header from '@/components/Header';
44
import Footer from '@/components/Footer';
55
import SectionNavigation from '@/components/SectionNavigation';
66
import SectionPlaceholder from '@/components/SectionPlaceholder';
7-
import { Award, FileText, Download, Menu } from 'lucide-react';
7+
import { Award, FileText, Download } from 'lucide-react';
88
import { useLanguage } from '@/contexts/LanguageContext';
99
import { motion } from 'framer-motion';
1010

@@ -32,7 +32,7 @@ export default function BrandPage() {
3232
transition={{ duration: 0.8, ease: 'easeOut' }}
3333
className="mb-8"
3434
>
35-
<Menu className="w-16 h-16 text-white mx-auto mb-6" />
35+
<Award className="w-16 h-16 text-white mx-auto mb-6" />
3636
</motion.div>
3737

3838
<motion.h1

src/app/design/product/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Footer from '@/components/Footer';
55
import SectionNavigation from '@/components/SectionNavigation';
66
import ProductPrinciples from '@/components/ProductPrinciples';
77
import SectionPlaceholder from '@/components/SectionPlaceholder';
8-
import { FileText, Download, Menu } from 'lucide-react';
8+
import { FileText, Download, Code } from 'lucide-react';
99
import { useLanguage } from '@/contexts/LanguageContext';
1010
import { motion } from 'framer-motion';
1111

@@ -33,7 +33,7 @@ export default function ProductPage() {
3333
transition={{ duration: 0.8, ease: 'easeOut' }}
3434
className="mb-8"
3535
>
36-
<Menu className="w-16 h-16 text-white mx-auto mb-6" />
36+
<Code className="w-16 h-16 text-white mx-auto mb-6" />
3737
</motion.div>
3838

3939
<motion.h1

src/components/ProductPrinciples.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ const ProductPrinciples = () => {
124124
};
125125
}, [isHovered, isPrinciplesInView, translatedPrinciples.length]);
126126

127-
// Auto-scroll to active principle tab
127+
// Auto-scroll to active principle tab (only when user is interacting)
128128
useEffect(() => {
129-
if (principlesNavRef.current) {
129+
if (principlesNavRef.current && isHovered) {
130130
const activeButton = principlesNavRef.current.children[selectedPrinciple] as HTMLElement;
131131
if (activeButton) {
132132
activeButton.scrollIntoView({
@@ -136,7 +136,7 @@ const ProductPrinciples = () => {
136136
});
137137
}
138138
}
139-
}, [selectedPrinciple]);
139+
}, [selectedPrinciple, isHovered]);
140140

141141
const containerVariants = {
142142
hidden: { opacity: 0 },

0 commit comments

Comments
 (0)