Skip to content

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

Moar feature cards (#369)

PickleNikf62940990d9f
diff --git a/apps/web/src/assets/images/feature_card_challenge_dark.png b/apps/web/src/assets/images/feature_card_challenge_dark.png
deleted file mode 100644
index 30918c44..00000000
Binary files a/apps/web/src/assets/images/feature_card_challenge_dark.png and /dev/null differ
diff --git a/apps/web/src/assets/images/feature_card_challenge_dark1.png b/apps/web/src/assets/images/feature_card_challenge_dark1.png
new file mode 100644
index 00000000..a884549f
Binary files /dev/null and b/apps/web/src/assets/images/feature_card_challenge_dark1.png differ
diff --git a/apps/web/src/assets/images/feature_card_challenge_dark2.png b/apps/web/src/assets/images/feature_card_challenge_dark2.png
new file mode 100644
index 00000000..ec99513c
Binary files /dev/null and b/apps/web/src/assets/images/feature_card_challenge_dark2.png differ
diff --git a/apps/web/src/assets/images/feature_card_challenge_light.png b/apps/web/src/assets/images/feature_card_challenge_light.png
deleted file mode 100644
index 0addbc95..00000000
Binary files a/apps/web/src/assets/images/feature_card_challenge_light.png and /dev/null differ
diff --git a/apps/web/src/assets/images/feature_card_challenge_light1.png b/apps/web/src/assets/images/feature_card_challenge_light1.png
new file mode 100644
index 00000000..6ec9c06c
Binary files /dev/null and b/apps/web/src/assets/images/feature_card_challenge_light1.png differ
diff --git a/apps/web/src/assets/images/feature_card_challenge_light2.png b/apps/web/src/assets/images/feature_card_challenge_light2.png
new file mode 100644
index 00000000..f2ac061c
Binary files /dev/null and b/apps/web/src/assets/images/feature_card_challenge_light2.png differ
diff --git a/apps/web/src/assets/images/feature_card_create_dark1.png b/apps/web/src/assets/images/feature_card_create_dark1.png
new file mode 100644
index 00000000..3389fc74
Binary files /dev/null and b/apps/web/src/assets/images/feature_card_create_dark1.png differ
diff --git a/apps/web/src/assets/images/feature_card_create_dark2.png b/apps/web/src/assets/images/feature_card_create_dark2.png
new file mode 100644
index 00000000..7b00e7a9
Binary files /dev/null and b/apps/web/src/assets/images/feature_card_create_dark2.png differ
diff --git a/apps/web/src/assets/images/feature_card_create_light1.png b/apps/web/src/assets/images/feature_card_create_light1.png
new file mode 100644
index 00000000..4ad22af3
Binary files /dev/null and b/apps/web/src/assets/images/feature_card_create_light1.png differ
diff --git a/apps/web/src/assets/images/feature_card_create_light2.png b/apps/web/src/assets/images/feature_card_create_light2.png
new file mode 100644
index 00000000..6205a9db
Binary files /dev/null and b/apps/web/src/assets/images/feature_card_create_light2.png differ
diff --git a/apps/web/src/components/explore/explore-card.tsx b/apps/web/src/components/explore/explore-card.tsx
index dac3099b..49db2ed3 100644
--- a/apps/web/src/components/explore/explore-card.tsx
+++ b/apps/web/src/components/explore/explore-card.tsx
@@ -52,7 +52,7 @@ const GRADIENTS_BY_DIFFICULTY = {
export function ExploreCard({ challenge }: ExploreCardProps) {
return (
<Card
- className={`group relative overflow-hidden duration-300 sm:min-w-[300px] xl:min-w-[333px]
+ className={`group/card relative overflow-hidden duration-300 sm:min-w-[300px] xl:min-w-[333px]
${GRADIENTS_BY_DIFFICULTY[challenge.difficulty]}
${SHADOWS_BY_DIFFICULTY[challenge.difficulty]}
${BORDERS_BY_DIFFICULTY[challenge.difficulty]}
@@ -60,39 +60,39 @@ export function ExploreCard({ challenge }: ExploreCardProps) {
>
{challenge.difficulty === 'BEGINNER' && (
<>
- <Circle className="absolute -right-4 -top-8 h-24 w-24 origin-top-right stroke-1 text-white/30 duration-300 group-hover:scale-90 dark:group-hover:text-black/30" />
- <Circle className="absolute -right-4 -top-8 h-32 w-32 origin-top-right stroke-1 text-white/30 duration-500 group-hover:scale-90 dark:group-hover:text-black/30" />
+ <Circle className="absolute -right-4 -top-8 h-24 w-24 origin-top-right stroke-1 text-white/30 duration-300 group-hover/card:scale-90 dark:group-hover/card:text-black/30" />
+ <Circle className="absolute -right-4 -top-8 h-32 w-32 origin-top-right stroke-1 text-white/30 duration-500 group-hover/card:scale-90 dark:group-hover/card:text-black/30" />
</>
)}
{challenge.difficulty === 'EASY' && (
<>
- <Diamond className="absolute -right-5 -top-10 h-24 w-24 origin-top-right stroke-1 text-white/30 duration-300 group-hover:rotate-6 group-hover:scale-90 dark:group-hover:text-black/30" />
- <Diamond className="absolute -right-6 -top-12 h-36 w-36 rotate-12 stroke-[0.75] text-white/30 duration-300 group-hover:-translate-y-2 group-hover:translate-x-3 group-hover:rotate-6 group-hover:scale-90 dark:group-hover:text-black/30" />
+ <Diamond className="absolute -right-5 -top-10 h-24 w-24 origin-top-right stroke-1 text-white/30 duration-300 group-hover/card:rotate-6 group-hover/card:scale-90 dark:group-hover/card:text-black/30" />
+ <Diamond className="absolute -right-6 -top-12 h-36 w-36 rotate-12 stroke-[0.75] text-white/30 duration-300 group-hover/card:-translate-y-2 group-hover/card:translate-x-3 group-hover/card:rotate-6 group-hover/card:scale-90 dark:group-hover/card:text-black/30" />
</>
)}
{challenge.difficulty === 'MEDIUM' && (
<>
- <Triangle className="absolute -right-5 -top-5 h-16 w-16 rotate-0 stroke-2 text-white/50 duration-500 group-hover:-translate-x-10 group-hover:translate-y-10 group-hover:rotate-[90deg] dark:group-hover:text-black/30" />
- <Triangle className="absolute -right-14 -top-16 h-36 w-36 rotate-0 stroke-1 text-white/50 duration-300 group-hover:translate-x-3 group-hover:rotate-[30deg] group-hover:scale-50 group-hover:stroke-2 dark:group-hover:text-black/30" />
+ <Triangle className="absolute -right-5 -top-5 h-16 w-16 rotate-0 stroke-2 text-white/50 duration-500 group-hover/card:-translate-x-10 group-hover/card:translate-y-10 group-hover/card:rotate-[90deg] dark:group-hover/card:text-black/30" />
+ <Triangle className="absolute -right-14 -top-16 h-36 w-36 rotate-0 stroke-1 text-white/50 duration-300 group-hover/card:translate-x-3 group-hover/card:rotate-[30deg] group-hover/card:scale-50 group-hover/card:stroke-2 dark:group-hover/card:text-black/30" />
</>
)}
{challenge.difficulty === 'HARD' && (
<>
- <Plus className="absolute -right-4 -top-8 h-24 w-24 stroke-1 text-white/30 duration-300 group-hover:scale-0 dark:group-hover:text-black/30" />
- <Plus className="absolute -right-4 -top-8 h-32 w-32 stroke-1 text-white/30 duration-500 group-hover:-translate-y-5 group-hover:translate-x-5 group-hover:-rotate-90 group-hover:scale-75 dark:group-hover:text-black/30" />
+ <Plus className="absolute -right-4 -top-8 h-24 w-24 stroke-1 text-white/30 duration-300 group-hover/card:scale-0 dark:group-hover/card:text-black/30" />
+ <Plus className="absolute -right-4 -top-8 h-32 w-32 stroke-1 text-white/30 duration-500 group-hover/card:-translate-y-5 group-hover/card:translate-x-5 group-hover/card:-rotate-90 group-hover/card:scale-75 dark:group-hover/card:text-black/30" />
</>
)}
{challenge.difficulty === 'EXTREME' && (
<>
- <Sparkle className="absolute -right-4 -top-10 h-24 w-24 stroke-1 text-white/40 duration-500 group-hover:-translate-x-4 group-hover:translate-y-10 group-hover:-rotate-[125deg] dark:group-hover:text-black/30" />
- <Sparkle className="absolute -right-12 -top-20 h-48 w-48 origin-top-right stroke-1 text-white/40 duration-300 group-hover:scale-50 dark:group-hover:text-black/30" />
+ <Sparkle className="absolute -right-4 -top-10 h-24 w-24 stroke-1 text-white/40 duration-500 group-hover/card:-translate-x-4 group-hover/card:translate-y-10 group-hover/card:-rotate-[125deg] dark:group-hover/card:text-black/30" />
+ <Sparkle className="absolute -right-12 -top-20 h-48 w-48 origin-top-right stroke-1 text-white/40 duration-300 group-hover/card:scale-50 dark:group-hover/card:text-black/30" />
</>
)}
<CardHeader className="relative flex flex-col items-start gap-1 py-5">
- <CardTitle className="max-w-[75%] truncate text-2xl text-white duration-300 dark:text-white dark:group-hover:text-black/70">
+ <CardTitle className="max-w-[75%] truncate text-2xl text-white duration-300 dark:text-white dark:group-hover/card:text-black/70">
{challenge.name}
</CardTitle>
- <div className="flex items-center gap-6 text-center text-white duration-300 dark:group-hover:text-black">
+ <div className="flex items-center gap-6 text-center text-white duration-300 dark:group-hover/card:text-black">
<DifficultyBadge difficulty={challenge.difficulty} />
<div className="flex items-center gap-2 text-sm">
<MessageCircle size={18} />
@@ -104,7 +104,7 @@ export function ExploreCard({ challenge }: ExploreCardProps) {
</div>
</div>
</CardHeader>
- <CardContent className="bg-background group-hover:bg-card-hovered relative flex flex-col justify-between gap-2 rounded-xl p-6 pb-0 duration-300">
+ <CardContent className="bg-background group-hover/card:bg-card-hovered relative flex flex-col justify-between gap-2 rounded-xl p-6 pb-0 duration-300">
<div className="flex items-center gap-2">
<div className="-ml-[0.33rem] flex h-auto w-fit items-center whitespace-nowrap rounded-full bg-transparent py-1 pl-[0.33rem] pr-2 text-xs font-bold text-neutral-700 duration-300 hover:bg-black/10 dark:text-white dark:hover:bg-white/20">
@{challenge.user.name}
@@ -114,7 +114,7 @@ export function ExploreCard({ challenge }: ExploreCardProps) {
</div>
</div>
<CardDescription className="relative h-20 overflow-hidden pb-4">
- <div className="pointer-events-none absolute inset-0 h-full w-full shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card))] duration-300 group-hover:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))] group-focus:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))]" />
+ <div className="pointer-events-none absolute inset-0 h-full w-full shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card))] duration-300 group-hover/card:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))] group-focus:shadow-[inset_0_-1.5rem_1rem_-0.5rem_hsl(var(--card-hovered))]" />
{challenge.shortDescription}
</CardDescription>
</CardContent>
diff --git a/apps/web/src/components/explore/index.tsx b/apps/web/src/components/explore/index.tsx
index 77df2b6e..7f1570e9 100644
--- a/apps/web/src/components/explore/index.tsx
+++ b/apps/web/src/components/explore/index.tsx
@@ -16,14 +16,14 @@ export async function Explore() {
</p>
<Suspense fallback={<ExploreSectionSkeleton />}>
<ExploreSection
- title="Most Popular"
+ title="πŸ’• Most Popular"
fetcher={getChallengesByTagOrDifficulty}
moreRoute="POPULAR"
/>
</Suspense>
<Suspense fallback={<ExploreSectionSkeleton />}>
<ExploreSection
- title="Newest"
+ title="πŸ”₯ Newest"
fetcher={getChallengesByTagOrDifficulty}
moreRoute="NEWEST"
/>
diff --git a/apps/web/src/components/explore/section.tsx b/apps/web/src/components/explore/section.tsx
index 5de81a18..86f57285 100644
--- a/apps/web/src/components/explore/section.tsx
+++ b/apps/web/src/components/explore/section.tsx
@@ -16,6 +16,9 @@ interface Props {
}
const COLORS_BY_DIFFICULTY = {
+ POPULAR:
+ 'bg-gradient-to-r from-50% from-zinc-100 to-zinc-100 dark:from-zinc-900 dark:to-zinc-900',
+ NEWEST: 'bg-gradient-to-r from-50% from-zinc-100 to-zinc-100 dark:from-zinc-900 dark:to-zinc-900',
BEGINNER: 'bg-gradient-to-r from-50% from-pink-600/10 dark:from-pink-500/10',
EASY: 'bg-gradient-to-r from-50% from-green-600/10 dark:from-green-500/10',
MEDIUM: 'bg-gradient-to-r from-50% from-yellow-600/10 dark:from-yellow-500/10',
@@ -24,6 +27,8 @@ const COLORS_BY_DIFFICULTY = {
};
const TITLES_BY_DIFFICULTY = {
+ POPULAR: 'bg-gradient-to-r from-indigo-400 via-blue-400 to-cyan-400',
+ NEWEST: 'bg-gradient-to-r from-yellow-500 via-orange-500 to-red-500',
BEGINNER: 'bg-gradient-to-r from-pink-500 to-pink-500 dark:from-pink-500 dark:to-pink-200',
EASY: 'bg-gradient-to-r from-green-500 to-green-500 dark:from-green-500 dark:to-green-200',
MEDIUM: 'bg-gradient-to-r from-yellow-500 to-yellow-600 dark:from-yellow-500 dark:to-yellow-200',
@@ -35,9 +40,7 @@ export async function ExploreSection({ title, fetcher, moreRoute }: Props) {
const challenges = await fetcher(moreRoute.trim().toUpperCase(), 6);
return (
<section
- className={`relative flex w-full flex-col overflow-hidden rounded-[2.5rem] ${
- COLORS_BY_DIFFICULTY[challenges[0]?.difficulty || 'BEGINNER']
- }`}
+ className={`relative flex w-full flex-col overflow-hidden rounded-[2.5rem] ${COLORS_BY_DIFFICULTY[moreRoute]}`}
>
{challenges[0]?.difficulty === 'EASY' && (
<>
@@ -63,9 +66,7 @@ export async function ExploreSection({ title, fetcher, moreRoute }: Props) {
<div className="flex items-center justify-between gap-3 p-5 pb-0 pl-7">
{/* <div className="hidden w-[117px] md:block"></div> */}
<h2
- className={`bg-clip-text text-3xl font-bold tracking-tight text-transparent ${
- TITLES_BY_DIFFICULTY[challenges[0]?.difficulty || 'BEGINNER']
- }`}
+ className={`bg-clip-text text-3xl font-bold tracking-tight text-transparent ${TITLES_BY_DIFFICULTY[moreRoute]}`}
>
{title}
</h2>
diff --git a/apps/web/src/components/explore/view-more-button.tsx b/apps/web/src/components/explore/view-more-button.tsx
index 2d056fc9..ec275385 100644
--- a/apps/web/src/components/explore/view-more-button.tsx
+++ b/apps/web/src/components/explore/view-more-button.tsx
@@ -6,6 +6,10 @@ import { useRouter } from 'next/navigation';
import type { ExploreChallengeData } from './explore.action';
const BUTTONS_BY_DIFFICULTY = {
+ POPULAR:
+ 'bg-neutral-500/10 text-neutral-700 hover:text-neutral-700 dark:text-neutral-300 dark:bg-neutral-300/10 hover:bg-neutral-500/20 dark:hover:bg-neutral-300/20',
+ NEWEST:
+ 'bg-neutral-500/10 text-neutral-700 hover:text-neutral-700 dark:text-neutral-300 dark:bg-neutral-300/10 hover:bg-neutral-500/20 dark:hover:bg-neutral-300/20',
BEGINNER:
'bg-pink-500/10 text-pink-700 hover:text-pink-700 dark:text-pink-300 dark:bg-pink-300/10 hover:bg-pink-500/20 dark:hover:bg-pink-300/20',
EASY: 'bg-green-500/10 text-green-700 hover:text-green-700 dark:text-green-300 dark:bg-green-300/10 hover:bg-green-500/20 dark:hover:bg-green-300/20',
@@ -18,7 +22,7 @@ const BUTTONS_BY_DIFFICULTY = {
interface ViewMoreButtonProps {
challenges: Awaited<ExploreChallengeData>;
- moreRoute: string;
+ moreRoute: keyof typeof BUTTONS_BY_DIFFICULTY;
}
export function ViewMoreButton({ challenges, moreRoute }: ViewMoreButtonProps) {
@@ -26,7 +30,7 @@ export function ViewMoreButton({ challenges, moreRoute }: ViewMoreButtonProps) {
return (
<Button
className={`group items-center whitespace-nowrap rounded-full py-2 pl-4 pr-3 backdrop-blur-sm
- ${BUTTONS_BY_DIFFICULTY[challenges[0]?.difficulty || 'BEGINNER']}`}
+ ${BUTTONS_BY_DIFFICULTY[moreRoute]}`}
onClick={() => {
router.push(`/explore/${moreRoute}`);
}}
diff --git a/apps/web/src/components/landing/feature-card.tsx b/apps/web/src/components/landing/feature-card.tsx
index c20b580a..30d0efe3 100644
--- a/apps/web/src/components/landing/feature-card.tsx
+++ b/apps/web/src/components/landing/feature-card.tsx
@@ -20,16 +20,20 @@ export function FeatureCard({
title,
description,
className,
+ className2,
classNameBG,
image,
}: {
title: string;
description: string;
className?: string;
+ className2?: string;
classNameBG?: string;
image: {
dark: StaticImageData;
+ dark2: StaticImageData;
light: StaticImageData;
+ light2: StaticImageData;
alt: string;
};
}) {
@@ -71,28 +75,52 @@ export function FeatureCard({
{mounted ? (
<>
{resolvedTheme === 'light' && (
- <Image
- alt={image.alt}
- className={className}
- src={image.light}
- style={{
- position: 'absolute',
- userSelect: 'none',
- maxWidth: 'unset',
- }}
- />
+ <>
+ <Image
+ alt={image.alt}
+ className={className}
+ src={image.light}
+ style={{
+ position: 'absolute',
+ userSelect: 'none',
+ maxWidth: 'unset',
+ }}
+ />
+ <Image
+ alt={image.alt}
+ className={className2}
+ src={image.light2}
+ style={{
+ position: 'absolute',
+ userSelect: 'none',
+ maxWidth: 'unset',
+ }}
+ />
+ </>
)}
{resolvedTheme === 'dark' && (
- <Image
- alt={image.alt}
- className={className}
- src={image.dark}
- style={{
- position: 'absolute',
- userSelect: 'none',
- maxWidth: 'unset',
- }}
- />
+ <>
+ <Image
+ alt={image.alt}
+ className={className}
+ src={image.dark}
+ style={{
+ position: 'absolute',
+ userSelect: 'none',
+ maxWidth: 'unset',
+ }}
+ />
+ <Image
+ alt={image.alt}
+ className={className2}
+ src={image.dark2}
+ style={{
+ position: 'absolute',
+ userSelect: 'none',
+ maxWidth: 'unset',
+ }}
+ />
+ </>
)}
</>
) : null}
diff --git a/apps/web/src/components/landing/feature-card2.tsx b/apps/web/src/components/landing/feature-card2.tsx
new file mode 100644
index 00000000..06ad7fef
--- /dev/null
+++ b/apps/web/src/components/landing/feature-card2.tsx
@@ -0,0 +1,117 @@
+'use client';
+
+import { UserBadge } from '@repo/ui';
+import {
+ motion,
+ useMotionTemplate,
+ useMotionValue,
+ type MotionStyle,
+ type MotionValue,
+} from 'framer-motion';
+import { Reply } from 'lucide-react';
+import Link from 'next/link';
+import { useEffect, useState, type MouseEvent } from 'react';
+import { Markdown } from '../ui/markdown';
+
+type WrapperStyle = MotionStyle & {
+ '--x': MotionValue<string>;
+ '--y': MotionValue<string>;
+};
+
+export function FeatureCard2({
+ title,
+ description,
+ classNameBG,
+}: {
+ title: string;
+ description: string;
+ classNameBG?: string;
+}) {
+ const solutionComment = `\`\`\`ts
+// CODE START
+type Get<T, K> = string
+ \`\`\``;
+ const [mounted, setMounted] = useState(false);
+ const mouseX = useMotionValue(0);
+ const mouseY = useMotionValue(0);
+
+ function handleMouseMove({ currentTarget, clientX, clientY }: MouseEvent) {
+ const { left, top } = currentTarget.getBoundingClientRect();
+
+ mouseX.set(clientX - left);
+ mouseY.set(clientY - top);
+ }
+
+ useEffect(() => {
+ setMounted(true);
+ }, []);
+
+ return (
+ <motion.div
+ className="animated-feature-cards relative w-full drop-shadow-[0_0_15px_rgba(49,49,49,0.2)] dark:drop-shadow-[0_0_15px_rgba(49,49,49,0.2)]"
+ onMouseMove={handleMouseMove}
+ style={
+ {
+ '--x': useMotionTemplate`${mouseX}px`,
+ '--y': useMotionTemplate`${mouseY}px`,
+ } as WrapperStyle
+ }
+ >
+ <motion.div
+ className={`group relative w-full overflow-hidden rounded-3xl border bg-gradient-to-b from-neutral-50/90 to-neutral-100/90 backdrop-blur-2xl transition duration-300 hover:border-transparent dark:from-neutral-950/90 dark:to-neutral-800/90 ${classNameBG}`}
+ >
+ <div className="mx-10 my-10 min-h-[450px] w-full">
+ <div className="flex w-4/6 flex-col gap-3">
+ <h2 className="text-xl font-bold tracking-tight md:text-xl">{title}</h2>
+ <p className="text-base leading-7 text-zinc-600 dark:text-zinc-400">{description}</p>
+ </div>
+ {mounted ? (
+ <div className="absolute inset-0 left-[37px] top-[30%] flex w-[100%] flex-col gap-3 pt-4">
+ <div className="rounded-3xl bg-neutral-500/10 p-4 pt-3 duration-150 hover:bg-neutral-500/20">
+ <div className="flex items-center gap-2">
+ <UserBadge username="abc" linkComponent={Link} />
+ <div className="text-xs text-neutral-500">5 years ago</div>
+ </div>
+ pls halp i give ap
+ </div>
+ <div className="relative ml-12 rounded-3xl bg-neutral-500/10 p-4 pt-3 duration-150 hover:bg-neutral-500/20">
+ <Reply className="absolute -left-8 h-4 w-4 opacity-50" />
+ <div className="flex items-center gap-2">
+ <UserBadge username="defg" linkComponent={Link} />
+ <div className="text-xs text-neutral-500">just now</div>
+ </div>
+ ez, the answer is
+ <Markdown>{solutionComment}</Markdown>
+ </div>
+ <div className="relative ml-12 rounded-tl-3xl bg-neutral-500/10 p-4 pt-3 duration-150 hover:bg-neutral-500/20">
+ <Reply className="absolute -left-8 h-4 w-4 opacity-50" />
+ <div className="flex items-center gap-2">
+ <UserBadge username="69" linkComponent={Link} />
+ <div className="text-xs text-neutral-500">just now</div>
+ </div>
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.1"
+ x="0px"
+ y="0px"
+ width="150px"
+ height="198px"
+ viewBox="0 0 150 198"
+ enable-background="new 0 0 150 198"
+ >
+ <image
+ width="150"
+ height="198"
+ x="0"
+ y="0"
+ href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAADGCAMAAAAHUYknAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACf1BMVEUAAAAcAAwcAAwcAAwb AAsRAAAbAAscAAscAAwbAAsbAAsaAAobAAsZAAgcAAwbAAsUIDASKDoQKDkTKTk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 );
+}
diff --git a/apps/web/src/components/landing/feature-card4.tsx b/apps/web/src/components/landing/feature-card4.tsx
new file mode 100644
index 00000000..aaf8edaf
--- /dev/null
+++ b/apps/web/src/components/landing/feature-card4.tsx
@@ -0,0 +1,162 @@
+'use client';
+
+import { DifficultyBadge } from '@repo/ui';
+import {
+ motion,
+ useMotionTemplate,
+ useMotionValue,
+ type MotionStyle,
+ type MotionValue,
+} from 'framer-motion';
+import { Check, Minus, Triangle, X } from 'lucide-react';
+import { useTheme } from 'next-themes';
+import { useEffect, useState, type MouseEvent } from 'react';
+
+type WrapperStyle = MotionStyle & {
+ '--x': MotionValue<string>;
+ '--y': MotionValue<string>;
+};
+
+export function FeatureCard4({
+ title,
+ description,
+ classNameBG,
+}: {
+ title: string;
+ description: string;
+ classNameBG?: string;
+}) {
+ const { resolvedTheme } = useTheme();
+ const [mounted, setMounted] = useState(false);
+ const mouseX = useMotionValue(0);
+ const mouseY = useMotionValue(0);
+
+ function handleMouseMove({ currentTarget, clientX, clientY }: MouseEvent) {
+ const { left, top } = currentTarget.getBoundingClientRect();
+
+ mouseX.set(clientX - left);
+ mouseY.set(clientY - top);
+ }
+
+ useEffect(() => {
+ setMounted(true);
+ }, []);
+
+ return (
+ <motion.div
+ className="animated-feature-cards relative w-full drop-shadow-[0_0_15px_rgba(49,49,49,0.2)] dark:drop-shadow-[0_0_15px_rgba(49,49,49,0.2)]"
+ onMouseMove={handleMouseMove}
+ style={
+ {
+ '--x': useMotionTemplate`${mouseX}px`,
+ '--y': useMotionTemplate`${mouseY}px`,
+ } as WrapperStyle
+ }
+ >
+ <motion.div
+ className={`group relative w-full overflow-hidden rounded-3xl border bg-gradient-to-b from-neutral-50/90 to-neutral-100/90 backdrop-blur-2xl transition duration-300 hover:border-transparent dark:from-neutral-950/90 dark:to-neutral-800/90 ${classNameBG}`}
+ >
+ <div className="mx-10 my-10 min-h-[450px] w-full">
+ <div className="flex w-4/6 flex-col gap-3">
+ <h2 className="text-xl font-bold tracking-tight md:text-xl">{title}</h2>
+ <p className="text-base leading-7 text-zinc-600 dark:text-zinc-400">{description}</p>
+ </div>
+ {mounted ? (
+ <>
+ <div className="absolute inset-0 top-[38%] flex flex-col items-center justify-center gap-1">
+ <div className="flex w-[69%] items-center justify-between gap-3 rounded-b-lg rounded-t-2xl bg-neutral-500/10 p-2 pl-3">
+ <span className="text-sm font-medium">Track name</span>
+ <div className="flex items-center gap-3">
+ <Minus className="h-3 w-3" />
+ <Triangle className="h-3 w-3" />
+ <X className="h-3 w-3" />
+ </div>
+ </div>
+ <input className="peer/1 appearance-none" type="checkbox" id="toggle" />
+ <label
+ htmlFor="toggle"
+ className="flex w-[69%] cursor-pointer items-center justify-between gap-3 rounded-lg bg-neutral-500/10 p-4 text-zinc-700 duration-300 hover:scale-105 hover:rounded-xl active:scale-100 active:duration-75 group-hover:hover:bg-neutral-500/20 peer-checked/1:bg-pink-300/50
+ peer-checked/1:hover:bg-pink-300/50 dark:text-zinc-300 peer-checked/1:dark:text-white"
+ >
+ <div className="flex items-center gap-3">
+ <div className="h-4 w-4 rounded-lg">
+ <Check className="h-3 w-3" />
+ </div>
+ Awaited
+ </div>
+ <div className="group">
+ <DifficultyBadge difficulty="BEGINNER" />
+ </div>
+ </label>
+
+ <input className="peer/2 appearance-none" type="checkbox" id="toggle2" />
+ <label
+ htmlFor="toggle2"
+ className="flex w-[69%] cursor-pointer items-center justify-between gap-3 rounded-lg bg-neutral-500/10 p-4 text-zinc-700 duration-300 hover:scale-105 hover:rounded-xl active:scale-100 active:duration-75 group-hover:hover:bg-neutral-500/20 peer-checked/2:bg-emerald-300/50 peer-checked/2:hover:bg-emerald-300/50 dark:text-zinc-300"
+ >
+ <div className="flex items-center gap-3">
+ <div className="h-4 w-4 rounded-lg">
+ <Check className="h-3 w-3" />
+ </div>
+ Unshift
+ </div>
+ <div className="group">
+ <DifficultyBadge difficulty="EASY" />
+ </div>
+ </label>
+
+ <input className="peer/3 appearance-none" type="checkbox" id="toggle3" />
+ <label
+ htmlFor="toggle3"
+ className="flex w-[69%] cursor-pointer items-center justify-between gap-3 rounded-lg bg-neutral-500/10 p-4 text-zinc-700 duration-300 hover:scale-105 hover:rounded-xl active:scale-100 active:duration-75 group-hover:hover:bg-neutral-500/20 peer-checked/3:bg-yellow-300/50 peer-checked/3:hover:bg-yellow-300/50 dark:text-zinc-300"
+ >
+ <div className="flex items-center gap-3">
+ <div className="h-4 w-4 rounded-lg">
+ <Check className="h-3 w-3" />
+ </div>
+ Append Argument
+ </div>
+ <div className="group">
+ <DifficultyBadge difficulty="MEDIUM" />
+ </div>
+ </label>
+
+ <input className="peer/4 appearance-none" type="checkbox" id="toggle4" />
+ <label
+ htmlFor="toggle4"
+ className="flex w-[69%] cursor-pointer items-center justify-between gap-3 rounded-lg bg-neutral-500/10 p-4 text-zinc-700 duration-300 hover:scale-105 hover:rounded-xl active:scale-100 active:duration-75 group-hover:hover:bg-neutral-500/20 peer-checked/4:bg-red-300/50 peer-checked/4:hover:bg-red-300/50 dark:text-zinc-300"
+ >
+ <div className="flex items-center gap-3">
+ <div className="h-4 w-4 rounded-lg">
+ <Check className="h-3 w-3" />
+ </div>
+ CamelCase
+ </div>
+ <div className="group">
+ <DifficultyBadge difficulty="HARD" />
+ </div>
+ </label>
+
+ <input className="peer/5 appearance-none" type="checkbox" id="toggle5" />
+ <label
+ htmlFor="toggle5"
+ className="flex w-[69%] cursor-pointer items-center justify-between gap-3 rounded-lg bg-neutral-500/10 p-4 text-zinc-700 duration-300 hover:scale-105 hover:rounded-xl active:scale-100 active:duration-75 group-hover:hover:bg-neutral-500/20 peer-checked/5:bg-orange-300/50 peer-checked/5:hover:bg-orange-300/50 dark:text-zinc-300"
+ >
+ <div className="flex items-center gap-3">
+ <div className="h-4 w-4 rounded-lg">
+ <Check className="h-3 w-3" />
+ </div>
+ Get Readonly Keys
+ </div>
+ <div className="group">
+ <DifficultyBadge difficulty="EXTREME" />
+ </div>
+ </label>
+ </div>
+ </>
+ ) : null}
+ </div>
+ </motion.div>
+ </motion.div>
+ );
+}
diff --git a/apps/web/src/components/landing/features.tsx b/apps/web/src/components/landing/features.tsx
index 192cb72b..82cd4950 100644
--- a/apps/web/src/components/landing/features.tsx
+++ b/apps/web/src/components/landing/features.tsx
@@ -1,7 +1,15 @@
import { Balancer } from 'react-wrap-balancer';
import { FeatureCard } from '~/components/landing/feature-card';
-import FeatureCardChallengeDark from '~/assets/images/feature_card_challenge_dark.png';
-import FeatureCardChallengeLight from '~/assets/images/feature_card_challenge_light.png';
+import { FeatureCard2 } from '~/components/landing/feature-card2';
+import { FeatureCard4 } from '~/components/landing/feature-card4';
+import FeatureCardChallengeDark1 from '~/assets/images/feature_card_challenge_dark1.png';
+import FeatureCardChallengeDark2 from '~/assets/images/feature_card_challenge_dark2.png';
+import FeatureCardChallengeLight1 from '~/assets/images/feature_card_challenge_light1.png';
+import FeatureCardChallengeLight2 from '~/assets/images/feature_card_challenge_light2.png';
+import FeatureCardCreateLight1 from '~/assets/images/feature_card_create_light1.png';
+import FeatureCardCreateLight2 from '~/assets/images/feature_card_create_light2.png';
+import FeatureCardCreateDark1 from '~/assets/images/feature_card_create_dark1.png';
+import FeatureCardCreateDark2 from '~/assets/images/feature_card_create_dark2.png';
function Features() {
return (
@@ -35,50 +43,44 @@ function Features() {
</div>
<div className="relative z-10 grid w-full gap-8 lg:grid-cols-2">
<FeatureCard
- className="pointer-events-none left-[35px] top-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"
+ className="pointer-events-none -bottom-[11%] left-[35px] w-[42%] transition-transform duration-500 group-hover:translate-x-2 group-hover:scale-95 lg:w-[69%]"
+ className2="pointer-events-none left-[39%] -bottom-[12%] w-[50%] lg:w-[77%] transition-transform duration-500 group-hover:scale-105 group-hover:-translate-x-2 backdrop-blur-md rounded-xl overflow-hidden"
description="Engage in TypeScript challenges to strengthen your grasp of the type system and advanced features"
classNameBG="lg:bg-gradient-to-br"
image={{
- dark: FeatureCardChallengeDark,
- light: FeatureCardChallengeLight,
+ dark: FeatureCardChallengeDark1,
+ dark2: FeatureCardChallengeDark2,
+ light: FeatureCardChallengeLight1,
+ light2: FeatureCardChallengeLight2,
alt: 'Something',
}}
title="Type Challenges"
/>
- <FeatureCard
- className="pointer-events-none left-[35px] top-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"
+ <FeatureCard2
description="Developers can share solutions and engage in discussions through commenting"
classNameBG="lg:bg-gradient-to-bl"
- image={{
- dark: FeatureCardChallengeDark,
- light: FeatureCardChallengeLight,
- alt: 'Something',
- }}
title="Collaborative Environment"
/>
<FeatureCard
- className="pointer-events-none left-[35px] top-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"
+ className="pointer-events-none left-[35px] top-[30%] w-[50%] rounded-t-xl border border-zinc-300 opacity-80 transition-transform duration-500 group-hover:translate-y-2 dark:border-zinc-700"
+ className2="pointer-events-none rounded-t-xl border border-zinc-300 dark:border-zinc-700 left-[calc(50%+35px+1rem)] top-[30%] w-[150%] ransition-transform duration-500 group-hover:-translate-y-6 opacity-80 backdrop-blur-md rounded-xl overflow-hidden"
description="Craft your own coding challenges to share with the Typehero community"
classNameBG="lg:bg-gradient-to-tr"
image={{
- dark: FeatureCardChallengeDark,
- light: FeatureCardChallengeLight,
+ dark: FeatureCardCreateDark1,
+ dark2: FeatureCardCreateDark2,
+ light: FeatureCardCreateLight1,
+ light2: FeatureCardCreateLight2,
alt: 'Something',
}}
title="Challenge Creation"
/>
- <FeatureCard
- className="pointer-events-none left-[35px] top-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"
+ <FeatureCard4
description="Tracks features curated TypeScript challenges, spanning various topics and difficulty levels, to advance your TypeScript skills."
classNameBG="lg:bg-gradient-to-tl"
- image={{
- dark: FeatureCardChallengeDark,
- light: FeatureCardChallengeLight,
- alt: 'Something',
- }}
title="Curated Tracks"
/>
</div>
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index c63c74bd..635083cd 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -178,7 +178,8 @@ main {
@apply pointer-events-none absolute select-none rounded-3xl opacity-0 transition-opacity duration-300 hover:opacity-100;
background: radial-gradient(
1000px circle at var(--x) var(--y),
- #5295dc 0,
+ #3aecf8 0,
+ #5295dc 25%,
rgba(255, 255, 255, 0) 50%,
transparent 80%
);
diff --git a/packages/ui/src/components/difficulty-badge.tsx b/packages/ui/src/components/difficulty-badge.tsx
index 32a78b94..d65e594b 100644
--- a/packages/ui/src/components/difficulty-badge.tsx
+++ b/packages/ui/src/components/difficulty-badge.tsx
@@ -6,19 +6,20 @@ interface Props {
}
const COLORS_BY_DIFFICULTY = {
- BEGINNER: 'dark:bg-pink-300 bg-pink-600 dark:group-hover:text-pink-300 group-hover:text-pink-600',
- EASY: 'dark:bg-green-300 bg-green-600 dark:group-hover:text-green-300 group-hover:text-green-600',
+ BEGINNER:
+ 'dark:bg-pink-300 bg-pink-600 dark:group-hover/card:text-pink-300 group-hover/card:text-pink-600',
+ EASY: 'dark:bg-green-300 bg-green-600 dark:group-hover/card:text-green-300 group-hover/card:text-green-600',
MEDIUM:
- 'dark:bg-yellow-300 bg-yellow-600 dark:group-hover:text-yellow-300 group-hover:text-yellow-600',
- HARD: 'dark:bg-red-300 bg-red-600 dark:group-hover:text-red-300 group-hover:text-red-600',
+ 'dark:bg-yellow-300 bg-yellow-600 dark:group-hover/card:text-yellow-300 group-hover/card:text-yellow-600',
+ HARD: 'dark:bg-red-300 bg-red-600 dark:group-hover/card:text-red-300 group-hover/card:text-red-600',
EXTREME:
- 'dark:bg-orange-300 bg-orange-600 dark:group-hover:text-orange-300 group-hover:text-orange-600',
+ 'dark:bg-orange-300 bg-orange-600 dark:group-hover/card:text-orange-300 group-hover/card:text-orange-600',
};
export function DifficultyBadge({ difficulty }: Props) {
return (
<Badge
- className={`duration-300 group-hover:bg-white dark:group-hover:bg-black/70 ${COLORS_BY_DIFFICULTY[difficulty]}`}
+ className={`duration-300 group-hover/card:bg-white dark:group-hover/card:bg-black/70 ${COLORS_BY_DIFFICULTY[difficulty]}`}
>
{difficulty}
</Badge>