Connect, collaborate, and grow with a community of TypeScript developers
feat: adds boot promo (#1740)
bautistaaacdc75c33bdc5
diff --git a/apps/web/public/boot-logo.png b/apps/web/public/boot-logo.pngnew file mode 100644index 00000000..af4dd6e5Binary files /dev/null and b/apps/web/public/boot-logo.png differdiff --git a/apps/web/src/app/_components/boot-promo.tsx b/apps/web/src/app/_components/boot-promo.tsxnew file mode 100644index 00000000..18397c6f--- /dev/null+++ b/apps/web/src/app/_components/boot-promo.tsx@@ -0,0 +1,26 @@+import { cn } from '@repo/ui/cn';+import Image from 'next/image';+import Link from 'next/link';++export function BootPromo({ className }: { className?: string }) {+ return (+ <div className={cn('flex flex-col items-center gap-2', className)}>+ <Link+ href="https://www.boot.dev/tracks/backend-python-typescript"+ target="_blank"+ rel="noopener noreferrer"+ >+ <Image+ src="/boot-logo.png"+ alt="Boot.dev Logo"+ width={300}+ height={30}+ className="object-contain"+ />+ </Link>+ <p className="text-muted-foreground text-sm font-medium">+ Learn Backend Development in TypeScript+ </p>+ </div>+ );+}diff --git a/apps/web/src/app/challenge/[slug]/submissions/[[...catchAll]]/_components/overview.tsx b/apps/web/src/app/challenge/[slug]/submissions/[[...catchAll]]/_components/overview.tsxindex 278bf900..dfef83d0 100644--- a/apps/web/src/app/challenge/[slug]/submissions/[[...catchAll]]/_components/overview.tsx+++ b/apps/web/src/app/challenge/[slug]/submissions/[[...catchAll]]/_components/overview.tsx@@ -16,6 +16,7 @@ import {} from '@repo/ui/components/dialog';import { Tooltip, TooltipContent, TooltipTrigger } from '@repo/ui/components/tooltip';import { ShareUrl } from '~/components/share-url';+import { BootPromo } from '~/app/_components/boot-promo';interface SubmissionOverviewProps {submissionId: string;@@ -97,7 +98,7 @@ export function SubmissionOverview({ submissionId, userId }: SubmissionOverviewP<div className="mb-3 px-3"><Markdown>{code}</Markdown></div>- <div className="mb-3 flex gap-2 px-3">+ <div className="mb-9 flex gap-2 px-3"><Dialog><DialogTrigger asChild><Tooltip>@@ -139,6 +140,9 @@ export function SubmissionOverview({ submissionId, userId }: SubmissionOverviewP</a></Button></div>+ <div>+ <BootPromo />+ </div></div></>);diff --git a/apps/web/src/app/explore/_components/index.tsx b/apps/web/src/app/explore/_components/index.tsxindex 1ad82474..1ca15359 100644--- a/apps/web/src/app/explore/_components/index.tsx+++ b/apps/web/src/app/explore/_components/index.tsx@@ -2,50 +2,51 @@ import { Suspense } from 'react';import { Footsies } from '~/components/footsies';import { ExploreSection } from './explore-section';import { ExploreSectionSkeleton } from './explore-section-skeleton';+import { BootPromo } from '../../_components/boot-promo';export const dynamic = 'force-dynamic';export function Explore() {return (<>- <div className="flex flex-col gap-8 py-8 md:gap-10">+ <div className="flex flex-col py-8"><div className="container text-center"><h1 className="mb-8 text-4xl font-bold tracking-tight text-neutral-900 dark:text-white">Explore</h1>- <p className="mx-auto max-w-[69ch] text-lg leading-10 text-neutral-600 dark:text-white/50">- Explore the challenges. Embrace the opportunity to grow, learn, and showcase your- programming abilities. We hope you find the{' '}- <span className="font-semibold dark:text-neutral-200">perfect</span> challenge!- </p></div>- <Suspense fallback={<ExploreSectionSkeleton />}>- <ExploreSection- title="Great for Beginners"- tag="BEGINNER"- redirectRoute="/explore/beginner"- />- </Suspense>- <Suspense fallback={<ExploreSectionSkeleton />}>- <ExploreSection title="Great for Learners" tag="EASY" redirectRoute="/explore/easy" />- </Suspense>- <Suspense fallback={<ExploreSectionSkeleton />}>- <ExploreSection- title="Great for Enthusiasts"- tag="MEDIUM"- redirectRoute="/explore/medium"- />- </Suspense>- <Suspense fallback={<ExploreSectionSkeleton />}>- <ExploreSection title="Great for Experts" tag="HARD" redirectRoute="/explore/hard" />- </Suspense>- <Suspense fallback={<ExploreSectionSkeleton />}>- <ExploreSection- title="Great for Masters"- tag="EXTREME"- redirectRoute="/explore/extreme"- />- </Suspense>+ <div className="container flex items-center justify-center">+ <BootPromo />+ </div>+ <div className="flex flex-col gap-8 py-8">+ <Suspense fallback={<ExploreSectionSkeleton />}>+ <ExploreSection+ title="Great for Beginners"+ tag="BEGINNER"+ redirectRoute="/explore/beginner"+ />+ </Suspense>+ <Suspense fallback={<ExploreSectionSkeleton />}>+ <ExploreSection title="Great for Learners" tag="EASY" redirectRoute="/explore/easy" />+ </Suspense>+ <Suspense fallback={<ExploreSectionSkeleton />}>+ <ExploreSection+ title="Great for Enthusiasts"+ tag="MEDIUM"+ redirectRoute="/explore/medium"+ />+ </Suspense>+ <Suspense fallback={<ExploreSectionSkeleton />}>+ <ExploreSection title="Great for Experts" tag="HARD" redirectRoute="/explore/hard" />+ </Suspense>+ <Suspense fallback={<ExploreSectionSkeleton />}>+ <ExploreSection+ title="Great for Masters"+ tag="EXTREME"+ redirectRoute="/explore/extreme"+ />+ </Suspense>+ </div></div><Footsies /></>