Skip to content

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

remove random 2 from description skeleton, remove cursor thing from landing page (#124)

PickleNikee9d4a092d95
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 49101c48..d27098d7 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,27 +1,7 @@
-'use client';
-
import Head from 'next/head';
-import { useRef, useEffect } from 'react';
import { Footsies } from '~/components/ui/footsies';
export default function Index() {
- // cursor blob
- const blobRef = useRef<HTMLDivElement | null>(null);
- useEffect(() => {
- const blob = document.getElementById('cursorthing') as HTMLDivElement;
- blobRef.current = blob;
- window.addEventListener('mousemove', moveBlob);
- function moveBlob(e: MouseEvent) {
- blob.style.translate = `${e.clientX - blob.clientWidth / 2}px ${
- e.clientY - blob.clientHeight / 2
- }px`;
- }
-
- return () => {
- window.removeEventListener('mousemove', moveBlob);
- };
- }, []);
-
return (
<>
<Head>
@@ -37,17 +17,13 @@ export default function Index() {
style={{ minHeight: 'calc(100dvh - 112px)' }}
>
<div
- id="leftBall"
- className="absolute left-1/2 top-1/2 -z-10 h-64 w-64 -translate-x-[30%] -translate-y-[69%] rounded-full bg-black/0 blur-3xl dark:bg-white/20 lg:h-96 lg:w-96"
+ id="rightblob"
+ className="absolute left-1/2 top-1/2 -z-10 hidden h-64 w-64 -translate-x-[30%] -translate-y-[69%] rounded-full bg-white/20 blur-3xl dark:block lg:h-96 lg:w-96"
></div>
<div
- id="riteBall"
- className="absolute right-1/2 top-1/2 -z-10 h-64 w-64 -translate-y-[69%] translate-x-[30%] rounded-full bg-[#3178c6]/0 blur-3xl dark:bg-[#3178c6]/20 lg:h-96 lg:w-96"
+ id="leftblob"
+ className="absolute right-1/2 top-1/2 -z-10 hidden h-64 w-64 -translate-y-[69%] translate-x-[30%] rounded-full bg-[#3178c6]/20 blur-3xl dark:block lg:h-96 lg:w-96"
></div>
- <div
- id="cursorthing"
- className="pointer-events-none fixed left-0 top-0 z-10 h-20 w-20 rounded-full border border-neutral-400 duration-75 ease-out dark:border-neutral-700"
- />
<h1 className="bg-gradient-to-r from-[#3178c6] to-black bg-clip-text text-center text-9xl font-black text-transparent dark:to-white">
Type
<br />
diff --git a/src/components/challenge/description-panel-skeleton.tsx b/src/components/challenge/description-panel-skeleton.tsx
index 15978583..dd564992 100644
--- a/src/components/challenge/description-panel-skeleton.tsx
+++ b/src/components/challenge/description-panel-skeleton.tsx
@@ -90,7 +90,6 @@ export function DescriptionPanelSkeleton() {
</div>
</div>
</TabsContent>
- 2
</Tabs>
</>
);
diff --git a/src/styles/globals.css b/src/styles/globals.css
index 511ab9b5..9e099fda 100644
--- a/src/styles/globals.css
+++ b/src/styles/globals.css
@@ -86,11 +86,8 @@ main {
height: 100%;
}
-#leftBall {
- animation: balls 5s linear infinite alternate;
-}
-
-#riteBall {
+#leftblob,
+#rightblob {
animation: balls 5s linear infinite alternate;
}
@@ -102,9 +99,3 @@ main {
opacity: 0;
}
}
-
-@media (pointer: coarse) {
- #cursorthing {
- display: none;
- }
-}