From 9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 3 Nov 2023 21:13:33 +0800 Subject: chore: delete useless codes --- docs/components/logos/TurboAnimated.tsx | 157 -------------------------------- 1 file changed, 157 deletions(-) delete mode 100644 docs/components/logos/TurboAnimated.tsx (limited to 'docs/components/logos/TurboAnimated.tsx') diff --git a/docs/components/logos/TurboAnimated.tsx b/docs/components/logos/TurboAnimated.tsx deleted file mode 100644 index 5c63f30..0000000 --- a/docs/components/logos/TurboAnimated.tsx +++ /dev/null @@ -1,157 +0,0 @@ -import { AnimatePresence, motion, Variants } from "framer-motion"; -import { useTurboSite } from "../SiteSwitcher"; -import cn from "classnames"; -import styles from "../header-logo.module.css"; - -type LogoProps = { - className?: string; - height?: number; -}; - -const LEFT_PADDING = 8; -const RIGHT_PADDING = 12; -// The width of the logo + wordmark. This does not include the "invisible" padding. -const VISUAL_WIDTH = 112; - -const TurboAnimated = ({ height = 32, className = "" }: LogoProps) => { - const site = useTurboSite(); - - return ( - - AI - - - - - - - - - - - - - - - - - - - - {site === "AI" || site === undefined ? ( - - - - - ) : ( - - - - - )} - - - - {/* Turbo Wordmark */} - - - - - - - - - ); -}; - -export default TurboAnimated; - -const variants: Variants = { - visible: { - opacity: 1, - x: 0, - transition: { - duration: 0.3, - }, - }, - hidden: (distance) => ({ - opacity: 0, - x: distance, - transition: { - duration: 0.3, - }, - }), -}; -- cgit v1.2.3-70-g09d2