CtaSection.tsx 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * CTA 区 - 渐变卡片行动号召(注册入口)
  3. */
  4. import Link from 'next/link';
  5. import { useTranslations } from 'next-intl';
  6. export function CtaSection() {
  7. const t = useTranslations('cta');
  8. return (
  9. <section className="py-[30px] pb-14">
  10. <div className="mx-auto max-w-[820px] px-6">
  11. <div
  12. className="rounded-2xl border border-[rgba(124,92,255,.4)] bg-brand-card px-9 py-[46px] text-center"
  13. style={{
  14. background:
  15. 'linear-gradient(130deg, rgba(124,92,255,.2), rgba(0,229,160,.08)), #121831',
  16. }}
  17. >
  18. <h2 className="text-[clamp(22px,3vw,30px)] font-extrabold">{t('h2')}</h2>
  19. <p className="mt-2.5 text-brand-muted">{t('p')}</p>
  20. <Link
  21. href="?auth=register"
  22. scroll={false}
  23. className="mt-6 inline-flex items-center gap-2 rounded-[10px] bg-gradient-to-br from-brand-purple to-brand-purple-d px-[18px] py-[9px] text-sm font-semibold text-white shadow-[0_4px_20px_rgba(124,92,255,.35)] transition-all hover:-translate-y-px hover:shadow-[0_6px_28px_rgba(124,92,255,.5)]"
  24. >
  25. {t('btn')}
  26. </Link>
  27. </div>
  28. </div>
  29. </section>
  30. );
  31. }