Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="largeSmall"
|
||||
background="noiseDiagonalGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="shadow"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -46,7 +46,7 @@ export default function LandingPage() {
|
||||
tag="Inclusive Innovation"
|
||||
tagIcon={Accessibility}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "canvas-reveal" }}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/handicapped-young-woman-office-looking-laptop_23-2148497274.jpg"
|
||||
imageAlt="AccessWeb platform showcasing accessible interface design"
|
||||
buttons={[
|
||||
@@ -77,7 +77,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Voice Navigation", description: "Navigate using voice commands. Users can open menus, access settings, adjust text size, or perform major actions using simple voice directives.", imageSrc: "http://img.b2bpic.net/free-photo/surprised-young-woman-scrolling-newsfeed-via-social-media-account-having-shocked-look_343059-1944.jpg?_wi=1", imageAlt: "Voice command interface with accessibility controls"
|
||||
title: "Voice Navigation", description: "Navigate using voice commands. Users can open menus, access settings, adjust text size, or perform major actions using simple voice directives.", imageSrc: "http://img.b2bpic.net/free-photo/surprised-young-woman-scrolling-newsfeed-via-social-media-account-having-shocked-look_343059-1944.jpg", imageAlt: "Voice command interface with accessibility controls"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
@@ -128,7 +128,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: "2", brand: "Feature", name: "Assistive Technology Support", price: "Multiple Methods", rating: 5,
|
||||
reviewCount: "Voice + Keyboard", imageSrc: "http://img.b2bpic.net/free-photo/surprised-young-woman-scrolling-newsfeed-via-social-media-account-having-shocked-look_343059-1944.jpg?_wi=2", imageAlt: "Multiple assistive technology options"
|
||||
reviewCount: "Voice + Keyboard", imageSrc: "http://img.b2bpic.net/free-photo/surprised-young-woman-scrolling-newsfeed-via-social-media-account-having-shocked-look_343059-1944.jpg", imageAlt: "Multiple assistive technology options"
|
||||
},
|
||||
{
|
||||
id: "3", brand: "Feature", name: "Universal Usability", price: "For Everyone", rating: 5,
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
"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;
|
||||
fontWeight?: number | string;
|
||||
fill?: 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 = '',
|
||||
fontSize = 24,
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
}) => {
|
||||
const textLength = text.length;
|
||||
const charWidth = fontSize * 0.6;
|
||||
const width = charWidth * textLength + 20;
|
||||
const height = fontSize + 20;
|
||||
|
||||
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 ${width} ${height}`}
|
||||
className={className}
|
||||
width={width}
|
||||
height={height}
|
||||
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="10"
|
||||
y={fontSize + 5}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline="auto"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user