Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 23:37:24 +00:00
2 changed files with 22 additions and 46 deletions

View File

@@ -5,6 +5,7 @@ import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleAp
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import Link from "next/link";
import { Zap } from 'lucide-react';
export default function ContactPage() {
const navItems = [
@@ -17,8 +18,7 @@ export default function ContactPage() {
const footerColumns = [
{
title: "Компания",
items: [
title: "Компания", items: [
{ label: "О нас", href: "/about" },
{ label: "Услуги", href: "/services" },
{ label: "Кейсы", href: "/cases" },
@@ -26,8 +26,7 @@ export default function ContactPage() {
],
},
{
title: "Услуги",
items: [
title: "Услуги", items: [
{ label: "ОП классический", href: "/services/op-classic" },
{ label: "ОП премиум", href: "/services/op-premium" },
{ label: "Диагностика", href: "/services/diagnostic" },
@@ -35,8 +34,7 @@ export default function ContactPage() {
],
},
{
title: "Контакты",
items: [
title: "Контакты", items: [
{ label: "WhatsApp", href: "https://wa.me/77XXxxxxxxx" },
{ label: "Email", href: "mailto:hello@romanovarop.kz" },
{ label: "Телефон", href: "tel:+77XXxxxxxxx" },
@@ -44,8 +42,7 @@ export default function ContactPage() {
],
},
{
title: "Правовая информация",
items: [
title: "Правовая информация", items: [
{ label: "Политика конфиденциальности", href: "/privacy" },
{ label: "Условия использования", href: "/terms" },
{ label: "Согласие на обработку данных", href: "/consent" },
@@ -79,7 +76,7 @@ export default function ContactPage() {
<div id="contact" data-section="contact">
<ContactCenter
tag="Начните прямо сейчас"
tagIcon="Zap"
tagIcon={Zap}
title="Запишитесь на бесплатную диагностику"
description="Проанализируем ваш отдел продаж, выявим проблемы и предложим план действий. Встреча займёт 60 минут, результаты можно применить сразу."
background={{ variant: "rotated-rays-animated" }}

View File

@@ -1,51 +1,30 @@
"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;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = '' }) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${text.length * 60} 100`}
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="50%"
y="50%"
dominantBaseline="central"
textAnchor="middle"
fontSize="48"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;