Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 22:42:45 +00:00
2 changed files with 49 additions and 42 deletions

View File

@@ -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() {
</div>
</ThemeProvider>
);
}
}

View File

@@ -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<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
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 (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={customViewBox}
preserveAspectRatio={preserveAspectRatio}
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
x={padding}
y={fontSize + padding / 2}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill={fillColor}
stroke={strokeColor}
strokeWidth={strokeWidth}
dominantBaseline="auto"
fontFamily="inherit"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;