9 Commits

2 changed files with 19 additions and 14 deletions

View File

@@ -10,15 +10,15 @@
--accent: #ffffff;
--background-accent: #ffffff; */
--background: #f0f9ff;
--card: #e0f2fe;
--foreground: #0c2d4d;
--primary-cta: #0284c7;
--background: #e8f1f5;
--card: #d9e8f0;
--foreground: #1a3a4d;
--primary-cta: #8b6f47;
--primary-cta-text: #ffffff;
--secondary-cta: #ffffff;
--secondary-cta: #d4e5ed;
--secondary-cta-text: #000f06e6;
--accent: #a5d8ff;
--background-accent: #7ec8f5;
--accent: #a8c5d6;
--background-accent: #6b4423;
/* text sizing - set by ThemeProvider */
/* --text-2xs: clamp(0.465rem, 0.62vw, 0.62rem);

View File

@@ -3,23 +3,28 @@ import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
textClassName?: string;
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'mathematical';
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = '' }) => {
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
textClassName = '',
dominantBaseline = 'middle'
}) => {
return (
<svg
viewBox="0 0 200 50"
className={className}
viewBox="0 0 200 60"
className={`w-auto h-8 ${className}`}
xmlns="http://www.w3.org/2000/svg"
>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
fontSize="24"
fontWeight="bold"
fill="currentColor"
dominantBaseline={dominantBaseline}
className={`text-lg font-bold fill-current ${textClassName}`}
>
{text}
</text>