- Add React 18 + Vite + Typescript application architecture with basename /birthday - Implement invitation experience with golden bokeh particle canvas adn countdown timer - Build Colombian phone validated RSVP flow with optimistic submission state machine - Add Authelia-protected admin dashboard with live RSVP table and configuration editor - Embed self-hosted display and Montserrat fonts without external CDN dependencies - Include self-contained Biome linter configuration with parent VCS root resolution - Update project roadmap reflecting completion of phases 2, 3 and 4
67 lines
1.7 KiB
TypeScript
67 lines
1.7 KiB
TypeScript
interface RsvpCtaProps {
|
|
label: string;
|
|
onClick: () => void;
|
|
}
|
|
|
|
export function RsvpCta({ label, onClick }: RsvpCtaProps) {
|
|
return (
|
|
<button
|
|
type="button"
|
|
onClick={onClick}
|
|
style={{
|
|
display: "inline-flex",
|
|
flexDirection: "column",
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
background: "none",
|
|
border: "none",
|
|
color: "var(--color-gold-light)",
|
|
cursor: "pointer",
|
|
padding: "0.8rem 1.4rem",
|
|
borderRadius: "8px",
|
|
outline: "none",
|
|
transition: "all 0.25s ease",
|
|
}}
|
|
onFocus={(e) => {
|
|
e.currentTarget.style.boxShadow = "0 0 0 2px var(--color-gold-border-focus)";
|
|
}}
|
|
onBlur={(e) => {
|
|
e.currentTarget.style.boxShadow = "none";
|
|
}}
|
|
aria-label={`${label} — Desplazarse al formulario de confirmación`}
|
|
>
|
|
<span
|
|
style={{
|
|
fontSize: "0.75rem",
|
|
fontWeight: 600,
|
|
letterSpacing: "0.26em",
|
|
textTransform: "uppercase",
|
|
marginBottom: "0.5rem",
|
|
transition: "letter-spacing 0.2s ease, color 0.2s ease",
|
|
}}
|
|
>
|
|
{label}
|
|
</span>
|
|
<span
|
|
style={{
|
|
fontSize: "1.2rem",
|
|
lineHeight: 1,
|
|
animation: "bounceSoft 2s infinite ease-in-out",
|
|
}}
|
|
aria-hidden="true"
|
|
>
|
|
↓
|
|
</span>
|
|
<style>{`
|
|
@keyframes bounceSoft {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(5px); }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
span { animation: none !important; }
|
|
}
|
|
`}</style>
|
|
</button>
|
|
);
|
|
}
|