Connect, collaborate, and grow with a community of TypeScript developers
fix some stuff (#357)
PickleNik1af8492074d6
diff --git a/apps/web/src/components/landing/feature-card.tsx b/apps/web/src/components/landing/feature-card.tsxindex 709cbb78..c20b580a 100644--- a/apps/web/src/components/landing/feature-card.tsx+++ b/apps/web/src/components/landing/feature-card.tsx@@ -20,11 +20,13 @@ export function FeatureCard({title,description,className,+ classNameBG,image,}: {title: string;description: string;className?: string;+ classNameBG?: string;image: {dark: StaticImageData;light: StaticImageData;@@ -58,7 +60,9 @@ export function FeatureCard({} as WrapperStyle}>- <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">+ <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>diff --git a/apps/web/src/components/landing/features.tsx b/apps/web/src/components/landing/features.tsxindex 36f7e339..20076a32 100644--- a/apps/web/src/components/landing/features.tsx+++ b/apps/web/src/components/landing/features.tsx@@ -35,8 +35,9 @@ function Features() {</div><div className="relative z-10 grid w-full gap-8 lg:grid-cols-2"><FeatureCard- className="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-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"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,@@ -46,8 +47,9 @@ function Features() {/><FeatureCard- className="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-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"description="Developers can share solutions and engage in discussions through commenting"+ classNameBG="lg:bg-gradient-to-bl"image={{dark: FeatureCardChallengeDark,light: FeatureCardChallengeLight,@@ -57,8 +59,9 @@ function Features() {/><FeatureCard- className="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-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"description="Craft your own coding challenges to share with the Typehero community"+ classNameBG="lg:bg-gradient-to-tr"image={{dark: FeatureCardChallengeDark,light: FeatureCardChallengeLight,@@ -68,8 +71,9 @@ function Features() {/><FeatureCard- className="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-[35%] w-[150%] transition-transform duration-300 group-hover:scale-105 sm:left-[35px] sm:top-[30%] sm:w-[110%]"description="Keep tabs on your coding journey with the ability to track your progress on your user profile"+ classNameBG="lg:bg-gradient-to-tl"image={{dark: FeatureCardChallengeDark,light: FeatureCardChallengeLight,diff --git a/apps/web/src/components/ui/navigation.tsx b/apps/web/src/components/ui/navigation.tsxindex 405ccb0b..ee2c5ef8 100644--- a/apps/web/src/components/ui/navigation.tsx+++ b/apps/web/src/components/ui/navigation.tsx@@ -23,9 +23,9 @@ export function Navigation() {<header className="z-10 w-full"><navclassName={`flex h-14 items-center ${- pathname.startsWith('/challenge') || pathname.startsWith('/admin/challenge')+ pathname?.startsWith('/challenge') || pathname?.startsWith('/admin/challenge')? 'px-4'- : 'container '+ : 'container'}`}><div className="flex w-full items-center justify-between">diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.cssindex 759432e7..c63c74bd 100644--- a/apps/web/src/styles/globals.css+++ b/apps/web/src/styles/globals.css@@ -175,7 +175,7 @@ main {}.animated-feature-cards::before {- @apply pointer-events-none absolute select-none rounded-xl opacity-0 transition-opacity duration-300 hover:opacity-100;+ @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,@@ -184,10 +184,13 @@ main {);z-index: -1;content: '';- top: -1px;- bottom: -1px;- left: -1px;- right: -1px;+ inset: -1px;+}++@media (max-width: 768px) {+ .animated-feature-cards::before {+ background: none !important;+ }}@keyframes movingbackground {