From 05cd5b51397c6f4e4a99ca6828431a8849951f70 Mon Sep 17 00:00:00 2001 From: Mohammed Al-yaseen Date: Sat, 7 Feb 2026 00:31:26 +0300 Subject: [PATCH] main: enhance scroll styles and add CTA section --- src/app/page.module.css | 74 +++++++++ src/app/page.tsx | 354 ++++++++++++++++++++++++++-------------- 2 files changed, 306 insertions(+), 122 deletions(-) diff --git a/src/app/page.module.css b/src/app/page.module.css index 890c1d8..65ce51d 100644 --- a/src/app/page.module.css +++ b/src/app/page.module.css @@ -614,4 +614,78 @@ width: 8px; height: 8px; } +} + +/* CTA Section */ +.ctaSection { + padding: 100px 0; + background: linear-gradient(135deg, #0F0525 0%, #2A0B45 100%); + text-align: center; + position: relative; + overflow: hidden; + color: white; +} + +.ctaSection::before { + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: url('data:image/svg+xml,'); + opacity: 0.5; +} + +.ctaContent { + position: relative; + z-index: 10; + max-width: 800px; + margin: 0 auto; +} + +.ctaTitle { + font-size: 3rem !important; + font-weight: 700 !important; + color: white !important; + margin-bottom: 24px !important; + line-height: 1.2 !important; +} + +.ctaDescription { + font-size: 1.25rem !important; + color: rgba(255, 255, 255, 0.9) !important; + margin-bottom: 40px !important; + line-height: 1.6 !important; +} + +.ctaButton { + height: auto !important; + padding: 12px 40px !important; + font-size: 1.1rem !important; + font-weight: 600 !important; + border-radius: 50px !important; + background: white !important; + color: #7400b8 !important; + border: none !important; + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); +} + +.ctaButton:hover { + transform: translateY(-2px); + box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); +} + +@media (max-width: 768px) { + .ctaSection { + padding: 80px 16px; + } + + .ctaTitle { + font-size: 2.2rem !important; + } + + .ctaDescription { + font-size: 1.1rem !important; + } } \ No newline at end of file diff --git a/src/app/page.tsx b/src/app/page.tsx index 69b90b2..d48ad68 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,6 +2,7 @@ "use client"; import { + ArrowRightOutlined, BulbOutlined, ClockCircleOutlined, CodeOutlined, @@ -10,7 +11,8 @@ import { StarOutlined, TeamOutlined, } from "@ant-design/icons"; -import { Card, Col, Row, Statistic, Typography } from "antd"; +import { Button, Card, Col, Row, Statistic, Typography } from "antd"; +import { motion, useScroll, useSpring } from "framer-motion"; import { useEffect, useState } from "react"; import Footer from "./components/Footer/Footer"; import HeroSection from "./components/Hero/HeroSection"; @@ -28,6 +30,13 @@ export default function Home() { const [showPreferences, setShowPreferences] = useState(true); const [loading, setLoading] = useState(true); + const { scrollYProgress } = useScroll(); + const scaleX = useSpring(scrollYProgress, { + stiffness: 100, + damping: 30, + restDelta: 0.001, + }); + useEffect(() => { // Reading localStorage can only happen on the client; do it after mount. try { @@ -58,6 +67,21 @@ export default function Home() { setShowPreferences(false); }; + const fadeInUp = { + hidden: { opacity: 0, y: 60 }, + visible: { opacity: 1, y: 0, transition: { duration: 0.6 } }, + }; + + const staggerContainer = { + hidden: { opacity: 0 }, + visible: { + opacity: 1, + transition: { + staggerChildren: 0.2, + }, + }, + }; + if (loading) { return (
@@ -101,6 +125,21 @@ export default function Home() { return ( <> + + {showPreferences && ( )} @@ -113,7 +152,13 @@ export default function Home() { {/* Services Section */}
-
+ Our Services @@ -121,79 +166,99 @@ export default function Home() { We offer comprehensive solutions to transform your digital presence and drive business growth -
+ - - - -
- -
- - Web Development - - - Custom web applications built with modern technologies and - best practices for optimal performance and user experience. - -
    -
  • Responsive Design
  • -
  • SEO Optimization
  • -
  • Performance Tuning
  • -
  • Security Implementation
  • -
-
- + + + + + +
+ +
+ + Web Development + + + Custom web applications built with modern technologies + and best practices for optimal performance and user + experience. + +
    +
  • Responsive Design
  • +
  • SEO Optimization
  • +
  • Performance Tuning
  • +
  • Security Implementation
  • +
+
+
+ - - -
- -
- - Mobile Development - - - Native and cross-platform mobile applications that deliver - exceptional user experiences across all devices. - -
    -
  • iOS & Android Apps
  • -
  • Cross-platform Solutions
  • -
  • App Store Optimization
  • -
  • Push Notifications
  • -
-
- + + + +
+ +
+ + Mobile Development + + + Native and cross-platform mobile applications that + deliver exceptional user experiences across all devices. + +
    +
  • iOS & Android Apps
  • +
  • Cross-platform Solutions
  • +
  • App Store Optimization
  • +
  • Push Notifications
  • +
+
+
+ - - -
- -
- - UI/UX Design - - - User-centered design solutions that create intuitive, - engaging, and conversion-focused digital experiences. - -
    -
  • User Research
  • -
  • Wireframing & Prototyping
  • -
  • Visual Design
  • -
  • Usability Testing
  • -
-
- -
+ + + +
+ +
+ + UI/UX Design + + + User-centered design solutions that create intuitive, + engaging, and conversion-focused digital experiences. + +
    +
  • User Research
  • +
  • Wireframing & Prototyping
  • +
  • Visual Design
  • +
  • Usability Testing
  • +
+
+
+ +
+
{/* Statistics Section */}
-
+ Our Impact @@ -201,66 +266,81 @@ export default function Home() { Numbers that speak for themselves - our commitment to excellence in every project -
+ - - -
-
- -
- -
- + + + + +
+
+ +
+ +
+
+ - -
-
- -
- -
- + + +
+
+ +
+ +
+
+ - -
-
- -
- -
- + + +
+
+ +
+ +
+
+ - -
-
- -
- -
- -
+ + +
+
+ +
+ +
+
+ +
+
@@ -271,6 +351,36 @@ export default function Home() {
+ + {/* CTA Section */} +
+
+ + + Ready to Transform Your Digital Presence? + + + Let's collaborate to build something amazing. Our team is + ready to turn your vision into reality. + + + +
+