From 039b5724f052f21011b6edea92e447f669c66067 Mon Sep 17 00:00:00 2001 From: bender Date: Sat, 16 May 2026 22:33:08 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 103 ++++++++++++++++++++--------------------------- 1 file changed, 43 insertions(+), 60 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index b59b51b..d5f8b74 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,17 +3,35 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; import AboutMetric from '@/components/sections/about/AboutMetric'; -import ContactCTA from '@/components/sections/contact/ContactCTA'; +import ContactText from '@/components/sections/contact/ContactText'; import FeatureBento from '@/components/sections/feature/FeatureBento'; -import FooterMedia from '@/components/sections/footer/FooterMedia'; +import FooterBase from '@/components/sections/footer/FooterBase'; import HeroSplitDoubleCarousel from '@/components/sections/hero/HeroSplitDoubleCarousel'; -import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven'; +import MetricCardFourteen from '@/components/sections/metrics/MetricCardFourteen'; import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; import ProductCardOne from '@/components/sections/product/ProductCardOne'; import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve'; import { CheckCircle, Clock, Flame, Leaf, MessageSquare, Palette, Star, Wheat } from "lucide-react"; +import { useEffect } from 'react'; export default function LandingPage() { + useEffect(() => { + const cursor = document.createElement('div'); + cursor.className = 'custom-cursor'; + document.body.appendChild(cursor); + + const updateCursor = (e: MouseEvent) => { + cursor.style.left = e.clientX + 'px'; + cursor.style.top = e.clientY + 'px'; + }; + + window.addEventListener('mousemove', updateCursor); + return () => { + window.removeEventListener('mousemove', updateCursor); + cursor.remove(); + }; + }, []); + return ( +
-
@@ -119,9 +110,6 @@ export default function LandingPage() { { id: "p1", name: "Margherita Classico", price: "20 zł", imageSrc: "http://img.b2bpic.net/free-photo/side-view-pizza-with-tomatoes-with-eggs-glass-milk-flour-table_140725-13969.jpg" }, { id: "p2", name: "Diavola", price: "28 zł", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-pizza-wooden-background_23-2148574221.jpg" }, { id: "p3", name: "Quattro Formaggi", price: "32 zł", imageSrc: "http://img.b2bpic.net/free-photo/healthy-delicious-mushroom-cheese-pizza-surrounded-with-italian-food-ingredients_23-2148076179.jpg" }, - { id: "p4", name: "Amici Premium", price: "54 zł", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-pizza-with-vegetables_23-2148574236.jpg" }, - { id: "p5", name: "Truffle Pizza", price: "48 zł", imageSrc: "http://img.b2bpic.net/free-photo/cheesy-mushroom-pizza-with-cheese-grater-near-ingredients-black-backdrop_23-2148076185.jpg" }, - { id: "p6", name: "Prosciutto Crudo", price: "42 zł", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-tasty-arugula-pizza_23-2148574284.jpg" }, ]} title="Nasze Menu" description="Sprawdź nasze najpopularniejsze pozycje w menu." @@ -150,9 +138,6 @@ export default function LandingPage() { testimonials={[ { id: "t1", name: "Anna Kowalska", imageSrc: "http://img.b2bpic.net/free-photo/mature-woman-smiling_1149-601.jpg" }, { id: "t2", name: "Marek Nowak", imageSrc: "http://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg" }, - { id: "t3", name: "Joanna Zielińska", imageSrc: "http://img.b2bpic.net/free-photo/vegetable-salad-with-caviar-shrimps_140725-6375.jpg" }, - { id: "t4", name: "Piotr Wójcik", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-brunette-woman-sitting-with-coffee-using-smartphone-cafe-chatting_1258-199048.jpg" }, - { id: "t5", name: "Katarzyna Mazur", imageSrc: "http://img.b2bpic.net/free-photo/close-up-young-businesswoman_23-2149153829.jpg" }, ]} cardTitle="Co mówią o nas goście" cardAnimation="slide-up" @@ -162,23 +147,21 @@ export default function LandingPage() {
-