diff --git a/src/app/page.tsx b/src/app/page.tsx index b779b24..b1559b6 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -56,22 +56,22 @@ export default function LandingPage() { tag="משרות זמינות" products={[ { - id: "job-1", name: "מפתח Python בכיר", price: "₪18,000 - ₪24,000", variant: "משרה מלאה • תל אביב", imageSrc: "http://img.b2bpic.net/free-photo/team-photovoltaics-factory-technicians-working-together-improve-efficiency_482257-120389.jpg?_wi=1", imageAlt: "משרת מפתח" + id: "job-1", name: "מפתח Python בכיר", price: "₪18,000 - ₪24,000", variant: "משרה מלאה • תל אביב", imageSrc: "http://img.b2bpic.net/free-photo/team-photovoltaics-factory-technicians-working-together-improve-efficiency_482257-120389.jpg", imageAlt: "משרת מפתח" }, { - id: "job-2", name: "מנהל מכירות אזורי", price: "₪15,000 - ₪20,000", variant: "משרה מלאה • ירושלים", imageSrc: "http://img.b2bpic.net/free-photo/coworkers-use-technology-office_482257-120242.jpg?_wi=1", imageAlt: "משרת מכירות" + id: "job-2", name: "מנהל מכירות אזורי", price: "₪15,000 - ₪20,000", variant: "משרה מלאה • ירושלים", imageSrc: "http://img.b2bpic.net/free-photo/coworkers-use-technology-office_482257-120242.jpg", imageAlt: "משרת מכירות" }, { - id: "job-3", name: "נציג שירות לקוחות", price: "₪12,000 - ₪15,000", variant: "משרה חלקית • חיפה", imageSrc: "http://img.b2bpic.net/free-photo/young-bald-call-center-man-wearing-headset-sitting-desk-with-work-tools-holding-clipboard-isolated-white-background_141793-84943.jpg?_wi=1", imageAlt: "משרת שירות לקוחות" + id: "job-3", name: "נציג שירות לקוחות", price: "₪12,000 - ₪15,000", variant: "משרה חלקית • חיפה", imageSrc: "http://img.b2bpic.net/free-photo/young-bald-call-center-man-wearing-headset-sitting-desk-with-work-tools-holding-clipboard-isolated-white-background_141793-84943.jpg", imageAlt: "משרת שירות לקוחות" }, { - id: "job-4", name: "עוזר לוגיסטיקה", price: "₪11,000 - ₪14,000", variant: "משרה מלאה • בת ים", imageSrc: "http://img.b2bpic.net/free-photo/team-photovoltaics-factory-technicians-working-together-improve-efficiency_482257-120389.jpg?_wi=2", imageAlt: "משרת לוגיסטיקה" + id: "job-4", name: "עוזר לוגיסטיקה", price: "₪11,000 - ₪14,000", variant: "משרה מלאה • בת ים", imageSrc: "http://img.b2bpic.net/free-photo/team-photovoltaics-factory-technicians-working-together-improve-efficiency_482257-120389.jpg", imageAlt: "משרת לוגיסטיקה" }, { - id: "job-5", name: "מנהל פרויקטים טכנולוגיה", price: "₪20,000 - ₪28,000", variant: "משרה מלאה • רמת גן", imageSrc: "http://img.b2bpic.net/free-photo/coworkers-use-technology-office_482257-120242.jpg?_wi=2", imageAlt: "משרת ניהול פרויקטים" + id: "job-5", name: "מנהל פרויקטים טכנולוגיה", price: "₪20,000 - ₪28,000", variant: "משרה מלאה • רמת גן", imageSrc: "http://img.b2bpic.net/free-photo/coworkers-use-technology-office_482257-120242.jpg", imageAlt: "משרת ניהול פרויקטים" }, { - id: "job-6", name: "טכנאי אבטחה", price: "₪13,000 - ₪16,000", variant: "משרה מלאה • אופקים", imageSrc: "http://img.b2bpic.net/free-photo/young-bald-call-center-man-wearing-headset-sitting-desk-with-work-tools-holding-clipboard-isolated-white-background_141793-84943.jpg?_wi=2", imageAlt: "משרת אבטחה" + id: "job-6", name: "טכנאי אבטחה", price: "₪13,000 - ₪16,000", variant: "משרה מלאה • אופקים", imageSrc: "http://img.b2bpic.net/free-photo/young-bald-call-center-man-wearing-headset-sitting-desk-with-work-tools-holding-clipboard-isolated-white-background_141793-84943.jpg", imageAlt: "משרת אבטחה" } ]} gridVariant="three-columns-all-equal-width" @@ -136,4 +136,4 @@ export default function LandingPage() { ); -} \ No newline at end of file +} diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..2ed0bc1 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,58 @@ -"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; + fontSize?: number; + fontWeight?: number | string; + letterSpacing?: number; + fillColor?: string; + strokeColor?: string; + strokeWidth?: number; className?: string; + viewBox?: string; + preserveAspectRatio?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + fontSize = 48, + fontWeight = 'bold', + letterSpacing = 0, + fillColor = 'currentColor', + strokeColor = 'none', + strokeWidth = 0, + className = '', + viewBox = '0 0 1000 200', + preserveAspectRatio = 'xMidYMid meet', +}) => { + // Measure text width for accurate viewBox + const estimatedWidth = text.length * (fontSize * 0.6); + const padding = 20; + const customViewBox = `0 0 ${estimatedWidth + padding * 2} ${fontSize + padding * 2}`; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;