fix: buttons and links on FDLinkCards, FDQuiz blocks
This commit is contained in:
parent
38ecfce2eb
commit
f9327f8d98
@ -46,12 +46,6 @@ const colsMap: Record<string, string> = {
|
||||
'4': 'md:grid-cols-2 lg:grid-cols-4',
|
||||
}
|
||||
|
||||
const ArrowIcon: React.FC<{ className?: string }> = ({ className }) => (
|
||||
<svg className={className || 'w-4 h-4'} viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="2">
|
||||
<path d="M3 8h10M9 4l4 4-4 4" strokeLinecap="round" strokeLinejoin="round" />
|
||||
</svg>
|
||||
)
|
||||
|
||||
export const FDLinkCardsBlockComponent: React.FC<Props> = ({
|
||||
icon,
|
||||
heading,
|
||||
@ -127,7 +121,6 @@ export const FDLinkCardsBlockComponent: React.FC<Props> = ({
|
||||
/>
|
||||
)}
|
||||
<span>{card.linkLabel}</span>
|
||||
<ArrowIcon className="w-4 h-4 transition-transform group-hover:translate-x-1" />
|
||||
</div>
|
||||
</a>
|
||||
)
|
||||
|
||||
@ -8,13 +8,6 @@ import { sectionBg, isExplicitDark, headingColor, bodyColor, fdCardRadius } from
|
||||
type QuizState = 'idle' | 'active' | 'result'
|
||||
|
||||
/* ── Icons ── */
|
||||
const QuizIcon: React.FC<{ className?: string }> = ({ className }) => (
|
||||
<svg className={className || 'w-5 h-5'} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
<path d="M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3" strokeLinecap="round" strokeLinejoin="round" />
|
||||
<circle cx="12" cy="17" r=".5" fill="currentColor" />
|
||||
</svg>
|
||||
)
|
||||
|
||||
const ArrowRight: React.FC<{ className?: string }> = ({ className }) => (
|
||||
<svg className={className || 'w-4 h-4'} viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="2">
|
||||
@ -172,18 +165,10 @@ export const FDQuizBlockComponent: React.FC<Props> = ({
|
||||
{description}
|
||||
</p>
|
||||
)}
|
||||
<div className="flex items-center gap-3 mt-2">
|
||||
<QuizIcon className={`w-5 h-5 ${dark ? 'text-white/50' : 'text-fd-navy/50 dark:text-white/50'}`} />
|
||||
<button
|
||||
onClick={handleStart}
|
||||
className={`font-joey-medium text-fd-body underline underline-offset-4 transition-colors ${
|
||||
dark
|
||||
? 'text-fd-yellow hover:text-fd-yellow/80'
|
||||
: 'text-fd-navy hover:text-fd-navy/70 dark:text-fd-yellow dark:hover:text-fd-yellow/80'
|
||||
}`}
|
||||
>
|
||||
<div className="mt-2">
|
||||
<FDButton as="button" onClick={handleStart} onDark={dark}>
|
||||
{triggerLabel}
|
||||
</button>
|
||||
</FDButton>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user