Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/student/miro/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { ArrowRight, Circle } from "lucide-react";
import { cn } from "@/lib/utils";
import confetti from "canvas-confetti";
import { AnimatedShinyText } from "@/components/ui/animated-shiny-text";
import { CheckeredFinishFlag } from "@/components/shared/checkered-finish-flag";

function EventEndAnimation({
show,
Expand Down Expand Up @@ -961,6 +962,7 @@ export default function MiroThonLandingPage() {
transition={{ duration: 0.5, ease: "easeInOut" }}
className="flex flex-col items-center gap-4"
>
<CheckeredFinishFlag />
<h1 className="text-5xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl font-black leading-[1.05] tracking-tight relative">
<AnimatedShinyText>
You've crossed the finish line
Expand Down
41 changes: 41 additions & 0 deletions components/shared/checkered-finish-flag.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
"use client";

import { motion } from "framer-motion";

export function CheckeredFinishFlag() {
return (
<motion.div
initial={{ opacity: 0, scaleX: 0.95 }}
animate={{ opacity: 1, scaleX: 1 }}
transition={{ duration: 0.6, ease: "easeOut" }}
className="relative w-full h-16 sm:h-20 md:h-24 mb-6 rounded-lg overflow-hidden drop-shadow-2xl"
style={{
backgroundImage: `
linear-gradient(45deg, #000 25%, transparent 25%),
linear-gradient(-45deg, #000 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #000 75%),
linear-gradient(-45deg, transparent 75%, #000 75%)
`,
backgroundSize: "40px 40px",
backgroundPosition: "0 0, 0 20px, 20px -20px, -20px 0px",
backgroundColor: "#ffffff",
}}
>
{/* Shine sweep - same tempo as shiny text */}
<motion.div
className="absolute inset-0 rounded-lg"
style={{
background:
"linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent)",
backgroundSize: "200% 100%",
}}
animate={{ backgroundPosition: ["200% 0", "-200% 0"] }}
transition={{
duration: 3,
ease: "linear",
repeat: Infinity,
}}
/>
</motion.div>
);
}