refactor: use css theme variables, enforce strict typing without any and remove dead Hero component

This commit is contained in:
MichalC
2026-08-31 23:14:11 +02:00
parent 0a1e74dbe4
commit c2b3e6a616
10 changed files with 50 additions and 55 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ type Props = Extract<NonNullable<Page['layout']>[0], { blockType: 'finalCta' }>
export const FinalCTABlock: React.FC<Props> = ({ title, subtitle, buttonText }) => {
return (
<section className="py-32 bg-blue-600 text-white text-center">
<section className="py-32 bg-accent text-white text-center">
<div className="container mx-auto px-4 max-w-3xl">
<motion.h2
initial={{ opacity: 0, scale: 0.95 }}
@@ -24,7 +24,7 @@ export const FinalCTABlock: React.FC<Props> = ({ title, subtitle, buttonText })
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.1 }}
className="text-xl md:text-2xl text-blue-100 mb-12"
className="text-xl md:text-2xl text-white/80 mb-12"
>
{subtitle}
</motion.p>