Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

(feat): initial design grid for advent of typescript (#1158)

bautistaaa4d9dd89986c7
diff --git a/apps/web/public/aot/25.png b/apps/web/public/aot/25.png
new file mode 100644
index 00000000..aaf6ee25
Binary files /dev/null and b/apps/web/public/aot/25.png differ
diff --git a/apps/web/public/aot/bell.png b/apps/web/public/aot/bell.png
new file mode 100644
index 00000000..57d54d8d
Binary files /dev/null and b/apps/web/public/aot/bell.png differ
diff --git a/apps/web/public/aot/candle.png b/apps/web/public/aot/candle.png
new file mode 100644
index 00000000..eee030f6
Binary files /dev/null and b/apps/web/public/aot/candle.png differ
diff --git a/apps/web/public/aot/candycane.png b/apps/web/public/aot/candycane.png
new file mode 100644
index 00000000..67b8fb5c
Binary files /dev/null and b/apps/web/public/aot/candycane.png differ
diff --git a/apps/web/public/aot/chimney.png b/apps/web/public/aot/chimney.png
new file mode 100644
index 00000000..97d9c305
Binary files /dev/null and b/apps/web/public/aot/chimney.png differ
diff --git a/apps/web/public/aot/christmas_tree.png b/apps/web/public/aot/christmas_tree.png
new file mode 100644
index 00000000..08d7cd51
Binary files /dev/null and b/apps/web/public/aot/christmas_tree.png differ
diff --git a/apps/web/public/aot/deers.png b/apps/web/public/aot/deers.png
new file mode 100644
index 00000000..8f8adb4e
Binary files /dev/null and b/apps/web/public/aot/deers.png differ
diff --git a/apps/web/public/aot/firework.png b/apps/web/public/aot/firework.png
new file mode 100644
index 00000000..f71faf6f
Binary files /dev/null and b/apps/web/public/aot/firework.png differ
diff --git a/apps/web/public/aot/gift.png b/apps/web/public/aot/gift.png
new file mode 100644
index 00000000..389bea6e
Binary files /dev/null and b/apps/web/public/aot/gift.png differ
diff --git a/apps/web/public/aot/gift2.png b/apps/web/public/aot/gift2.png
new file mode 100644
index 00000000..b30fee31
Binary files /dev/null and b/apps/web/public/aot/gift2.png differ
diff --git a/apps/web/public/aot/gingerbreadman.png b/apps/web/public/aot/gingerbreadman.png
new file mode 100644
index 00000000..b8eba123
Binary files /dev/null and b/apps/web/public/aot/gingerbreadman.png differ
diff --git a/apps/web/public/aot/gingerbreadman2.png b/apps/web/public/aot/gingerbreadman2.png
new file mode 100644
index 00000000..1afe25fd
Binary files /dev/null and b/apps/web/public/aot/gingerbreadman2.png differ
diff --git a/apps/web/public/aot/leaf.png b/apps/web/public/aot/leaf.png
new file mode 100644
index 00000000..6ace3cef
Binary files /dev/null and b/apps/web/public/aot/leaf.png differ
diff --git a/apps/web/public/aot/lollypop.png b/apps/web/public/aot/lollypop.png
new file mode 100644
index 00000000..3d809f4b
Binary files /dev/null and b/apps/web/public/aot/lollypop.png differ
diff --git a/apps/web/public/aot/ornament.png b/apps/web/public/aot/ornament.png
new file mode 100644
index 00000000..a09d2308
Binary files /dev/null and b/apps/web/public/aot/ornament.png differ
diff --git a/apps/web/public/aot/santasnowball.png b/apps/web/public/aot/santasnowball.png
new file mode 100644
index 00000000..5b50a10c
Binary files /dev/null and b/apps/web/public/aot/santasnowball.png differ
diff --git a/apps/web/public/aot/santatree.png b/apps/web/public/aot/santatree.png
new file mode 100644
index 00000000..dbac9054
Binary files /dev/null and b/apps/web/public/aot/santatree.png differ
diff --git a/apps/web/public/aot/singingcandles.png b/apps/web/public/aot/singingcandles.png
new file mode 100644
index 00000000..4e49079c
Binary files /dev/null and b/apps/web/public/aot/singingcandles.png differ
diff --git a/apps/web/public/aot/sled.png b/apps/web/public/aot/sled.png
new file mode 100644
index 00000000..66e4886c
Binary files /dev/null and b/apps/web/public/aot/sled.png differ
diff --git a/apps/web/public/aot/snowflake.png b/apps/web/public/aot/snowflake.png
new file mode 100644
index 00000000..3d38931e
Binary files /dev/null and b/apps/web/public/aot/snowflake.png differ
diff --git a/apps/web/public/aot/snowman.png b/apps/web/public/aot/snowman.png
new file mode 100644
index 00000000..8cffdcbd
Binary files /dev/null and b/apps/web/public/aot/snowman.png differ
diff --git a/apps/web/public/aot/sock.png b/apps/web/public/aot/sock.png
new file mode 100644
index 00000000..7768e03b
Binary files /dev/null and b/apps/web/public/aot/sock.png differ
diff --git a/apps/web/public/aot/star.png b/apps/web/public/aot/star.png
new file mode 100644
index 00000000..b62c775d
Binary files /dev/null and b/apps/web/public/aot/star.png differ
diff --git a/apps/web/public/aot/sunglasses.png b/apps/web/public/aot/sunglasses.png
new file mode 100644
index 00000000..aaf6d82c
Binary files /dev/null and b/apps/web/public/aot/sunglasses.png differ
diff --git a/apps/web/public/aot/twohands.png b/apps/web/public/aot/twohands.png
new file mode 100644
index 00000000..8395c781
Binary files /dev/null and b/apps/web/public/aot/twohands.png differ
diff --git a/apps/web/public/aot/wreath.png b/apps/web/public/aot/wreath.png
new file mode 100644
index 00000000..ef43f13b
Binary files /dev/null and b/apps/web/public/aot/wreath.png differ
diff --git a/apps/web/src/app/[locale]/aot-2023/_components/card-grid.tsx b/apps/web/src/app/[locale]/aot-2023/_components/card-grid.tsx
index 53eb6369..36d42248 100644
--- a/apps/web/src/app/[locale]/aot-2023/_components/card-grid.tsx
+++ b/apps/web/src/app/[locale]/aot-2023/_components/card-grid.tsx
@@ -1,30 +1,17 @@
import { prisma } from '@repo/db';
-import { ChallengeCard } from './challenge-card';
-
-const slugs = [
- 'hello-world',
- 'pick',
- 'awaited',
- 'readonly',
- 'exclude',
- 'parameters',
- 'omit',
- 'pop',
- 'trim-left',
- 'get-return-type',
- 'permutation',
- 'currying-1',
-];
+import { TiltableCard } from './tiltable-card';
+import { auth, type Session } from '@repo/auth/server';
export async function CardGrid() {
- const challenges = await getChallenges();
+ const session = await auth();
+ const challenges = await getChallenges(session);
const challengesToReveal = revealItems(challenges);
return (
<div className="container">
- <section className="w-[calc(100% + 8rem)] grid grid-cols-1 gap-4 sm:px-8 md:-mx-16 md:grid-cols-2 md:px-0 lg:mx-0 lg:w-full xl:grid-cols-3 2xl:gap-8">
+ <section className="w-[calc(100% + 8rem)] grid grid-cols-[repeat(1,240px)] justify-center gap-4 sm:px-8 md:-mx-16 md:grid-cols-[repeat(3,240px)] md:px-0 lg:mx-0 lg:w-full xl:grid-cols-[repeat(4,240px)] 2xl:gap-8">
{challengesToReveal?.map((challenge, i) => {
- return <ChallengeCard key={i} challenge={challenge} />;
+ return <TiltableCard key={challenge.id} index={i} challenge={challenge} />;
})}
</section>
</div>
@@ -32,22 +19,35 @@ export async function CardGrid() {
}
export type Challenges = NonNullable<Awaited<ReturnType<typeof getChallenges>>>;
-async function getChallenges() {
- return prisma.challenge.findMany({
- where: {
- slug: {
- in: slugs,
+async function getChallenges(session: Session | null) {
+ const challenges = await prisma.challenge.findMany({
+ take: 25,
+ include: {
+ submission: {
+ where: {
+ userId: session?.user.id ?? '',
+ isSuccessful: true,
+ },
+ select: {
+ isSuccessful: true,
+ },
+ take: 1,
},
},
});
+
+ return challenges.map((challenge) => ({
+ ...challenge,
+ hasSolved: challenge.submission.length > 0,
+ }));
}
const MS_PER_DAY = 24 * 60 * 60 * 1000;
function revealItems(items: Challenges) {
- const startDate: Date = new Date('2023-12-14');
+ const startDate: Date = new Date('2023-11-17');
const today: Date = new Date();
- const daysPassed = Math.floor((today.getTime() - startDate.getTime()) / MS_PER_DAY) - 1;
+ const daysPassed = Math.floor((today.getTime() - startDate.getTime()) / MS_PER_DAY);
return items.map((item, index) => {
const isPastOrCurrentDay = index <= daysPassed;
diff --git a/apps/web/src/app/[locale]/aot-2023/_components/challenge-card.tsx b/apps/web/src/app/[locale]/aot-2023/_components/challenge-card.tsx
deleted file mode 100644
index 48e2dca7..00000000
--- a/apps/web/src/app/[locale]/aot-2023/_components/challenge-card.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import { Card, CardContent } from '@repo/ui/components/card';
-import type { Challenges } from './card-grid';
-
-interface Prop {
- challenge: Challenges[0] & { isRevealed: boolean };
-}
-export function ChallengeCard({ challenge }: Prop) {
- return (
- <Card className="dark:group-hover:border-border relative overflow-hidden duration-300 group-hover:border-neutral-400 group-hover:shadow-xl group-focus:border-neutral-500 dark:group-hover:shadow dark:group-hover:shadow-neutral-400/70">
- <CardContent className="relative z-10 flex flex-col items-center gap-5 p-8">
- <div className="text-center font-semibold capitalize tracking-wide">{challenge.name}</div>
- <div className="text-muted-foreground line-clamp-3 text-center text-sm tracking-wide">
- something goes here maybe
- </div>
- {challenge.isRevealed ? <div>REVEALED!</div> : <div>NOT REVEALED!</div>}
- </CardContent>
- </Card>
- );
-}
diff --git a/apps/web/src/app/[locale]/aot-2023/_components/index.tsx b/apps/web/src/app/[locale]/aot-2023/_components/index.tsx
index d76a0b41..a8ead64e 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,7 @@
import { notFound } from 'next/navigation';
import { getAllFlags } from '~/utils/feature-flags';
import { CardGrid } from './card-grid';
+import Image from 'next/image';
export async function AotLandingPage() {
const featureFlags = await getAllFlags();
@@ -9,16 +10,13 @@ export async function AotLandingPage() {
return (
<div className="flex flex-col gap-5 pb-8 md:gap-10 md:py-5">
<div className="container">
- <p className="max-w-[69ch] text-lg leading-7 text-neutral-600 dark:text-white/50 sm:px-8 md:px-0">
- Amidst the{' '}
- <span className="font-semibold text-red-600 dark:text-red-400">
- 12 Days of TypeScript
- </span>
- , my coding workshop turned into a festive frenzy! Bugs were jingled away, interfaces
- decked with digital tinsel, and puzzling challenges twinkled like digital ornaments! Every
- win felt like unwrapping a virtual gift, turning those Twelve Days into a tech
- wonderland—a merry, coding celebration of joy and cheer!
- </p>
+ <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>
<CardGrid />
</div>
diff --git a/apps/web/src/app/[locale]/aot-2023/_components/tiltable-card.tsx b/apps/web/src/app/[locale]/aot-2023/_components/tiltable-card.tsx
new file mode 100644
index 00000000..d7c1dffa
--- /dev/null
+++ b/apps/web/src/app/[locale]/aot-2023/_components/tiltable-card.tsx
@@ -0,0 +1,274 @@
+'use client';
+
+import { motion } from 'framer-motion';
+import Image from 'next/image';
+import { useRouter } from 'next/navigation';
+import { useRef, useState, type MouseEvent } from 'react';
+import type { Challenges } from './card-grid';
+import clsx from 'clsx';
+
+interface Props {
+ challenge: Challenges[0] & { isRevealed: boolean };
+ index: number;
+}
+const spring = {
+ type: 'spring',
+ stiffness: 300,
+ damping: 40,
+};
+
+const IMAGES = [
+ 'gingerbreadman2',
+ 'bell',
+ 'candle',
+ 'candycane',
+ 'santatree',
+ 'gift2',
+ 'chimney',
+ 'christmas_tree',
+ 'firework',
+ 'gift',
+ 'gingerbreadman',
+ 'leaf',
+ 'lollypop',
+ 'ornament',
+ 'santasnowball',
+ 'singingcandles',
+ 'sled',
+ 'snowflake',
+ 'snowman',
+ 'sock',
+ 'star',
+ 'sunglasses',
+ 'twohands',
+ 'wreath',
+ '25',
+];
+export function TiltableCard({ index, challenge }: Props) {
+ const router = useRouter();
+ // if a day has been solved it should just be flipped
+ const [isFlipped, setIsFlipped] = useState(challenge.hasSolved);
+
+ const [rotations, setRotations] = useState({ x: 0, y: 0, z: 0 });
+ const [isAnimating, setAnimating] = useState(false);
+ const isAnimatingReference = useRef(isAnimating);
+ const [glare, setGlare] = useState({ x: 0, y: 0, opacity: 0 });
+
+ const handleClick = () => {
+ if (!challenge.isRevealed || challenge.hasSolved) return;
+ setIsFlipped((prevState) => !prevState);
+ };
+
+ const animate = (event: MouseEvent) => {
+ if (!challenge.isRevealed || challenge.hasSolved) return;
+ setAnimating(true);
+
+ const rect = event.currentTarget.getBoundingClientRect();
+
+ const absolute = {
+ x: event.clientX - rect.left,
+ y: event.clientY - rect.top,
+ };
+
+ const percent = {
+ x: round((100 / rect.width) * absolute.x),
+ y: round((100 / rect.height) * absolute.y),
+ };
+
+ const center = {
+ x: percent.x - 50,
+ y: percent.y - 50,
+ };
+
+ setRotations({
+ x: round(((center.x > 50 ? 1 : -1) * center.x) / 12),
+ y: round(center.y / 16),
+ z: round(distance(percent.x, percent.y, 50, 50) / 20),
+ });
+
+ setGlare({
+ x: percent.x,
+ y: percent.y,
+ opacity: 0.25,
+ });
+ };
+
+ const stopAnimating = () => {
+ if (!challenge.isRevealed) return;
+ setAnimating(false);
+
+ setTimeout(() => {
+ if (isAnimatingReference.current) return;
+
+ setRotations({ x: 0, y: 0, z: 2 });
+ setGlare({ x: 50, y: 50, opacity: 0 });
+ }, 100);
+ };
+
+ return (
+ <motion.div
+ onClick={handleClick}
+ transition={spring}
+ style={{
+ height: '320px',
+ perspective: '1200px',
+ transformStyle: 'preserve-3d',
+ position: 'relative',
+ }}
+ >
+ <motion.div
+ animate={{ rotateY: isFlipped ? -180 : 0 }}
+ transition={spring}
+ style={{
+ width: '100%',
+ height: '100%',
+ zIndex: isFlipped ? 0 : 1,
+ backfaceVisibility: 'hidden',
+ position: 'absolute',
+ }}
+ >
+ <motion.div
+ onMouseMove={animate}
+ onMouseLeave={stopAnimating}
+ animate={{
+ rotateY: rotations.x,
+ rotateX: rotations.y,
+ transformPerspective: rotations.z * 100,
+ }}
+ style={{
+ height: '320px',
+ backgroundColor: challenge.hasSolved ? '#175f2c' : '#761111',
+ ...(!challenge.isRevealed ? { filter: 'grayscale(100%)' } : {}),
+ borderRadius: '0.5rem',
+ boxShadow:
+ '0 0 0 1px rgba(0, 0, 0, 0.105), 0 9px 20px 0 rgba(0, 0, 0, 0.02), 0 1px 2px 0 rgba(0, 0, 0, 0.106)',
+ display: 'flex',
+ alignItems: 'center',
+ position: 'relative',
+ justifyContent: 'center',
+ transformStyle: 'preserve-3d',
+ transformOrigin: 'center',
+ perspective: '320px',
+ }}
+ >
+ <motion.div
+ style={{
+ zIndex: 2,
+ mixBlendMode: 'overlay',
+ position: 'absolute',
+ transform: 'translateZ(1px)',
+ width: '100%',
+ height: '100%',
+ borderRadius: '0.5rem',
+ transformStyle: 'preserve-3d',
+ }}
+ animate={{
+ background: `radial-gradient(
+ farthest-corner circle at ${glare.x}% ${glare.y}%,
+ rgba(255, 255, 255, 0.7) 10%,
+ rgba(255, 255, 255, 0.5) 24%,
+ rgba(0, 0, 0, 0.8) 82%
+ )`,
+ opacity: glare.opacity,
+ }}
+ />
+ <Image
+ src={`/aot/${IMAGES[index]}.png`}
+ width={100}
+ height={100}
+ alt=""
+ className={clsx(!challenge.isRevealed && 'opacity-50')}
+ />
+ <p
+ className={clsx(
+ 'absolute bottom-4 right-4 text-xl font-bold text-white',
+ !challenge.isRevealed && 'opacity-50',
+ )}
+ >
+ {index + 1}
+ </p>
+ </motion.div>
+ </motion.div>
+ <motion.div
+ onClick={(e) => {
+ e.stopPropagation();
+ router.push(`/challenge/${challenge.slug}`);
+ }}
+ initial={{ rotateY: 180 }}
+ animate={{ rotateY: isFlipped ? 0 : 180 }}
+ transition={spring}
+ style={{
+ width: '100%',
+ height: '100%',
+ zIndex: isFlipped ? 1 : 0,
+ backfaceVisibility: 'hidden',
+ position: 'absolute',
+ cursor: 'pointer',
+ }}
+ >
+ <motion.div
+ className="aot-card"
+ onMouseMove={animate}
+ onMouseLeave={stopAnimating}
+ animate={{
+ rotateY: rotations.x,
+ rotateX: rotations.y,
+ transformPerspective: rotations.z * 100,
+ }}
+ style={{
+ height: '320px',
+ backgroundColor: challenge.hasSolved ? '#175f2c' : '#761111',
+ borderRadius: '0.5rem',
+ boxShadow:
+ '0 0 0 1px rgba(0, 0, 0, 0.105), 0 9px 20px 0 rgba(0, 0, 0, 0.02), 0 1px 2px 0 rgba(0, 0, 0, 0.106)',
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'center',
+ position: 'relative',
+ justifyContent: 'center',
+ transformStyle: 'preserve-3d',
+ transformOrigin: 'center',
+ perspective: '320px',
+ overflow: 'hidden',
+ }}
+ >
+ <motion.div
+ style={{
+ zIndex: 2,
+ mixBlendMode: 'overlay',
+ position: 'absolute',
+ transform: 'translateZ(1px)',
+ width: '100%',
+ height: '100%',
+ borderRadius: '0.5rem',
+ transformStyle: 'preserve-3d',
+ }}
+ animate={{
+ background: `radial-gradient(
+ farthest-corner circle at ${glare.x}% ${glare.y}%,
+ rgba(255, 255, 255, 0.7) 10%,
+ rgba(255, 255, 255, 0.5) 24%,
+ rgba(0, 0, 0, 0.8) 82%
+ )`,
+ opacity: glare.opacity,
+ }}
+ />
+ {Boolean(challenge.hasSolved) && (
+ <div className="absolute left-[-46px] top-[12px] w-[170px] -rotate-45 transform bg-gradient-to-r from-yellow-400 to-yellow-100 py-1 font-semibold text-black drop-shadow-md">
+ <span className="ml-12">Solved</span>
+ </div>
+ )}
+ <p className="text-xl font-bold text-white">{challenge.name}</p>
+ </motion.div>
+ </motion.div>
+ </motion.div>
+ );
+}
+
+export function round(num: number, fix = 2) {
+ return parseFloat(num.toFixed(fix));
+}
+
+export function distance(x1: number, y1: number, x2: number, y2: number) {
+ return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
+}
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index 586b6e8c..e0eacb6c 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -696,3 +696,20 @@ a {
filter: hue-rotate(720deg) brightness(200%);
}
}
+
+.aot-card::before {
+ content: '';
+ display: block;
+ position: absolute;
+ top: -7px;
+ left: -3px;
+ right: 0;
+ height: 23px;
+ background:
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAXCAYAAACS5bYWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABFpJREFUeNrUV0tIo1cUvpkYjQ4xxSA6DxuNqG0dtaUKOgs3s6i0dFd3pSsXdjeIixakiGA34sZuXCkoONLFwJTK4GMYLYXg29gatTpiXurkbd7vv9/5ub+IxuhA7eiFQ5Kbc8/57ne/e87/ywRBYLdl3GG3aNwqsLJ0k0tLS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