Connect, collaborate, and grow with a community of TypeScript developers
feat: add copy for aot event
bautistaaad274397c9091
diff --git a/apps/web/src/app/[locale]/aot-2023/_components/about.tsx b/apps/web/src/app/[locale]/aot-2023/_components/about.tsxnew file mode 100644index 00000000..e8714f62--- /dev/null+++ b/apps/web/src/app/[locale]/aot-2023/_components/about.tsx@@ -0,0 +1,95 @@+'use client';++import { Button } from '@repo/ui/components/button';+import {+ Sheet,+ SheetContent,+ SheetHeader,+ SheetTitle,+ SheetTrigger,+} from '@repo/ui/components/sheet';+import { BadgeInfo } from '@repo/ui/icons';++export function About() {+ return (+ <Sheet>+ <SheetTrigger asChild>+ <Button+ asChild+ className="flex cursor-pointer items-center gap-2 rounded-xl border-2 px-4 py-2 dark:text-white"+ variant="outline"+ >+ <span>+ <BadgeInfo className="h-4 w-4" />+ About+ </span>+ </Button>+ </SheetTrigger>+ <SheetContent+ className="flex w-full flex-col gap-8 overflow-y-scroll sm:max-w-[400px] md:max-w-[700px]"+ side="right"+ >+ <SheetHeader>+ <SheetTitle>+ <h2 className="text-4xl font-semibold tracking-tighter">About</h2>+ </SheetTitle>+ </SheetHeader>+ <div className="flex flex-col gap-5 text-lg tracking-tight">+ <p>+ The TypeHero team wants to thank you for taking part in our first Advent of TypeScript.+ We hope you find the challenges interesting and pick up something new as you go! If you+ like what you see, consider sharing the event with your friends. And if you have any+ questions, feel free to reach out to us on Discord or GitHub.+ </p>+ <h3 className="text-2xl font-semibold tracking-tighter">Tips</h3>+ <p>+ <span className="font-bold text-red-600">1.</span> You might find using the{' '}+ <a+ href="https://www.typescriptlang.org/play"+ className="font-bold underline"+ target="_blank"+ rel="noreferrer noopener"+ >+ TypeScript Playground+ </a>{' '}+ preferred over our editor(at least for now 🤐). Just copy the code from the test+ section, start coding, and when you nail it, pop your code (except the tests) back into+ our editor.+ </p>+ <p>+ <span className="font-bold text-red-600">2.</span> The test cases are your friends!+ They’ll guide you through what we’re asking for. When things get trickier, these cases+ will be your trusty helpers.+ </p>+ <p>+ <span className="font-bold text-red-600">3.</span> There’s a channel in our{' '}+ <a+ target="_blank"+ rel="noreferrer"+ href="https://discord.com/invite/KPNUNQRB"+ className="font-bold text-[#5865F2] underline"+ >+ discord+ </a>{' '}+ just for chewing over these challenges. Jump in, chat, and share your thoughts on+ solutions. We highly recommend it!+ </p>+ <p>+ <span className="font-bold text-red-600">4.</span> Remember, it’s all about having fun!+ These challenges are meant to tease your brain. They’ll ramp up real quick 🙈. Don’t+ sweat it if a challenge feels tough. We’ll drop the solutions on our{' '}+ <a+ target="_blank"+ rel="noreferrer"+ href="https://github.com/typehero/typehero"+ className="font-bold underline"+ >+ Github+ </a>{' '}+ after the event, so be sure to give it a star!+ </p>+ </div>+ </SheetContent>+ </Sheet>+ );+}diff --git a/apps/web/src/app/[locale]/aot-2023/_components/index.tsx b/apps/web/src/app/[locale]/aot-2023/_components/index.tsxindex ce1f261a..9664c937 100644--- a/apps/web/src/app/[locale]/aot-2023/_components/index.tsx+++ b/apps/web/src/app/[locale]/aot-2023/_components/index.tsx@@ -1,6 +1,9 @@import { notFound } from 'next/navigation';import { getAllFlags } from '~/utils/feature-flags';+import { About } from './about';import { CardGrid } from './card-grid';+import { Github, Sparkle } from '@repo/ui/icons';+import { Button } from '@repo/ui/components/button';export async function AotLandingPage() {const featureFlags = await getAllFlags();@@ -12,10 +15,48 @@ export async function AotLandingPage() {<h1 className="mb-10 text-center text-4xl font-bold tracking-tighter text-black dark:text-white sm:text-8xl"><span>Advent</span> of <span className="text-red-600">TypeScript</span></h1>- {/* <div className="flex items-center justify-center gap-10"> */}- {/* <Image src="/aot/deers.png" alt="Deers" height={150} width={130} /> */}- {/* <p className="text-xl font-semibold tracking-tight">asdasdasd</p> */}- {/* </div> */}+ <div className="flex flex-col items-center justify-center gap-5">+ <p className="text-xl font-semibold">+ The first type challenge will unlock at{' '}+ <span className="text-primary">midnight(est)</span> on December 1st+ </p>+ <div className="flex items-center justify-center gap-5">+ <a+ target="_blank"+ rel="noreferrer"+ href="https://discord.com/invite/KPNUNQRB"+ className="group mx-auto flex items-center gap-2 rounded-xl bg-[#5865F2] px-3 py-2 text-sm font-bold text-white duration-300 dark:bg-[#5865F2]"+ >+ <svg+ className="h-4 w-4 fill-current group-hover:rotate-[360deg]"+ role="img"+ style={{ transition: 'color 0s, transform 0.3s' }}+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ >+ <title>Discord</title>+ <path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" />+ </svg>+ Join the Discord+ </a>+ <About />+ <Button+ asChild+ className="flex items-center gap-2 rounded-xl border-2 px-4 py-2 dark:text-white"+ variant="outline"+ >+ <a+ target="_blank"+ rel="noreferrer"+ className="gap-1 md:inline-flex"+ href="https://github.com/typehero/typehero"+ >+ <Github className="h-4 w-4" />+ Star us on GitHub+ </a>+ </Button>+ </div>+ </div></div><CardGrid /></div>