Skip to content

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

Nikitafy landing (+ some comments stuff) (#316)

PickleNik5de18fff99ff
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 8a87da71..4f9dc546 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -2,7 +2,7 @@ import Head from 'next/head';
import { Provider as BalancerProvider } from 'react-wrap-balancer';
import Hero from '~/components/landing/hero';
import Features from '~/components/landing/features';
-import Community from '~/components/landing/community';
+import Community from '~/components/landing/community/community';
import Waitlist from '~/components/landing/waitlist/banner';
import { Footsies } from '~/components/ui/footsies';
diff --git a/src/assets/images/background_pattern_flipped.png b/src/assets/images/background_pattern_flipped.png
new file mode 100644
index 00000000..a75ae080
Binary files /dev/null and b/src/assets/images/background_pattern_flipped.png differ
diff --git a/src/components/challenge/comments/comment-input.tsx b/src/components/challenge/comments/comment-input.tsx
index 513e3f79..71b3203d 100644
--- a/src/components/challenge/comments/comment-input.tsx
+++ b/src/components/challenge/comments/comment-input.tsx
@@ -26,27 +26,25 @@ export function CommentInput({ mode, onCancel, onChange, onKeyDown, value, onSub
useAutosizeTextArea(textAreaRef, value, commentMode);
return (
- <div className="m-2 mt-0 flex flex-col rounded-xl rounded-br-lg bg-background/90 bg-neutral-100 backdrop-blur-sm dark:border-zinc-700 dark:bg-zinc-700/90">
- <div>
- {commentMode === 'editor' && (
- <Textarea
- ref={textAreaRef}
- value={value}
- onChange={(e) => onChange(e.target.value)}
- onKeyDown={(e) => {
- if (isSubmitting) return;
- onKeyDown(e);
- }}
- className="resize-none border-0 px-3 py-2 focus-visible:ring-0 focus-visible:ring-offset-0"
- placeholder="Enter your comment here."
- />
- )}
- {commentMode === 'preview' && (
- <div className="p-2">
- <Markdown>{value}</Markdown>
- </div>
- )}
- </div>
+ <div className="flex flex-col rounded-xl rounded-br-lg bg-background/90 bg-neutral-100 backdrop-blur-sm dark:border-zinc-700 dark:bg-zinc-700/90">
+ {commentMode === 'editor' && (
+ <Textarea
+ ref={textAreaRef}
+ value={value}
+ onChange={(e) => onChange(e.target.value)}
+ onKeyDown={(e) => {
+ if (isSubmitting) return;
+ onKeyDown(e);
+ }}
+ className="resize-none border-0 px-3 py-2 focus-visible:ring-0 focus-visible:ring-offset-0 md:max-h-[calc(100vh_-_232px)]"
+ placeholder="Enter your comment here."
+ />
+ )}
+ {commentMode === 'preview' && (
+ <div className="min-h-[5rem] overflow-y-auto break-words px-3 pt-2 text-sm md:max-h-[calc(100vh_-_232px)]">
+ <Markdown>{value}</Markdown>
+ </div>
+ )}
<div className="flex justify-end">
<div className="flex gap-2 p-2">
<Button
diff --git a/src/components/challenge/comments/comment.tsx b/src/components/challenge/comments/comment.tsx
index 5e07487c..a11efb86 100644
--- a/src/components/challenge/comments/comment.tsx
+++ b/src/components/challenge/comments/comment.tsx
@@ -112,22 +112,65 @@ const Comment = ({ comment, readonly = false }: CommentProps) => {
return (
<div className="flex flex-col gap-1 p-3 pt-2">
- <div className="flex items-start justify-between pr-[0.4rem]">
+ <div className="flex items-start justify-between gap-4 pr-[0.4rem]">
<div className="flex items-center gap-1">
<UserBadge username={comment.user.name ?? ''} />
- </div>
- <div className="flex items-center gap-1">
<Tooltip delayDuration={0.05}>
<TooltipTrigger asChild>
- <span className="mr-2 whitespace-nowrap text-sm text-neutral-500">
+ <span className="whitespace-nowrap text-[0.8rem] text-neutral-500 dark:text-neutral-400">
{getRelativeTime(comment.createdAt)}
</span>
</TooltipTrigger>
<TooltipContent align="start" className="rounded-xl" alignOffset={-55}>
- <span className="text-white-500 text-xs">{comment.createdAt.toLocaleString()}</span>
+ <span className="text-xs text-white">{comment.createdAt.toLocaleString()}</span>
</TooltipContent>
</Tooltip>
</div>
+ <div className="to-200% my-auto h-[1px] w-full bg-zinc-300 dark:bg-zinc-600" />
+ <div className="my-auto flex items-center gap-4">
+ {!readonly && (
+ <>
+ <div
+ onClick={() => {
+ copyPathNotifyUser();
+ }}
+ className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300"
+ >
+ <Share className="h-3 w-3" />
+ <div className="hidden text-[0.8rem] sm:block">Share</div>
+ </div>
+ {/* TODO: make dis work */}
+ <button className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300">
+ <Reply className="h-4 w-4" />
+ <div className="hidden text-[0.8rem] sm:block">Reply</div>
+ </button>
+ {isAuthor && (
+ <button
+ onClick={() => setIsEditing(!isEditing)}
+ className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300"
+ >
+ <Pencil className="h-3 w-3" />
+ <div className="hidden text-[0.8rem] sm:block">Edit</div>
+ </button>
+ )}
+ {/* TODO: make dis work */}
+ {isAuthor ? (
+ <CommentDeleteDialog comment={comment} asChild>
+ <button className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300">
+ <Trash2 className="h-3 w-3" />
+ <div className="hidden text-[0.8rem] sm:block">Delete</div>
+ </button>
+ </CommentDeleteDialog>
+ ) : (
+ <ReportDialog reportType="COMMENT" commentId={comment.id}>
+ <button className="flex cursor-pointer items-center text-[0.8rem] text-neutral-400 duration-200 hover:text-neutral-500 dark:text-neutral-600 dark:hover:text-neutral-500">
+ Report
+ </button>
+ </ReportDialog>
+ )}
+ </>
+ )}
+ </div>
</div>
<div>
{!isEditing && (
@@ -151,65 +194,23 @@ const Comment = ({ comment, readonly = false }: CommentProps) => {
</p>
)}
{isEditing && (
- <CommentInput
- value={text}
- onCancel={() => {
- setIsEditing(false);
- }}
- onChange={setText}
- onKeyDown={handleEnterKey}
- onSubmit={async () => {
- await updateChallengeComment();
- setIsEditing(false);
- }}
- mode="edit"
- />
- )}
- </div>
- <>
- {!readonly && (
- <div className="flex items-center gap-4 py-4">
- <div
- onClick={() => {
- copyPathNotifyUser();
+ <div className="my-2">
+ <CommentInput
+ value={text}
+ onCancel={() => {
+ setIsEditing(false);
}}
- className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300"
- >
- <Share size={16} />
- <div className="text-xs">Share</div>
- </div>
- {/* TODO: make dis work */}
- <button className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300">
- <Reply size={18} />
- <div className="text-xs">Reply</div>
- </button>
- {isAuthor && (
- <button
- onClick={() => setIsEditing(!isEditing)}
- className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300"
- >
- <Pencil size={16} />
- <div className="text-xs">Edit</div>
- </button>
- )}
- {/* TODO: make dis work */}
- {isAuthor ? (
- <CommentDeleteDialog comment={comment} asChild>
- <button className="flex cursor-pointer items-center gap-1 text-neutral-500 duration-200 hover:text-neutral-400 dark:text-neutral-400 dark:hover:text-neutral-300">
- <Trash2 size={16} />
- <div className="text-xs">Delete</div>
- </button>
- </CommentDeleteDialog>
- ) : (
- <ReportDialog reportType="COMMENT" commentId={comment.id}>
- <button className="flex cursor-pointer items-center text-sm text-neutral-400 duration-200 hover:text-neutral-500 dark:text-neutral-600 dark:hover:text-neutral-500">
- Report
- </button>
- </ReportDialog>
- )}
+ onChange={setText}
+ onKeyDown={handleEnterKey}
+ onSubmit={async () => {
+ await updateChallengeComment();
+ setIsEditing(false);
+ }}
+ mode="edit"
+ />
</div>
)}
- </>
+ </div>
</div>
);
};
diff --git a/src/components/challenge/comments/index.tsx b/src/components/challenge/comments/index.tsx
index 97a34cb8..681b8882 100644
--- a/src/components/challenge/comments/index.tsx
+++ b/src/components/challenge/comments/index.tsx
@@ -115,19 +115,21 @@ export const Comments = ({ rootId, commentCount, type }: Props) => {
className={clsx(
'custom-scrollable-element flex flex-col overscroll-contain duration-300',
{
- 'h-[calc(100vh_-_164px)] pb-2': showComments,
+ 'h-64 pb-4 md:h-[calc(100vh_-_164px)]': showComments,
'h-0 overflow-y-hidden': !showComments,
'overflow-y-auto': showComments && data?.comments.length !== 0,
},
)}
>
- <CommentInput
- onChange={setText}
- value={text}
- onKeyDown={handleEnterKey}
- onSubmit={createChallengeComment}
- mode="create"
- />
+ <div className="m-2 mt-0">
+ <CommentInput
+ onChange={setText}
+ value={text}
+ onKeyDown={handleEnterKey}
+ onSubmit={createChallengeComment}
+ mode="create"
+ />
+ </div>
{status === 'loading' && <CommentSkeleton />}
<div className="flex-1">
{status === 'success' &&
diff --git a/src/components/challenge/solutions/solution-detail.tsx b/src/components/challenge/solutions/solution-detail.tsx
index ffb90995..55266ab3 100644
--- a/src/components/challenge/solutions/solution-detail.tsx
+++ b/src/components/challenge/solutions/solution-detail.tsx
@@ -30,62 +30,66 @@ export function SolutionDetails({ solution }: Props) {
};
return (
- <div className="relative flex h-full flex-col">
- <div className="sticky right-0 top-0 flex w-full border-b border-zinc-300 bg-background/90 p-2 backdrop-blur-sm dark:border-zinc-700 dark:bg-muted/90">
- <Link href={`/challenge/${solution.challengeId}/solutions`}>
- <X size={20} className="stroke-gray-500 hover:stroke-gray-400" />
- </Link>
- </div>
- <div className="custom-scrollable-element flex-1 overflow-y-auto px-4 py-3">
- <div className="mb-5 flex flex-col gap-3">
- <div className="flex items-center justify-between">
- <div className="flex items-center gap-2">
- <Avatar>
- <AvatarImage src={solution.user?.image ?? ''} alt="github profile picture" />
- <AvatarFallback>{solution.user?.name}</AvatarFallback>
- </Avatar>
- <TypographyLarge>{solution.title}</TypographyLarge>
- </div>
- <div className="flex items-center gap-2">
- <Tooltip>
- <TooltipTrigger asChild>
- <Button
- variant="ghost"
- onClick={handleShareClick}
- className="group p-0 text-gray-500 group-hover:text-gray-400"
- >
- <Share className="mr-2 h-4 w-4 stroke-gray-500 group-hover:stroke-gray-400" />
- </Button>
- </TooltipTrigger>
- <TooltipContent>
- <p>Share challenge</p>
- </TooltipContent>
- </Tooltip>
- <ReportDialog reportType="SOLUTION" solutionId={solution.id as number}>
- <ActionMenu
- items={[
- {
- key: 'report',
- label: 'Report',
- icon: 'Flag',
- },
- ]}
- onChange={() => {
- // do nothing
- }}
- />
- </ReportDialog>
+ <div className="relative h-full">
+ <div className="relative flex h-full flex-col">
+ <div className="sticky right-0 top-0 flex w-full border-b border-zinc-300 bg-background/90 p-2 backdrop-blur-sm dark:border-zinc-700 dark:bg-muted/90">
+ <Link href={`/challenge/${solution.challengeId}/solutions`}>
+ <X size={20} className="stroke-gray-500 hover:stroke-gray-400" />
+ </Link>
+ </div>
+ <div className="custom-scrollable-element flex-1 overflow-y-auto px-4 py-3">
+ <div className="mb-5 flex flex-col gap-3">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2">
+ <Avatar>
+ <AvatarImage src={solution.user?.image ?? ''} alt="github profile picture" />
+ <AvatarFallback>{solution.user?.name}</AvatarFallback>
+ </Avatar>
+ <TypographyLarge>{solution.title}</TypographyLarge>
+ </div>
+ <div className="flex items-center gap-2">
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <Button
+ variant="ghost"
+ onClick={handleShareClick}
+ className="group p-0 text-gray-500 group-hover:text-gray-400"
+ >
+ <Share className="mr-2 h-4 w-4 stroke-gray-500 group-hover:stroke-gray-400" />
+ </Button>
+ </TooltipTrigger>
+ <TooltipContent>
+ <p>Share challenge</p>
+ </TooltipContent>
+ </Tooltip>
+ <ReportDialog reportType="SOLUTION" solutionId={solution.id as number}>
+ <ActionMenu
+ items={[
+ {
+ key: 'report',
+ label: 'Report',
+ icon: 'Flag',
+ },
+ ]}
+ onChange={() => {
+ // do nothing
+ }}
+ />
+ </ReportDialog>
+ </div>
</div>
- </div>
- <div className="flex items-center gap-4">
- <UserBadge username={solution.user?.name ?? ''} />
- <div className="flex items-center">
- <Calendar className="mr-2 h-4 w-4 stroke-gray-400" />
- <span className="text-xs text-gray-400">{solution?.createdAt?.toLocaleString()}</span>
+ <div className="flex items-center gap-4">
+ <UserBadge username={solution.user?.name ?? ''} />
+ <div className="flex items-center">
+ <Calendar className="mr-2 h-4 w-4 stroke-gray-400" />
+ <span className="text-xs text-gray-400">
+ {solution?.createdAt?.toLocaleString()}
+ </span>
+ </div>
</div>
</div>
+ <Markdown>{solution.description || ''}</Markdown>
</div>
- <Markdown>{solution.description || ''}</Markdown>
</div>
<Comments
rootId={solution.id as number}
diff --git a/src/components/landing/community.tsx b/src/components/landing/community.tsx
deleted file mode 100644
index 71641fab..00000000
--- a/src/components/landing/community.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-// eslint-disable-next-line no-restricted-imports
-// import { Octokit } from 'octokit';
-
-// eslint-disable-next-line no-restricted-imports
-import { contributors } from '../../../public/contributors';
-
-const Community = async function () {
- // async function getOcto() {
- // if (!process.env.PROD) {
- // console.log('You are not in production mode. Mocking data.');
- // return Array(13).fill({
- // login: 'PickleNik',
- // avatar_url: 'https://avatars.githubusercontent.com/u/31113245?v=4',
- // html_url: 'https://github.com/PickleNik',
- // });
- // }
- // if (!process.env.GITHUB_TOKEN) {
- // console.error('No GitHub token provided. Please set GITHUB_TOKEN env var.');
- // return [];
- // }
- //
- // // TODO: hacksore already thinking about making the Graphql api work here
- // const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
- // const response = await octokit.request('GET /repos/{owner}/{repo}/contributors', {
- // owner: 'bautistaa',
- // repo: 'typehero',
- // headers: {
- // 'X-GitHub-Api-Version': '2022-11-28',
- // },
- // });
- // // put all avatar urls in a list
- // return response.data.map((contributor) => contributor);
- // }
- // const avatars = await getOcto();
- //
-
- return (
- <section className="container mt-[172px] flex flex-col justify-center md:mb-[172px] lg:flex-row lg:items-center">
- <div className="flex flex-1 flex-col items-center pb-36 lg:items-start lg:pb-0">
- <h2 className="mb-2 text-center text-4xl font-bold lg:text-left">Built by the community</h2>
- <span className="text-neutral-400 dark:text-neutral-600">
- By developers, for developers
- </span>
- <p className="my-8 max-w-[50ch] bg-transparent px-8 text-center leading-8 text-black/50 dark:text-white/50 lg:px-0 lg:text-left">
- TypeHero is free, open-source, and built by developers just like you. These are some of
- the contributors who made this possible so far.
- </p>
- <div className="flex flex-col gap-3 sm:flex-row">
- <button className="group mx-auto flex items-center gap-2 rounded-xl bg-neutral-200 px-3 py-2 text-sm font-bold duration-300 hover:bg-[#5865F2] hover:text-white dark:bg-neutral-800 dark:hover:bg-[#5865F2]">
- <svg
- className="h-4 w-4 fill-current group-hover:rotate-[360deg]"
- style={{ transition: 'color 0s, transform 0.3s' }}
- role="img"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- >
- <title>Discord</title>
- <path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" />
- </svg>
- Join the Discord
- </button>
- <button className="group flex items-center gap-2 rounded-xl bg-neutral-200 px-3 py-2 text-sm font-bold duration-300 hover:bg-black hover:text-white dark:bg-neutral-800 dark:hover:bg-white dark:hover:text-black">
- <svg
- className="h-4 w-4 fill-current group-hover:rotate-[360deg]"
- style={{ transition: 'color 0s, transform 0.3s' }}
- role="img"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- >
- <title>GitHub</title>
- <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
- </svg>
- Contribute on GitHub
- </button>
- </div>
- </div>
- <div className="relative flex-1 pb-36 pl-4 lg:pb-0">
- <div className="mx-auto flex w-[18.25rem] flex-wrap gap-x-3 gap-y-1 sm:w-[23rem] [&>*:nth-child(7n_+_1)]:ml-[2.375rem] sm:[&>*:nth-child(7n_+_1)]:ml-0 sm:[&>*:nth-child(9n_+_1)]:ml-[2.375rem]">
- {contributors.map((contributor) => (
- <a key={contributor.id} target="_blank" href={contributor.html_url}>
- <div
- style={{ backgroundImage: `url('${contributor.avatar_url}')` }}
- className="honeycombchild h-16 w-16 rounded-full bg-neutral-700 bg-cover"
- ></div>
- </a>
- ))}
- </div>
- </div>
- </section>
- );
-};
-export default Community;
diff --git a/src/components/landing/community/community.module.css b/src/components/landing/community/community.module.css
new file mode 100644
index 00000000..7a0a5dce
--- /dev/null
+++ b/src/components/landing/community/community.module.css
@@ -0,0 +1,57 @@
+/* The module for the background of the banner on the landing page */
+.backdrop {
+ background: linear-gradient(
+ -3deg,
+ hsla(var(--background) / 0.75) 0%,
+ hsla(var(--background) / 0.95) 33%,
+ hsl(var(--background)) 50%
+ ),
+ url('../../../assets/images/background_pattern_flipped.png');
+ background-size: cover;
+ background-position-y: bottom;
+ background-position-x: center;
+ background-repeat: no-repeat;
+}
+
+@media (max-width: 3000px) {
+ .backdrop {
+ background-position-x: 50%;
+ background-size: 3300px;
+ }
+}
+
+@media (max-width: 2000px) {
+ .backdrop {
+ background-position-x: 50%;
+ background-size: 2200px;
+ }
+}
+
+@media (max-width: 1280px) {
+ .backdrop {
+ background-position-x: 50%;
+ background-size: 1800px;
+ }
+}
+@media (max-width: 768px) {
+ .backdrop {
+ background: linear-gradient(
+ -3deg,
+ hsla(var(--background) / 0.75) 0%,
+ hsla(var(--background) / 0.95) 15%,
+ hsl(var(--background)) 30%
+ ),
+ url('../../../assets/images/background_pattern_flipped.png');
+ background-size: 1800px;
+
+ background-position-y: bottom;
+ background-position-x: center;
+ background-repeat: no-repeat;
+ background-position-x: 60%;
+ }
+}
+@media (max-width: 480px) {
+ .backdrop {
+ background-position-x: 70%;
+ }
+}
diff --git a/src/components/landing/community/community.tsx b/src/components/landing/community/community.tsx
new file mode 100644
index 00000000..52102807
--- /dev/null
+++ b/src/components/landing/community/community.tsx
@@ -0,0 +1,133 @@
+// eslint-disable-next-line no-restricted-imports
+// import { Octokit } from 'octokit';
+
+// eslint-disable-next-line no-restricted-imports
+import { contributors } from '../../../../public/contributors';
+
+import { GitBranch } from 'lucide-react';
+
+import styles from '~/components/landing/community/community.module.css';
+import { clsx } from 'clsx';
+import { type CSSProperties } from 'react';
+
+const Community = async function () {
+ // async function getOcto() {
+ // if (!process.env.PROD) {
+ // console.log('You are not in production mode. Mocking data.');
+ // return Array(13).fill({
+ // login: 'PickleNik',
+ // avatar_url: 'https://avatars.githubusercontent.com/u/31113245?v=4',
+ // html_url: 'https://github.com/PickleNik',
+ // });
+ // }
+ // if (!process.env.GITHUB_TOKEN) {
+ // console.error('No GitHub token provided. Please set GITHUB_TOKEN env var.');
+ // return [];
+ // }
+ //
+ // // TODO: hacksore already thinking about making the Graphql api work here
+ // const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
+ // const response = await octokit.request('GET /repos/{owner}/{repo}/contributors', {
+ // owner: 'bautistaa',
+ // repo: 'typehero',
+ // headers: {
+ // 'X-GitHub-Api-Version': '2022-11-28',
+ // },
+ // });
+ // // put all avatar urls in a list
+ // return response.data.map((contributor) => contributor);
+ // }
+ // const avatars = await getOcto();
+ //
+ type WrapperStyle = CSSProperties & {
+ '--bottom': string;
+ };
+
+ return (
+ <>
+ <div className="containerthing -z-10 flex rotate-180 opacity-50 dark:opacity-100">
+ <div
+ className="thething translate-z-0 translate-y-[-200px] rotate-180 scale-[2] duration-1000"
+ style={
+ {
+ '--bottom': 'hsl(211,60%,48%)',
+ } as WrapperStyle
+ }
+ ></div>
+ </div>
+ {/* backdrop styles don't apply for the last pixel row of the elment for some reason no there's p and m offsets*/}
+ <section className={clsx(styles.backdrop, 'relative -mb-[1px] pb-[1px]')}>
+ <div className="backdrop-blur-md">
+ <div className="container flex flex-col justify-center pt-[128px] md:pb-[128px] lg:flex-row lg:items-center">
+ <div className="flex flex-1 flex-col items-center gap-6 pb-36 lg:items-start lg:pb-0">
+ <div className="rounded-full bg-gradient-to-r from-[#31bdc6] to-[#3178c6] p-[1px] brightness-90 contrast-150 dark:brightness-125 dark:contrast-100">
+ <div className="rounded-full bg-white/80 px-3 py-1 dark:bg-black/80">
+ <span className="flex items-center bg-gradient-to-r from-[#31bdc6] to-[#3178c6] bg-clip-text text-transparent">
+ <GitBranch className="mr-2 h-4 w-4 stroke-[#31bdc6] stroke-2" /> By developers,
+ for developers
+ </span>
+ </div>
+ </div>
+ <h2 className="mt-2 text-center text-4xl font-bold lg:text-left">
+ Built by the community
+ </h2>
+ <p className="max-w-[55ch] bg-transparent px-8 text-center leading-8 text-black/50 dark:text-white/50 lg:px-0 lg:text-left">
+ TypeHero is free, open-source, and built by developers just like you. These are some
+ of the contributors who made this possible so far.
+ </p>
+ <div className="flex flex-col gap-3 sm:flex-row">
+ <button className="group mx-auto flex items-center gap-2 rounded-xl bg-neutral-200 px-3 py-2 text-sm font-bold duration-300 hover:bg-[#5865F2] hover:text-white dark:bg-neutral-800 dark:hover:bg-[#5865F2]">
+ <svg
+ className="h-4 w-4 fill-current group-hover:rotate-[360deg]"
+ style={{ transition: 'color 0s, transform 0.3s' }}
+ role="img"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <title>Discord</title>
+ <path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" />
+ </svg>
+ Join the Discord
+ </button>
+ <button className="group flex items-center gap-2 rounded-xl bg-neutral-200 px-3 py-2 text-sm font-bold duration-300 hover:bg-black hover:text-white dark:bg-neutral-800 dark:hover:bg-white dark:hover:text-black">
+ <svg
+ className="h-4 w-4 fill-current group-hover:-rotate-[360deg]"
+ style={{ transition: 'color 0s, transform 0.3s' }}
+ role="img"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <title>GitHub</title>
+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
+ </svg>
+ Contribute on GitHub
+ </button>
+ </div>
+ </div>
+ <div className="relative flex-1 pb-36 pl-4 lg:pb-0">
+ {/* mobile width = w-16(4rem) * 4items + gap-x-3(0.75rem) * 3gaps */}
+ {/* medium width = 4rem * 5items + 0.75rem * 4gaps = 23rem */}
+ {/* large width = 4rem * 6items + 0.75rem * 5gaps = */}
+ <div className="honeycomboverride mx-auto flex w-[18.25rem] flex-wrap gap-x-3 gap-y-1 sm:w-[23rem] xl:w-[27.75rem] xl:[&>*:nth-child(11n_+_1)]:ml-[2.375rem] [&>*:nth-child(7n_+_1)]:ml-[2.375rem] sm:[&>*:nth-child(7n_+_1)]:ml-0 sm:[&>*:nth-child(9n_+_1)]:ml-[2.375rem] xl:[&>*:nth-child(9n_+_1)]:ml-0">
+ {contributors.map((contributor) => (
+ <a
+ className="group rounded-full duration-300 hover:scale-125 active:scale-105 active:duration-100"
+ key={contributor.id}
+ target="_blank"
+ href={contributor.html_url}
+ >
+ <div
+ style={{ backgroundImage: `url('${contributor.avatar_url}')` }}
+ className="honeycombchild h-16 w-16 rounded-3xl bg-cover duration-300 group-hover:rounded-[2rem] group-active:rounded-3xl group-active:duration-100"
+ ></div>
+ </a>
+ ))}
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+ </>
+ );
+};
+export default Community;
diff --git a/src/components/landing/feature-card.tsx b/src/components/landing/feature-card.tsx
index c7a068cc..d4669e9b 100644
--- a/src/components/landing/feature-card.tsx
+++ b/src/components/landing/feature-card.tsx
@@ -50,7 +50,7 @@ export const FeatureCard = ({
return (
<motion.div
- className="animated-feature-cards h-full 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)]"
+ 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={
{
@@ -59,7 +59,7 @@ export const FeatureCard = ({
} as WrapperStyle
}
>
- <motion.div className="group b-black/90 relative h-full w-full overflow-hidden rounded-xl 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">
+ <motion.div className="b-black/90 group relative w-full overflow-hidden rounded-xl 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">
<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>
diff --git a/src/components/landing/features.tsx b/src/components/landing/features.tsx
index 713dd1fc..7d36f7a9 100644
--- a/src/components/landing/features.tsx
+++ b/src/components/landing/features.tsx
@@ -6,18 +6,35 @@ import { Balancer } from 'react-wrap-balancer';
const Features = () => {
return (
- <section className="relative overflow-hidden border-b bg-gradient-to-t from-neutral-400/10 to-transparent">
- <div className="container mb-[128px] grid items-center justify-center">
+ <section id="features" className="relative overflow-hidden">
+ <div className="container mb-[64px] grid items-center justify-center">
<div className="flex flex-col items-center justify-center gap-16">
- <div className="flex flex-col gap-1 text-center">
+ <div className="flex flex-col gap-3 text-center">
+ <a
+ href="#features"
+ className="mx-auto hidden rounded-full bg-gradient-to-r from-[#31bdc6] to-[#3178c6] p-[1px] brightness-90 contrast-150 dark:brightness-125 dark:contrast-100 sm:block"
+ >
+ <div className="rounded-full bg-white/80 px-3 py-1 dark:bg-black/80">
+ <span className="bg-gradient-to-r from-[#31bdc6] to-[#3178c6] bg-clip-text text-transparent">
+ <svg
+ className="mr-1 inline-block h-4 w-4 fill-[#31bdc6]"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="4 4 48 48"
+ >
+ <path d="m19.2 36.4-4.75-10.45L4 21.2l10.45-4.75L19.2 6l4.75 10.45L34.4 21.2l-10.45 4.75ZM36.4 42l-2.35-5.25-5.25-2.35 5.25-2.4 2.35-5.2 2.4 5.2 5.2 2.4-5.2 2.35Z"></path>
+ </svg>
+ many features, wow
+ </span>
+ </div>
+ </a>
<h1 className="text-4xl font-bold">
<Balancer>What&apos;s in TypeHero?</Balancer>
</h1>
- <p className="text-lg text-zinc-400">
+ <p className="text-black/50 dark:text-white/50">
<Balancer>All you need to become a TypeScript menace</Balancer>
</p>
</div>
- <div className="relative grid w-full gap-8 lg:grid-cols-2">
+ <div className="relative z-10 grid w-full gap-8 lg:grid-cols-2">
<FeatureCard
title="Learn & Excel"
description="Create new challenges with a built-in challenge editor and choose accepted solutions"
diff --git a/src/components/landing/hero.tsx b/src/components/landing/hero.tsx
index eccb0ead..9962e796 100644
--- a/src/components/landing/hero.tsx
+++ b/src/components/landing/hero.tsx
@@ -1,7 +1,7 @@
'use client';
import { Balancer } from 'react-wrap-balancer';
-import { Github } from 'lucide-react';
+import { Github, Mail } from 'lucide-react';
import { motion } from 'framer-motion';
import { Button } from '~/components/ui/button';
import { FakeChallengeCard } from '~/components/landing/fake-challenge-card';
@@ -34,14 +34,8 @@ const TypeHeroLogo = () => {
};
const Hero = () => (
- <section className="overflow-hidden">
- {/* <svg className="pointer-events-none mix-blend-soft-light opacity-50 z-10 absolute left-0 top-0 h-full w-full" id="grain">
- <filter id="noise">
- <feTurbulence type="fractalNoise" baseFrequency="1" numOctaves="5" stitchTiles="stitch"></feTurbulence>
- </filter>
- <rect width="100%" height="100%" filter="url(#noise)"></rect>
- </svg> */}
- <div className="container mb-[64px] mt-[90px] lg:mt-0 grid items-center justify-center lg:grid-cols-2">
+ <section className="-mt-[56px] min-h-[calc(100vh)] overflow-hidden lg:min-h-0 lg:pt-[56px]">
+ <div className="container grid min-h-screen items-center justify-center lg:min-h-0 lg:grid-cols-2">
<div className="flex w-full flex-col items-center justify-center gap-10 lg:items-start">
<div className="relative flex w-full items-center justify-center gap-4 lg:justify-start">
<div className="absolute left-1/2 top-1/2 -z-10 hidden h-56 w-56 -translate-x-[15%] -translate-y-[50%] rounded-full bg-slate-400/10 blur-3xl dark:block"></div>
@@ -54,18 +48,40 @@ const Hero = () => (
</h1>
</div>
- <p className="bg-transparent px-8 text-center font-medium leading-8 text-zinc-600 dark:text-zinc-300 lg:px-0 lg:text-left">
+ <p className="max-w-[55ch] bg-transparent px-8 text-center font-medium leading-8 text-black/50 dark:text-white/50 lg:px-0 lg:text-left">
<Balancer>
Connect, collaborate, and grow with a community of TypeScript developers. Elevate your
skills trough interactive coding challenges, discussions, and knowledge sharing
</Balancer>
</p>
<div className="flex gap-3">
- <Button
+ {/* <Button
className="relative flex items-center gap-2 overflow-hidden rounded-xl px-4 py-2 font-bold"
asChild
>
<Link href="/explore">Explore challenges</Link>
+ </Button> */}
+ <Button
+ className="hero-join-button group relative mx-auto w-fit overflow-hidden rounded-xl p-[2px] font-bold transition-all duration-300 hover:bg-transparent hover:shadow-[0_0_2rem_-0.5rem_#3178c6] dark:hidden md:mr-0 lg:mr-auto"
+ asChild
+ >
+ <Link href="/waitlist">
+ <span className="inline-flex h-full w-fit items-center gap-1 rounded-xl bg-neutral-100 px-4 py-2 text-[#3178c6] transition-all duration-300 group-hover:bg-white">
+ <Mail className="mr-1 h-4 w-4 stroke-[3]" />
+ Join the Waitlist
+ </span>
+ </Link>
+ </Button>
+ <Button
+ className="hero-join-button-dark group relative mx-auto hidden w-fit overflow-hidden rounded-xl p-[1px] font-bold transition-all duration-300 dark:block dark:hover:shadow-[0_0_2rem_-0.5rem_#fff8] md:mr-0 lg:mr-auto"
+ asChild
+ >
+ <Link href="/waitlist">
+ <span className="inline-flex h-full w-fit items-center gap-1 rounded-xl px-4 py-2 transition-all duration-300 dark:bg-neutral-900 dark:text-white group-hover:dark:bg-black">
+ <Mail className="mr-1 h-4 w-4 stroke-[3]" />
+ Join the Waitlist
+ </span>
+ </Link>
</Button>
<Button
className="flex items-center gap-2 rounded-xl border-2 px-4 py-2 dark:text-white"
@@ -103,7 +119,7 @@ const Hero = () => (
opacity: 1,
transition: {
duration: 0.4,
- }
+ },
}}
className="group"
>
diff --git a/src/components/landing/waitlist/banner.tsx b/src/components/landing/waitlist/banner.tsx
index 630c82c4..35386779 100644
--- a/src/components/landing/waitlist/banner.tsx
+++ b/src/components/landing/waitlist/banner.tsx
@@ -10,31 +10,30 @@ import styles from '~/components/landing/waitlist/waitlist.module.css';
const Waitlist = () => {
return (
<section className={clsx(styles.backdrop, 'relative overflow-hidden')}>
- <div className="container relative grid grid-cols-1 items-center justify-center md:grid-cols-2">
- <div className="flex flex-col gap-8 pb-16 pt-56 md:py-16">
+ <div className="container relative grid grid-cols-1 items-center justify-center py-[64px] md:grid-cols-2">
+ <div className="flex flex-col gap-8 pb-4 pt-48 sm:px-16 sm:pt-24 md:px-0 md:pt-16">
<h1 className="text-4xl font-bold">
<Balancer>Early birds get the perks</Balancer>
</h1>
- <p className="leading-loose text-zinc-600 dark:text-zinc-400">
+ <p className="leading-8 text-black/50 dark:text-white/50">
<Balancer>
We’re currently working hard to make TypeHero the perfect place for TypeScript
enthusiasts and learners. If you believe TypeHero can help you become a better
TypeScript developer in the future, consider joining our waitlist.
</Balancer>
</p>
-
- <Button
- className="font-boldtransition-shadow group relative w-fit overflow-hidden rounded-xl bg-gradient-to-bl from-blue-400 to-emerald-400 px-[2px] py-[2px] duration-200"
- asChild
- >
- <Link href="/waitlist">
- <span className="group-hover:bg-white group-hover:dark:bg-black inline-flex h-full w-fit items-center gap-1 rounded-[10px] bg-neutral-100 px-4 py-2 font-bold text-black transition-colors duration-200 dark:bg-neutral-900 dark:text-white">
- <Mail className="h-4 w-4" />
- Join the Waitlist
- </span>
- </Link>
- </Button>
</div>
+ <Button
+ className="group relative w-fit overflow-hidden rounded-xl bg-gradient-to-bl from-indigo-400 via-blue-400 to-emerald-400 p-[2px] font-bold transition-all duration-300 hover:rounded-3xl active:rounded-xl active:duration-150 sm:mx-16 md:mx-auto md:mr-0 lg:mr-auto lg:scale-[1.5] lg:hover:scale-[1.6] lg:active:scale-[1.5]"
+ asChild
+ >
+ <Link href="/waitlist">
+ <span className="inline-flex h-full w-fit items-center gap-1 rounded-xl bg-white/90 px-4 py-2 text-black transition-all duration-300 group-hover:rounded-3xl group-hover:bg-white/0 group-hover:text-white dark:bg-black/80 dark:text-white group-hover:dark:bg-black/0 dark:group-hover:text-black">
+ <Mail className="mr-1 h-4 w-4 stroke-[3]" />
+ Join the Waitlist
+ </span>
+ </Link>
+ </Button>
</div>
</section>
);
diff --git a/src/components/landing/waitlist/waitlist.module.css b/src/components/landing/waitlist/waitlist.module.css
index 644b9611..86e1a4dc 100644
--- a/src/components/landing/waitlist/waitlist.module.css
+++ b/src/components/landing/waitlist/waitlist.module.css
@@ -20,7 +20,13 @@
/* The module for the background of the banner on the landing page */
.backdrop {
- background: linear-gradient(0deg, hsl(var(--background)) 5%, rgba(0, 0, 0, 0) 100%),
+ background: linear-gradient(
+ 3deg,
+ hsl(var(--background)) 50%,
+ hsl(var(--background) / 0.75) 66%,
+ hsl(var(--background) / 0.5) 77%,
+ rgba(0, 0, 0, 0) 100%
+ ),
linear-gradient(
225deg,
rgba(59, 131, 199, 0) 44.51%,
@@ -32,6 +38,21 @@
background-position-x: center;
background-repeat: no-repeat;
}
+
+@media (max-width: 3000px) {
+ .backdrop {
+ background-position-x: 50%;
+ background-size: 3300px;
+ }
+}
+
+@media (max-width: 2000px) {
+ .backdrop {
+ background-position-x: 50%;
+ background-size: 2200px;
+ }
+}
+
@media (max-width: 1280px) {
.backdrop {
background-position-x: 50%;
diff --git a/src/components/ui/footsies.tsx b/src/components/ui/footsies.tsx
index d27aa591..a71e56df 100644
--- a/src/components/ui/footsies.tsx
+++ b/src/components/ui/footsies.tsx
@@ -1,13 +1,13 @@
'use client';
-import { Keyboard as KeyboardIcon } from 'lucide-react';
+import { Binary } from 'lucide-react';
export function Footsies() {
return (
<footer className="flex flex-col items-center text-sm font-light">
- <div className="container my-12 flex flex-col justify-between gap-6 px-10 pb-2 lg:flex-row">
+ <div className="container my-4 flex flex-col justify-between gap-6 px-10 pb-2 md:my-12 lg:flex-row">
<div className="space-x-2">
- Built with <KeyboardIcon className="inline-block h-4 w-4 text-blue-500" /> by the Trash
- Devs community. The source code will soon™️ be available on GitHub
+ Built with <Binary className="inline-block h-5 w-5 text-[#31bdc6]" /> by the Trash Devs
+ community. The source code will soon™️ be available on GitHub
</div>
<div className="text-neutral-500">© {new Date().getFullYear()} Type Hero</div>
</div>
diff --git a/src/styles/globals.css b/src/styles/globals.css
index 356f4016..b2f221e9 100644
--- a/src/styles/globals.css
+++ b/src/styles/globals.css
@@ -4,6 +4,8 @@
@layer base {
:root {
+ --gradient-angle: 360deg;
+
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
@@ -83,6 +85,8 @@ html,
body,
#__next,
main {
+ scroll-padding-top: 64px;
+ scroll-behavior: smooth;
height: 100%;
}
.w-md-editor-content {
@@ -162,14 +166,10 @@ main {
}
.features-background-mask {
- mask-image: linear-gradient(
- rgba(0, 0, 0, 0) 0%,
- rgba(0, 0, 0, 0) 50%,
- rgba(0, 0, 0, 1) 100%
- );
+ mask-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%);
-webkit-mask-image: linear-gradient(
- rgba(0, 0, 0, 0) 0%,
- rgba(0, 0, 0, 0) 50%,
+ rgba(0, 0, 0, 0) 0%,
+ rgba(0, 0, 0, 0) 50%,
rgba(0, 0, 0, 1) 100%
);
}
@@ -208,3 +208,137 @@ main {
.container {
@apply mx-auto max-w-[1400px] px-4 md:px-24;
}
+
+/* overrides a conflicting style on the honeycomb grid */
+@media (min-width: 1280px) {
+ .honeycomboverride > *:first-child {
+ margin-left: 2.375rem /* 38px */ !important;
+ }
+}
+
+@property --gradient-angle {
+ syntax: '<angle>'; /* <- defined as type angle for the transition to work */
+ initial-value: 360deg;
+ inherits: false;
+}
+
+.hero-join-button {
+ background: linear-gradient(
+ var(--gradient-angle),
+ hsla(211, 60%, 48%, 0.5),
+ hsla(211, 60%, 48%, 0.1),
+ #3178c6,
+ hsla(211, 60%, 48%, 0.3)
+ );
+ animation: gradient-rotate 5s linear infinite reverse;
+}
+
+.hero-join-button-dark {
+ background: linear-gradient(
+ var(--gradient-angle),
+ hsla(0, 0%, 100%, 0.5),
+ hsla(0, 0%, 100%, 0.1),
+ #fff,
+ hsla(0, 0%, 100%, 0.3)
+ ) !important;
+ animation: gradient-rotate 5s linear infinite reverse;
+}
+
+@keyframes gradient-rotate {
+ 0% {
+ --gradient-angle: 360deg;
+ }
+
+ 100% {
+ --gradient-angle: 0deg;
+ }
+}
+
+.containerthing {
+ position: relative;
+ margin-top: -330px;
+ contain: layout;
+ height: 420px;
+}
+
+.thething {
+ width: 100%;
+ height: 400px;
+ position: relative;
+ margin-bottom: -400px;
+ pointer-events: none;
+ user-select: none;
+ --first: conic-gradient(
+ from 90deg at 80% 50%,
+ hsl(var(--background)),
+ hsl(var(--background)),
+ var(--bottom)
+ );
+ --second: conic-gradient(
+ from 270deg at 20% 50%,
+ var(--bottom),
+ hsl(var(--background)),
+ hsl(var(--background))
+ );
+ -webkit-mask-image: radial-gradient(100% 50% at center center, black, transparent);
+ background-image: var(--first), var(--second);
+ background-attachment: ;
+ background-origin: ;
+ background-clip: ;
+ background-color: ;
+ background-position-x: 1%, 99%;
+ background-position-y: 0%, 0%;
+ background-size: 50% 100%, 50% 100%;
+ opacity: 1;
+ transform-origin: center center;
+ background-repeat: no-repeat;
+ /* animation: glitchy-blink 5s linear infinite; */
+}
+
+@keyframes glitchy-blink {
+ 0% {
+ opacity: 1;
+ }
+ 49% {
+ opacity: 1;
+ }
+ 60% {
+ opacity: 1;
+ }
+ 62% {
+ opacity: 0.7;
+ }
+ 63% {
+ opacity: 0.9;
+ }
+ 64% {
+ opacity: 0.3;
+ }
+ 70% {
+ opacity: 1;
+ }
+ 71% {
+ opacity: 0;
+ }
+ 73% {
+ opacity: 0.5;
+ }
+ 74% {
+ opacity: 0;
+ }
+ 75% {
+ opacity: 1;
+ }
+ 100% {
+ opacity: 1;
+ }
+}
+
+.thething::after {
+ content: '';
+ position: absolute;
+ inset: 0px 0px 50%;
+ overflow: hidden;
+ opacity: 0.1;
+ -webkit-mask-image: radial-gradient(140px 50% at 50% 100%, black, transparent);
+}