Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com

Update the intro #32

Mergedfukomerged 6 commits intomain fromrefs/pull/32/headmerged by fuko View on GitHub

Showing 1 changed file with 70 additions and 27 deletions.

x
0 of 1 viewed, 1 left
70 additions and 27 deletionssrc/components/HomeIntro.tsxModified
View file
@@ -1,26 +1,58 @@
import { useNavigate } from "@tanstack/react-router";
import { ArrowRightIcon, DatabaseZap } from "lucide-react";
-import { AnimatePresence, motion } from "motion/react";
+import { AnimatePresence, motion, stagger, Variants } from "motion/react";
import { type ReactNode, useCallback, useState } from "react";
import { cn } from "@/lib/utils";
import { Button } from "./ui/button";
import {
Card,
CardContent,
+ CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "./ui/card";
​
-function Bold({ children }: { children: ReactNode }) {
- return <span className="font-bold text-foreground">{children}</span>;
-}
+const container = {
+ hidden: { opacity: 0 },
+ show: {
+ opacity: 1,
+ transition: {
+ when: "beforeChildren",
+ delayChildren: stagger(0.2),
+ },