Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 21:19:37 +00:00
2 changed files with 20 additions and 38 deletions

View File

@@ -9,7 +9,7 @@ import MediaAbout from '@/components/sections/about/MediaAbout';
import TestimonialCardSixteen from '@/components/sections/testimonial/TestimonialCardSixteen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Heart, Instagram, Mail, Palette, Leaf, Zap, Shield, Sparkles, Star, TikTok, Twitter } from 'lucide-react';
import { Heart, Instagram, Mail, Palette, Leaf, Zap, Shield, Sparkles, Star, Twitter } from 'lucide-react';
export default function LandingPage() {
return (
@@ -204,8 +204,7 @@ export default function LandingPage() {
copyrightText="© 2025 Aesthetic. All rights reserved."
socialLinks={[
{ icon: Instagram, href: "https://instagram.com/aesthetic", ariaLabel: "Instagram" },
{ icon: Twitter, href: "https://twitter.com/aesthetic", ariaLabel: "Twitter" },
{ icon: TikTok, href: "https://tiktok.com/@aesthetic", ariaLabel: "TikTok" }
{ icon: Twitter, href: "https://twitter.com/aesthetic", ariaLabel: "Twitter" }
]}
/>
</div>

View File

@@ -1,51 +1,34 @@
"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;
id?: 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, className = '', id }) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
viewBox={`0 0 ${text.length * 60} 100`}
className={`inline-block ${className}`}
id={id}
role="img"
aria-label={`${logoText} logo`}
aria-label={text}
>
<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%"
textAnchor="middle"
dominantBaseline="central"
fontSize="64"
fontWeight="bold"
fill="currentColor"
className="select-none"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;