Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 01:23:23 +00:00
2 changed files with 13 additions and 46 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="mediumSmall"
sizing="large"
background="aurora"
background="circleGradient"
cardStyle="gradient-bordered"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="glass"
@@ -45,7 +45,7 @@ export default function LandingPage() {
<HeroBillboard
title="Crispy, Fresh, Fast"
description="Experience premium fried chicken with exceptional taste and quality. Order now and taste the difference."
background={{ variant: "aurora" }}
background={{ variant: "sparkles-gradient" }}
tag="Now Ordering Online"
tagIcon={Zap}
tagAnimation="slide-up"

View File

@@ -1,51 +1,18 @@
"use client";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
className?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
import React from 'react';
export const SvgTextLogo: React.FC<{ text: string; className?: string }> = ({ text, className }) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<svg viewBox="0 0 200 50" className={className}>
<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="middle"
fontSize="24"
fontWeight="bold"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
};