Skip to content

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

help finalizing home page (#419)

bautistaaa8c9fcfd8d599
diff --git a/.env.example b/.env.example
index 66655dd1..a7f248be 100644
--- a/.env.example
+++ b/.env.example
@@ -1,7 +1,7 @@
DATABASE_URL="mysql://dev:dev@localhost/typehero"
GITHUB_ID=
GITHUB_SECRET=
-
+EDGE_CONFIG=
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=
# Next Auth
diff --git a/apps/web/public/contributors.ts b/apps/web/public/contributors.ts
index cdb5a942..bbea0ce2 100644
--- a/apps/web/public/contributors.ts
+++ b/apps/web/public/contributors.ts
@@ -20,7 +20,7 @@ export const contributors = [
"received_events_url": "https://api.github.com/users/bautistaaa/received_events",
"type": "User",
"site_admin": false,
- "contributions": 94
+ "contributions": 107
},
{
"login": "PickleNik",
@@ -41,7 +41,7 @@ export const contributors = [
"received_events_url": "https://api.github.com/users/PickleNik/received_events",
"type": "User",
"site_admin": false,
- "contributions": 61
+ "contributions": 68
},
{
"login": "Hacksore",
@@ -62,28 +62,7 @@ export const contributors = [
"received_events_url": "https://api.github.com/users/Hacksore/received_events",
"type": "User",
"site_admin": false,
- "contributions": 55
- },
- {
- "login": "jhechtf",
- "id": 8152471,
- "node_id": "MDQ6VXNlcjgxNTI0NzE=",
- "avatar_url": "https://avatars.githubusercontent.com/u/8152471?v=4",
- "gravatar_id": "",
- "url": "https://api.github.com/users/jhechtf",
- "html_url": "https://github.com/jhechtf",
- "followers_url": "https://api.github.com/users/jhechtf/followers",
- "following_url": "https://api.github.com/users/jhechtf/following{/other_user}",
- "gists_url": "https://api.github.com/users/jhechtf/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/jhechtf/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/jhechtf/subscriptions",
- "organizations_url": "https://api.github.com/users/jhechtf/orgs",
- "repos_url": "https://api.github.com/users/jhechtf/repos",
- "events_url": "https://api.github.com/users/jhechtf/events{/privacy}",
- "received_events_url": "https://api.github.com/users/jhechtf/received_events",
- "type": "User",
- "site_admin": false,
- "contributions": 16
+ "contributions": 63
},
{
"login": "ggrandi",
@@ -104,7 +83,28 @@ export const contributors = [
"received_events_url": "https://api.github.com/users/ggrandi/received_events",
"type": "User",
"site_admin": false,
- "contributions": 16
+ "contributions": 19
+ },
+ {
+ "login": "jhechtf",
+ "id": 8152471,
+ "node_id": "MDQ6VXNlcjgxNTI0NzE=",
+ "avatar_url": "https://avatars.githubusercontent.com/u/8152471?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/jhechtf",
+ "html_url": "https://github.com/jhechtf",
+ "followers_url": "https://api.github.com/users/jhechtf/followers",
+ "following_url": "https://api.github.com/users/jhechtf/following{/other_user}",
+ "gists_url": "https://api.github.com/users/jhechtf/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/jhechtf/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/jhechtf/subscriptions",
+ "organizations_url": "https://api.github.com/users/jhechtf/orgs",
+ "repos_url": "https://api.github.com/users/jhechtf/repos",
+ "events_url": "https://api.github.com/users/jhechtf/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/jhechtf/received_events",
+ "type": "User",
+ "site_admin": false,
+ "contributions": 18
},
{
"login": "creativenull",
@@ -188,7 +188,7 @@ export const contributors = [
"received_events_url": "https://api.github.com/users/anthonyshew/received_events",
"type": "User",
"site_admin": false,
- "contributions": 7
+ "contributions": 8
},
{
"login": "basokant",
@@ -253,6 +253,27 @@ export const contributors = [
"site_admin": false,
"contributions": 4
},
+ {
+ "login": "QuiiBz",
+ "id": 43268759,
+ "node_id": "MDQ6VXNlcjQzMjY4NzU5",
+ "avatar_url": "https://avatars.githubusercontent.com/u/43268759?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/QuiiBz",
+ "html_url": "https://github.com/QuiiBz",
+ "followers_url": "https://api.github.com/users/QuiiBz/followers",
+ "following_url": "https://api.github.com/users/QuiiBz/following{/other_user}",
+ "gists_url": "https://api.github.com/users/QuiiBz/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/QuiiBz/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/QuiiBz/subscriptions",
+ "organizations_url": "https://api.github.com/users/QuiiBz/orgs",
+ "repos_url": "https://api.github.com/users/QuiiBz/repos",
+ "events_url": "https://api.github.com/users/QuiiBz/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/QuiiBz/received_events",
+ "type": "User",
+ "site_admin": false,
+ "contributions": 4
+ },
{
"login": "F-PTS",
"id": 80021800,
@@ -275,22 +296,22 @@ export const contributors = [
"contributions": 3
},
{
- "login": "QuiiBz",
- "id": 43268759,
- "node_id": "MDQ6VXNlcjQzMjY4NzU5",
- "avatar_url": "https://avatars.githubusercontent.com/u/43268759?v=4",
+ "login": "mirashif",
+ "id": 34467318,
+ "node_id": "MDQ6VXNlcjM0NDY3MzE4",
+ "avatar_url": "https://avatars.githubusercontent.com/u/34467318?v=4",
"gravatar_id": "",
- "url": "https://api.github.com/users/QuiiBz",
- "html_url": "https://github.com/QuiiBz",
- "followers_url": "https://api.github.com/users/QuiiBz/followers",
- "following_url": "https://api.github.com/users/QuiiBz/following{/other_user}",
- "gists_url": "https://api.github.com/users/QuiiBz/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/QuiiBz/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/QuiiBz/subscriptions",
- "organizations_url": "https://api.github.com/users/QuiiBz/orgs",
- "repos_url": "https://api.github.com/users/QuiiBz/repos",
- "events_url": "https://api.github.com/users/QuiiBz/events{/privacy}",
- "received_events_url": "https://api.github.com/users/QuiiBz/received_events",
+ "url": "https://api.github.com/users/mirashif",
+ "html_url": "https://github.com/mirashif",
+ "followers_url": "https://api.github.com/users/mirashif/followers",
+ "following_url": "https://api.github.com/users/mirashif/following{/other_user}",
+ "gists_url": "https://api.github.com/users/mirashif/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/mirashif/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/mirashif/subscriptions",
+ "organizations_url": "https://api.github.com/users/mirashif/orgs",
+ "repos_url": "https://api.github.com/users/mirashif/repos",
+ "events_url": "https://api.github.com/users/mirashif/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/mirashif/received_events",
"type": "User",
"site_admin": false,
"contributions": 3
@@ -338,22 +359,106 @@ export const contributors = [
"contributions": 1
},
{
- "login": "mirashif",
- "id": 34467318,
- "node_id": "MDQ6VXNlcjM0NDY3MzE4",
- "avatar_url": "https://avatars.githubusercontent.com/u/34467318?v=4",
+ "login": "dylf",
+ "id": 10430358,
+ "node_id": "MDQ6VXNlcjEwNDMwMzU4",
+ "avatar_url": "https://avatars.githubusercontent.com/u/10430358?v=4",
"gravatar_id": "",
- "url": "https://api.github.com/users/mirashif",
- "html_url": "https://github.com/mirashif",
- "followers_url": "https://api.github.com/users/mirashif/followers",
- "following_url": "https://api.github.com/users/mirashif/following{/other_user}",
- "gists_url": "https://api.github.com/users/mirashif/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/mirashif/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/mirashif/subscriptions",
- "organizations_url": "https://api.github.com/users/mirashif/orgs",
- "repos_url": "https://api.github.com/users/mirashif/repos",
- "events_url": "https://api.github.com/users/mirashif/events{/privacy}",
- "received_events_url": "https://api.github.com/users/mirashif/received_events",
+ "url": "https://api.github.com/users/dylf",
+ "html_url": "https://github.com/dylf",
+ "followers_url": "https://api.github.com/users/dylf/followers",
+ "following_url": "https://api.github.com/users/dylf/following{/other_user}",
+ "gists_url": "https://api.github.com/users/dylf/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/dylf/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/dylf/subscriptions",
+ "organizations_url": "https://api.github.com/users/dylf/orgs",
+ "repos_url": "https://api.github.com/users/dylf/repos",
+ "events_url": "https://api.github.com/users/dylf/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/dylf/received_events",
+ "type": "User",
+ "site_admin": false,
+ "contributions": 1
+ },
+ {
+ "login": "maxdemaio",
+ "id": 44373521,
+ "node_id": "MDQ6VXNlcjQ0MzczNTIx",
+ "avatar_url": "https://avatars.githubusercontent.com/u/44373521?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/maxdemaio",
+ "html_url": "https://github.com/maxdemaio",
+ "followers_url": "https://api.github.com/users/maxdemaio/followers",
+ "following_url": "https://api.github.com/users/maxdemaio/following{/other_user}",
+ "gists_url": "https://api.github.com/users/maxdemaio/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/maxdemaio/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/maxdemaio/subscriptions",
+ "organizations_url": "https://api.github.com/users/maxdemaio/orgs",
+ "repos_url": "https://api.github.com/users/maxdemaio/repos",
+ "events_url": "https://api.github.com/users/maxdemaio/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/maxdemaio/received_events",
+ "type": "User",
+ "site_admin": false,
+ "contributions": 1
+ },
+ {
+ "login": "maniator",
+ "id": 539579,
+ "node_id": "MDQ6VXNlcjUzOTU3OQ==",
+ "avatar_url": "https://avatars.githubusercontent.com/u/539579?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/maniator",
+ "html_url": "https://github.com/maniator",
+ "followers_url": "https://api.github.com/users/maniator/followers",
+ "following_url": "https://api.github.com/users/maniator/following{/other_user}",
+ "gists_url": "https://api.github.com/users/maniator/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/maniator/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/maniator/subscriptions",
+ "organizations_url": "https://api.github.com/users/maniator/orgs",
+ "repos_url": "https://api.github.com/users/maniator/repos",
+ "events_url": "https://api.github.com/users/maniator/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/maniator/received_events",
+ "type": "User",
+ "site_admin": false,
+ "contributions": 1
+ },
+ {
+ "login": "laureanray",
+ "id": 22195710,
+ "node_id": "MDQ6VXNlcjIyMTk1NzEw",
+ "avatar_url": "https://avatars.githubusercontent.com/u/22195710?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/laureanray",
+ "html_url": "https://github.com/laureanray",
+ "followers_url": "https://api.github.com/users/laureanray/followers",
+ "following_url": "https://api.github.com/users/laureanray/following{/other_user}",
+ "gists_url": "https://api.github.com/users/laureanray/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/laureanray/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/laureanray/subscriptions",
+ "organizations_url": "https://api.github.com/users/laureanray/orgs",
+ "repos_url": "https://api.github.com/users/laureanray/repos",
+ "events_url": "https://api.github.com/users/laureanray/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/laureanray/received_events",
+ "type": "User",
+ "site_admin": false,
+ "contributions": 1
+ },
+ {
+ "login": "typesafegh",
+ "id": 135900154,
+ "node_id": "U_kgDOCBmr-g",
+ "avatar_url": "https://avatars.githubusercontent.com/u/135900154?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/typesafegh",
+ "html_url": "https://github.com/typesafegh",
+ "followers_url": "https://api.github.com/users/typesafegh/followers",
+ "following_url": "https://api.github.com/users/typesafegh/following{/other_user}",
+ "gists_url": "https://api.github.com/users/typesafegh/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/typesafegh/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/typesafegh/subscriptions",
+ "organizations_url": "https://api.github.com/users/typesafegh/orgs",
+ "repos_url": "https://api.github.com/users/typesafegh/repos",
+ "events_url": "https://api.github.com/users/typesafegh/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/typesafegh/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
diff --git a/apps/web/src/app/feature-flag-provider.tsx b/apps/web/src/app/feature-flag-provider.tsx
new file mode 100644
index 00000000..c48a0bea
--- /dev/null
+++ b/apps/web/src/app/feature-flag-provider.tsx
@@ -0,0 +1,15 @@
+import { useQuery } from '@tanstack/react-query';
+import { createContext, type ReactNode } from 'react';
+
+export const FeatureFlagContext = createContext<Record<string, boolean>>({});
+
+interface Props {
+ children: ReactNode;
+}
+export function FeatureFlagProvider({ children }: Props) {
+ const { data: featureFlags } = useQuery(['featureFlags'], () =>
+ fetch('/api/flags').then((res) => res.json()),
+ );
+
+ return <FeatureFlagContext.Provider value={featureFlags}>{children}</FeatureFlagContext.Provider>;
+}
diff --git a/apps/web/src/app/providers.tsx b/apps/web/src/app/providers.tsx
index 44189790..e53e8d9e 100644
--- a/apps/web/src/app/providers.tsx
+++ b/apps/web/src/app/providers.tsx
@@ -1,40 +1,31 @@
'use client';
-import { Provider as BalancerProvider } from 'react-wrap-balancer';
import { SessionProvider } from '@repo/auth/react';
-import { ThemeProvider } from 'next-themes';
-import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { TooltipProvider } from '@repo/ui';
-import React, { useEffect, useState } from 'react';
+import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
+import { ThemeProvider } from 'next-themes';
+import React from 'react';
+import { Provider as BalancerProvider } from 'react-wrap-balancer';
+import { FeatureFlagProvider } from './feature-flag-provider';
interface Props {
children: React.ReactNode;
}
const queryClient = new QueryClient();
-export const FeatureFlagContext = React.createContext<Record<string, boolean>>({});
export function Providers({ children }: Props) {
- const [featureFlags, setFeatureFlags] = useState<Record<string, boolean>>({});
- useEffect(() => {
- fetch('/api/flags')
- .then((res) => res.json())
- .then((data) => {
- setFeatureFlags(data);
- });
- }, []);
-
return (
- <FeatureFlagContext.Provider value={featureFlags}>
- <BalancerProvider>
- <QueryClientProvider client={queryClient}>
- <SessionProvider>
- <ThemeProvider attribute="class">
+ <BalancerProvider>
+ <QueryClientProvider client={queryClient}>
+ <SessionProvider>
+ <ThemeProvider attribute="class">
+ <FeatureFlagProvider>
<TooltipProvider>{children}</TooltipProvider>
- </ThemeProvider>
- </SessionProvider>
- </QueryClientProvider>
- </BalancerProvider>
- </FeatureFlagContext.Provider>
+ </FeatureFlagProvider>
+ </ThemeProvider>
+ </SessionProvider>
+ </QueryClientProvider>
+ </BalancerProvider>
);
}
diff --git a/apps/web/src/components/landing/feature-card.tsx b/apps/web/src/components/landing/feature-card.tsx
index 709cf901..efaba644 100644
--- a/apps/web/src/components/landing/feature-card.tsx
+++ b/apps/web/src/components/landing/feature-card.tsx
@@ -1,5 +1,8 @@
'use client';
+import type { Difficulty } from '@repo/db/types';
+import { Button } from '@repo/ui';
+import clsx from 'clsx';
import {
motion,
useMotionTemplate,
@@ -7,16 +10,12 @@ import {
type MotionStyle,
type MotionValue,
} from 'framer-motion';
+import { Check, Reply } from 'lucide-react';
import { useTheme } from 'next-themes';
-import { UserBadge } from '@repo/ui';
import Image, { type StaticImageData } from 'next/image';
-import Link from 'next/link';
import { useEffect, useState, type MouseEvent } from 'react';
-import { Check, Reply } from 'lucide-react';
-import clsx from 'clsx';
-import { z } from 'zod';
-import type { Difficulty } from '@repo/db/types';
import { useInView } from 'react-intersection-observer';
+import { z } from 'zod';
import { Markdown } from '../ui/markdown';
import { Steps } from '../wizard/Steps';
import { useIsMobile } from '~/utils/useIsMobile';
@@ -189,19 +188,15 @@ export function ChallengeCreationCard({
};
}) {
const { resolvedTheme } = useTheme();
- const [step, setStep] = useState(0);
+ const { currentNumber: step, increment } = useNumberCycler();
const steps = [
- { id: '1', name: 'πŸ†', schema: z.any() },
- { id: '2', name: 'πŸ‘', schema: z.any() },
- { id: '3', name: '🍌', schema: z.any() },
- { id: '4', name: 'πŸ’¦', schema: z.any() },
+ { id: '1', name: 'πŸ’³ Card', schema: z.any() },
+ { id: '2', name: 'πŸ“„ Prompt', schema: z.any() },
+ { id: '3', name: 'πŸ“” Tests', schema: z.any() },
+ { id: '4', name: 'πŸš€ Submit', schema: z.any() },
];
return (
<FeatureCard {...props}>
- <div className="absolute -right-4 bottom-4 w-full md:relative md:-right-16 md:bottom-0 md:-mr-36 md:-mt-24">
- <Steps current={step} onChange={(idx) => setStep(idx)} steps={steps} />
- </div>
-
<div
className={clsx(
{ 'translate-x-0 opacity-0': step < 3 },
@@ -352,22 +347,34 @@ export function ChallengeCreationCard({
maxWidth: 'unset',
}}
/>
+ <div className="absolute -right-4 bottom-4 w-full">
+ <Steps current={step} onChange={() => {}} steps={steps} />
+ </div>
</>
)}
- {/* whole card is a "Next button" */}
<div
className="absolute left-0 top-0 z-50 h-full w-full cursor-pointer"
- onClick={() => (step >= 3 ? setStep(0) : setStep((step) => step + 1))}
+ onClick={() => increment()}
/>
</FeatureCard>
);
}
const solutionComment = `\`\`\`ts
-// CODE START
-type Get<T, K> = string
+type MyPick<T, K extends keyof T> = { [P in K]: T[P] };
\`\`\``;
+function Badge({ name }: { name: string }) {
+ return (
+ <Button
+ tabIndex={-1}
+ className="-ml-[0.33rem] flex h-auto w-fit items-center rounded-full bg-transparent py-1 pl-[0.33rem] pr-2 text-xs font-bold text-neutral-700 hover:bg-black/10 dark:text-white dark:hover:bg-white/20"
+ size="sm"
+ >
+ @{name}
+ </Button>
+ );
+}
export function CollaborativeEnvironmentCard(props: CardProps) {
const isMobile = useIsMobile();
const { ref, inView } = useInView({
@@ -388,10 +395,10 @@ export function CollaborativeEnvironmentCard(props: CardProps) {
)}
>
<div className="flex items-center gap-2">
- <UserBadge username="abc" linkComponent={Link} />
+ <Badge name="dax" />
<div className="text-xs text-neutral-500">5 years ago</div>
</div>
- pls halp i give ap
+ Implementing Pick in TypeScript is hard, can anyone help?
</div>
<div
className={clsx(
@@ -402,7 +409,7 @@ export function CollaborativeEnvironmentCard(props: CardProps) {
>
<Reply className="absolute -left-8 h-4 w-4 opacity-50" />
<div className="flex items-center gap-2">
- <UserBadge username="defg" linkComponent={Link} />
+ <Badge name="trash" />
<div className="text-xs text-neutral-500">just now</div>
</div>
ez, the answer is
@@ -417,7 +424,7 @@ export function CollaborativeEnvironmentCard(props: CardProps) {
>
<Reply className="absolute -left-8 h-4 w-4 opacity-50" />
<div className="flex items-center gap-2">
- <UserBadge username="69" linkComponent={Link} />
+ <Badge name="nikita" />
<div className="text-xs text-neutral-500">just now</div>
</div>
<Image
@@ -444,7 +451,7 @@ export function CuratedTracksCard(props: CardProps) {
>
<div className="flex w-[69%] items-center justify-between gap-3 rounded-b-lg rounded-t-xl bg-neutral-500/10 p-2 pl-3">
<span className="flex items-center gap-1 text-xs font-semibold tracking-wide">
- Array / String
+ Typescript Foundations
</span>
</div>
@@ -482,27 +489,27 @@ const BGS_BY_DIFFICULTY = {
const tracks: Track[] = [
{
id: '2',
- label: 'Unshift',
+ label: 'Infer',
difficulty: 'EASY',
},
{
id: '3',
- label: 'Append Argument',
+ label: 'Map Types',
difficulty: 'MEDIUM',
},
{
id: '5',
- label: 'Get Readonly Keys',
+ label: 'Classes',
difficulty: 'EXTREME',
},
{
id: '4',
- label: 'CamelCase',
+ label: 'Branded Types',
difficulty: 'HARD',
},
{
id: '1',
- label: 'Awaited',
+ label: 'Generics',
difficulty: 'BEGINNER',
},
];
@@ -541,3 +548,34 @@ function Track({ className, difficulty, id, label }: Track) {
</label>
);
}
+
+function useNumberCycler() {
+ const [currentNumber, setCurrentNumber] = useState(0);
+ const [dummy, setDummy] = useState(0);
+
+ const increment = () => {
+ setCurrentNumber((prevNumber) => {
+ return (prevNumber + 1) % 4;
+ });
+
+ setDummy((prev) => prev + 1);
+ };
+
+ useEffect(() => {
+ const intervalId = setInterval(() => {
+ setCurrentNumber((prevNumber) => {
+ return (prevNumber + 1) % 4;
+ });
+ }, 5000);
+
+ return () => {
+ console.log('reset');
+ clearInterval(intervalId);
+ };
+ }, [dummy]);
+
+ return {
+ increment,
+ currentNumber,
+ };
+}
diff --git a/apps/web/src/components/landing/features.tsx b/apps/web/src/components/landing/features.tsx
index 6b304c6a..3a720c69 100644
--- a/apps/web/src/components/landing/features.tsx
+++ b/apps/web/src/components/landing/features.tsx
@@ -126,9 +126,9 @@ function Features() {
title="Challenge Creation"
/>
<CuratedTracksCard
- description="Tracks features curated TypeScript challenges, spanning various topics and difficulty levels, to advance your TypeScript skills."
+ description="Tracks are curated challenges, spanning various topics and difficulty levels, to advance your TypeScript skills."
bgClass="lg:bg-gradient-to-tl"
- title="Curated Tracks"
+ title="Learning Tracks"
/>
</div>
</div>
diff --git a/apps/web/src/components/ui/navigation.tsx b/apps/web/src/components/ui/navigation.tsx
index b5eb2ec5..71114a73 100644
--- a/apps/web/src/components/ui/navigation.tsx
+++ b/apps/web/src/components/ui/navigation.tsx
@@ -16,8 +16,8 @@ import { useTheme } from 'next-themes';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { useContext, useEffect, useState } from 'react';
+import { FeatureFlagContext } from '~/app/feature-flag-provider';
import { getBaseUrl } from '~/utils/getBaseUrl';
-import { FeatureFlagContext } from '~/app/providers';
export function Navigation() {
const pathname = usePathname();
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index de334a3b..8987aa8a 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -301,31 +301,6 @@ main {
opacity: 1;
transform-origin: center center;
background-repeat: no-repeat;
- animation: plink 15s ease infinite;
-}
-
-@keyframes plink {
- 0% {
- opacity: 1;
- }
- 69% {
- opacity: 1;
- }
- 70% {
- opacity: 0.7;
- }
- 71% {
- opacity: 1;
- }
- 72% {
- opacity: 0.3;
- }
- 80% {
- opacity: 1;
- }
- 100% {
- opacity: 1;
- }
}
.lamp::after {
@@ -335,6 +310,7 @@ main {
overflow: hidden;
opacity: 0.1;
-webkit-mask-image: radial-gradient(140px 50% at 50% 100%, black, transparent);
+ mask-image: radial-gradient(140px 50% at 50% 100%, black, transparent);
}
.hide-scrollbar::-webkit-scrollbar {