Skip to content

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

Landing (#257)

PickleNik7d81f6eb6ada
diff --git a/src/components/explore/explore-card.tsx b/src/components/explore/explore-card.tsx
index 7c43423d..f7327fd9 100644
--- a/src/components/explore/explore-card.tsx
+++ b/src/components/explore/explore-card.tsx
@@ -3,7 +3,6 @@ import { Circle, Diamond, MessageCircle, Plus, Sparkle, ThumbsUp, Triangle } fro
import { getRelativeTime } from '~/utils/relativeTime';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../ui/card';
-import { Markdown } from '../ui/markdown';
import { type ExploreChallengeData } from './';
import { DifficultyBadge } from '../ui/difficulty-badge';
import { Button } from '../ui/button';
diff --git a/src/components/landing/fake-challeng-card.tsx b/src/components/landing/fake-challeng-card.tsx
index 61f02012..17bfa28b 100644
--- a/src/components/landing/fake-challeng-card.tsx
+++ b/src/components/landing/fake-challeng-card.tsx
@@ -1,16 +1,18 @@
const FakeChallengeCard = () => (
<>
- <div className="flex flex-col rounded-3xl absolute top-0 right-0 bg-zinc-900 p-8 border dark:border-zinc-600 h-3/4 w-4/5 shadow-[0_0_1rem_#4448]"
- style={{ boxShadow: 'inset 1rem 1rem 3rem -0.5rem #fff1'}}
+ <div className="flex flex-col rounded-3xl absolute top-0 right-0 bg-background dark:bg-zinc-900 p-8 border dark:border-zinc-600 border-neutral-300 h-3/4 w-96 shadow-[0_0_1rem_#8884,1rem_-1rem_3rem_-0.5rem_#0004]"
>
<h2 className="text-xl font-bold">Implement a JSON parser type</h2>
- <div className="rounded-xl -mx-2 bg-zinc-800 flex-grow mt-20"></div>
+ <div className="flex gap-3">
+ <div className="bg-zinc-700 font-bold px-3 py-1 rounded-full">@you</div>
+ </div>
+ <div className="rounded-xl -mx-2 bg-neutral-200 dark:bg-zinc-800 flex-grow mt-28"></div>
</div>
- <div className="flex flex-col rounded-3xl absolute bottom-0 left-0 bg-zinc-900 p-8 border dark:border-zinc-600 h-4/5 w-4/5 shadow-[0_0_1rem_#4448]"
- style={{ boxShadow: 'inset 1rem 1rem 3rem -0.5rem #fff1, 1rem -1rem 3rem #0008'}}
+ <div className="flex flex-col rounded-3xl absolute top-36 right-12 bg-background dark:bg-zinc-900 p-8 border dark:border-zinc-600 border-neutral-300 h-4/5 w-96
+ shadow-[0_0_1rem_#8884,1rem_-1rem_3rem_-0.5rem_#0004]"
>
<h2 className="text-xl font-bold">Implement a generic type</h2>
- <div className="rounded-xl -mx-2 bg-zinc-800 flex-grow mt-20"></div>
+ <div className="rounded-xl -mx-2 bg-neutral-200 dark:bg-zinc-800 flex-grow mt-28"></div>
</div>
</>
)
diff --git a/src/components/landing/hero.tsx b/src/components/landing/hero.tsx
index b895806d..077cce9b 100644
--- a/src/components/landing/hero.tsx
+++ b/src/components/landing/hero.tsx
@@ -1,8 +1,8 @@
import { Github } from "lucide-react"
-import FakeChallengeCard from "./fake-challeng-card"
+import FakeChallengeCards from "./fake-challeng-card"
const Hero = () => (
- <div className="mb-[56px] container items-center grid grid-cols-2 min-h-[calc(100lvh_-_112px)]">
+ <div className="mb-[56px] container items-center justify-center grid lg:grid-cols-2 min-h-[calc(100lvh_-_112px)]">
{/* background film grain noise effect */}
{/* <svg className="pointer-events-none mix-blend-soft-light opacity-50 z-10 fixed left-0 top-0 h-full w-full" id="grain">
<filter id="noise">
@@ -10,12 +10,12 @@ const Hero = () => (
</filter>
<rect width="100%" height="100%" filter="url(#noise)"></rect>
</svg> */}
- <div className="flex h-full flex-col justify-center gap-10 overflow-visible">
- <div className="relative mr-auto flex items-center gap-5">
+ <div className="flex h-full flex-col justify-center items-center lg:items-start gap-10 overflow-visible text-white">
+ <div className="relative lg:mr-auto flex items-center gap-5">
<div className="absolute left-1/2 top-1/2 -z-10 hidden h-56 w-56 -translate-x-[15%] -translate-y-1/2 rounded-full bg-white/10 blur-2xl dark:block lg:h-96 lg:w-96 lg:blur-3xl"></div>
<div className="absolute right-1/2 top-1/2 -z-10 hidden h-56 w-56 -translate-y-1/2 translate-x-[15%] rounded-full bg-[#3178c6]/20 blur-2xl dark:block lg:h-96 lg:w-96 lg:blur-3xl"></div>
<svg
- className="h-44 w-44 rounded-[2rem] dark:bg-[#3178C6] bg-[#3178C6] p-[2px]"
+ className="h-28 sm:h-44 w-28 sm:w-44 rounded-3xl sm:rounded-[2rem] dark:bg-[#3178C6] bg-[#3178C6] p-[2px]"
viewBox="0 0 512 512"
xmlns="http://www.w3.org/2000/svg"
>
@@ -41,14 +41,14 @@ const Hero = () => (
</clipPath>
</defs>
</svg>
- <h1 className="bg-gradient-to-r from-[#3178c6] dark:from-[#3178c6] from-30% to-black bg-clip-text text-7xl font-black text-transparent dark:to-white md:text-8xl">
+ <h1 className="bg-gradient-to-r from-[#3178c6] dark:from-[#3178c6] from-30% to-black bg-clip-text font-black text-transparent dark:to-white text-6xl sm:text-8xl">
type
<br />
hero
</h1>
</div>
- <p className="max-w-[50ch] bg-transparent leading-9 text-black/50 dark:text-white/50">
- Connect, collaborate, and grow with a community of TypeScript developers. Elevate your skills trough interactive coding challenges, discussions, and knowledge sharing
+ <p className="max-w-[50ch] bg-transparent leading-9 text-center lg:text-left text-black/50 dark:text-white/50">
+ Connect, collaborate, and grow with a community of TypeScript developers. Elevate your skills through interactive coding challenges, discussions, and knowledge sharing
{/* Connect and collaborate with a community of TypeScript developers on Type Hero.
Engage in discussions, create challenges, and share insights with fellow typescript
enthusiasts. Type Hero has collaborative coding challenges that foster a supportive and
@@ -64,7 +64,7 @@ const Hero = () => (
</div>
- <div className="relative md:block hidden rounded-full w-full h-3/4">
+ <div className="relative lg:block overflow-visible hidden rounded-full w-full h-3/4">
<div
className="movingbackground absolute -z-30 -inset-40 top-1/2 -translate-y-1/2 rounded-full aspect-square shadow-[inset_0_0_5rem_5rem] shadow-background"
style={{
@@ -74,9 +74,7 @@ const Hero = () => (
>
</div>
- <div className="relative mx-auto w-4/5 h-full">
- <FakeChallengeCard />
- </div>
+ <FakeChallengeCards />
</div>
</div>
)