Merge version_1 into main #2
@@ -54,8 +54,8 @@ export default function LandingPage() {
|
||||
]}
|
||||
slides={[
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=n8v22t", imageAlt: "Premium Comic Readers collection" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=rmmyq5&_wi=1", imageAlt: "Comic Readers store interior" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tx9oyx&_wi=1", imageAlt: "Curated collectibles display" }
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=rmmyq5", imageAlt: "Comic Readers store interior" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tx9oyx", imageAlt: "Curated collectibles display" }
|
||||
]}
|
||||
autoplayDelay={5000}
|
||||
showDimOverlay={true}
|
||||
@@ -97,14 +97,13 @@ export default function LandingPage() {
|
||||
{ title: "Competitive Pricing", description: "Quality merchandise at prices that reflect our commitment to fair value for our community.", icon: TrendingUp },
|
||||
{ title: "Local Community", description: "We order in products, offer curbside pickup, and ship within our provinces to serve you better.", icon: MapPin }
|
||||
]}
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=rmmyq5&_wi=2"
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=rmmyq5"
|
||||
imageAlt="Comic Readers store community atmosphere"
|
||||
mediaAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
imagePosition="right"
|
||||
buttonAnimation="slide-up"
|
||||
titleClassName="text-5xl font-light"
|
||||
descriptionClassName="text-lg font-light text-foreground/80"
|
||||
/>
|
||||
</div>
|
||||
@@ -112,7 +111,7 @@ export default function LandingPage() {
|
||||
<div id="features" data-section="features">
|
||||
<FeatureCardOne
|
||||
features={[
|
||||
{ title: "Curated Collections", description: "From rare vintage comics to the latest releases, we stock what passionate collectors actually want.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tx9oyx&_wi=2", imageAlt: "Premium collectibles selection" },
|
||||
{ title: "Curated Collections", description: "From rare vintage comics to the latest releases, we stock what passionate collectors actually want.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tx9oyx", imageAlt: "Premium collectibles selection" },
|
||||
{ title: "Expert Guidance", description: "Our team knows comics, games, and collectibles. Get personalized recommendations you can trust.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=8t6ci4", imageAlt: "Knowledgeable staff assistance" },
|
||||
{ title: "Gaming Events", description: "Magic, Yu-Gi-Oh, Cardfight Vanguard, and more. Join our community for weekly gaming nights.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=lhfslw", imageAlt: "Community gaming events" }
|
||||
]}
|
||||
@@ -125,8 +124,8 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
titleClassName="text-4xl font-light"
|
||||
descriptionClassName="text-lg font-light"
|
||||
cardTitleClassName="text-lg font-light"
|
||||
cardDescriptionClassName="text-lg font-light"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -138,15 +137,15 @@ export default function LandingPage() {
|
||||
{ id: "3", value: "3", description: "Locations Across Prairies" },
|
||||
{ id: "4", value: "∞", description: "Passion for What We Do" }
|
||||
]}
|
||||
gridVariant="four-items-2x2-equal-grid"
|
||||
gridVariant="uniform-all-items-equal"
|
||||
animationType="scale-rotate"
|
||||
title="The Numbers Behind Our Success"
|
||||
description="Real community love, measured in reviews and years of trust."
|
||||
tag="Credibility"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
titleClassName="text-4xl font-light"
|
||||
descriptionClassName="text-lg font-light"
|
||||
textBoxTitleClassName="text-4xl font-light"
|
||||
textBoxDescriptionClassName="text-lg font-light"
|
||||
valueClassName="text-6xl font-light text-accent"
|
||||
/>
|
||||
</div>
|
||||
@@ -168,8 +167,8 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
titleClassName="text-4xl font-light"
|
||||
descriptionClassName="text-lg font-light"
|
||||
textBoxTitleClassName="text-4xl font-light"
|
||||
textBoxDescriptionClassName="text-lg font-light"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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;
|
||||
fontSize?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 48,
|
||||
}) => {
|
||||
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 * fontSize * 0.6} ${fontSize * 1.2}`}
|
||||
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"
|
||||
}}
|
||||
y="0"
|
||||
fontSize={fontSize}
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
dominantBaseline="hanging"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user