From e12574340de21aac44b7c626c4a1ca6bf5a3bfbd Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 03:38:22 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index c27f6bf..5f1ba54 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -84,19 +84,19 @@ export default function LandingPage() { products={[ { id: "1", brand: "SoundMax Pro", name: "Premium Wireless Earbuds", price: "599 ر.س", rating: 5, - reviewCount: "2.3k", imageSrc: "http://img.b2bpic.net/free-photo/front-view-woman-relaxing-couch_23-2148521656.jpg?_wi=1", isFavorited: false + reviewCount: "2.3k", imageSrc: "http://img.b2bpic.net/free-photo/front-view-woman-relaxing-couch_23-2148521656.jpg", isFavorited: false }, { id: "2", brand: "BrewMaster", name: "Smart Coffee Maker", price: "849 ر.س", rating: 5, - reviewCount: "1.8k", imageSrc: "http://img.b2bpic.net/free-photo/couple-watching-movie-streaming-service_23-2149026157.jpg?_wi=1", isFavorited: false + reviewCount: "1.8k", imageSrc: "http://img.b2bpic.net/free-photo/couple-watching-movie-streaming-service_23-2149026157.jpg", isFavorited: false }, { id: "3", brand: "SkyDrone Elite", name: "4K Professional Drone", price: "1,499 ر.س", rating: 5, - reviewCount: "3.1k", imageSrc: "http://img.b2bpic.net/free-photo/futuristic-drone-captures-aerial-view-sunset-generated-by-ai_188544-34138.jpg?_wi=1", isFavorited: false + reviewCount: "3.1k", imageSrc: "http://img.b2bpic.net/free-photo/futuristic-drone-captures-aerial-view-sunset-generated-by-ai_188544-34138.jpg", isFavorited: false }, { id: "4", brand: "SecureHome", name: "Smart Security Camera", price: "449 ر.س", rating: 4, - reviewCount: "1.5k", imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-checking-security-camera_23-2148994177.jpg?_wi=1", isFavorited: false + reviewCount: "1.5k", imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-checking-security-camera_23-2148994177.jpg", isFavorited: false } ]} /> @@ -122,19 +122,19 @@ export default function LandingPage() { features={[ { id: 1, - title: "Daily Exclusive Deals", description: "Fresh deals every single day on top brands. Limited quantities to maximize value for our customers. Flash sales that save you up to 60% on premium products.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-woman-relaxing-couch_23-2148521656.jpg?_wi=2" + title: "Daily Exclusive Deals", description: "Fresh deals every single day on top brands. Limited quantities to maximize value for our customers. Flash sales that save you up to 60% on premium products.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-woman-relaxing-couch_23-2148521656.jpg" }, { id: 2, - title: "Premium Brand Selection", description: "Authorized distributor of global leaders including Samsung, LG, Sony, and Philips. Every product is genuine with full warranty coverage and after-sales support.", imageSrc: "http://img.b2bpic.net/free-photo/couple-watching-movie-streaming-service_23-2149026157.jpg?_wi=2" + title: "Premium Brand Selection", description: "Authorized distributor of global leaders including Samsung, LG, Sony, and Philips. Every product is genuine with full warranty coverage and after-sales support.", imageSrc: "http://img.b2bpic.net/free-photo/couple-watching-movie-streaming-service_23-2149026157.jpg" }, { id: 3, - title: "Fast & Reliable Delivery", description: "Same-day delivery available in Riyadh and major cities. Secure packaging ensures your products arrive in perfect condition. Real-time tracking for every order.", imageSrc: "http://img.b2bpic.net/free-photo/futuristic-drone-captures-aerial-view-sunset-generated-by-ai_188544-34138.jpg?_wi=2" + title: "Fast & Reliable Delivery", description: "Same-day delivery available in Riyadh and major cities. Secure packaging ensures your products arrive in perfect condition. Real-time tracking for every order.", imageSrc: "http://img.b2bpic.net/free-photo/futuristic-drone-captures-aerial-view-sunset-generated-by-ai_188544-34138.jpg" }, { id: 4, - title: "24/7 Customer Support", description: "Our dedicated support team is always ready to assist in Arabic and English. Quick problem resolution and hassle-free returns within 30 days of purchase.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-checking-security-camera_23-2148994177.jpg?_wi=2" + title: "24/7 Customer Support", description: "Our dedicated support team is always ready to assist in Arabic and English. Quick problem resolution and hassle-free returns within 30 days of purchase.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-checking-security-camera_23-2148994177.jpg" } ]} title="Why Choose Saudi Smart Deals" @@ -173,28 +173,22 @@ export default function LandingPage() { Date: Wed, 11 Mar 2026 03:38:22 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 69 +++++++++---------- 1 file changed, 34 insertions(+), 35 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..c50ac56 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,50 @@ -"use client"; - -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; +import React from 'react'; interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; + text: string; className?: string; + textClassName?: string; + fontSize?: number; + fontWeight?: number | string; + letterSpacing?: number; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + className = '', + textClassName = '', + fontSize = 48, + fontWeight = 700, + letterSpacing = 0, +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = textLength * charWidth + 40; + const height = fontSize + 20; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo; -- 2.49.1