diff --git a/website/apps/web/src/App.tsx b/website/apps/web/src/App.tsx index 1fb2040246..bc85164db4 100644 --- a/website/apps/web/src/App.tsx +++ b/website/apps/web/src/App.tsx @@ -2,7 +2,7 @@ import { HomeHero } from './components/home/HomeHero' function App() { return ( -
+
diff --git a/website/apps/web/src/components/foundations/GlowButton/GlowButton.tsx b/website/apps/web/src/components/foundations/GlowButton/GlowButton.tsx index 2f3856db81..74d480a09d 100644 --- a/website/apps/web/src/components/foundations/GlowButton/GlowButton.tsx +++ b/website/apps/web/src/components/foundations/GlowButton/GlowButton.tsx @@ -21,28 +21,33 @@ export const GlowButton: FCC = forwardRef< >(({ children, translucent, bordered, href, onClick }, ref) => { const motionConfig: MotionProps = { whileHover: { - scale: 1.03, + scale: 1.05, + backgroundColor: translucent ? 'rgba(39, 39, 42, 0.6)' : 'rgba(39, 39, 42, 0.8)', }, whileTap: { - scale: 0.97, + scale: 0.95, + backgroundColor: 'rgba(39, 39, 42, 0.7)', }, exit: { scale: 0.4, opacity: 0, + filter: 'blur(10px)', }, initial: { scale: 0.4, opacity: 0, + filter: 'blur(10px)', }, animate: { scale: 1, opacity: 1, + filter: 'blur(0px)', }, transition: { type: 'spring', - stiffness: 400, + stiffness: 200, damping: 30, - mass: 1.2, + mass: 0.8, }, } @@ -53,7 +58,7 @@ export const GlowButton: FCC = forwardRef< className={clsx( moduleStyles.root, !translucent && 'bg-zinc-900/80', - translucent && 'bg-zinc-900/80 hover:bg-zinc-700/40', + translucent && 'bg-zinc-900/80', !bordered && 'border-none', 'flex px-6 py-3 active:bg-zinc-800 rounded-lg hover:-translate-y-[1px] active:translate-y-[1px] text-2xl text-white/80 whitespace-nowrap', )} diff --git a/website/apps/web/src/components/home/AnimatedBlobs/AnimatedBlobs.tsx b/website/apps/web/src/components/home/AnimatedBlobs/AnimatedBlobs.tsx index 8fa513aa5e..5a801dc185 100644 --- a/website/apps/web/src/components/home/AnimatedBlobs/AnimatedBlobs.tsx +++ b/website/apps/web/src/components/home/AnimatedBlobs/AnimatedBlobs.tsx @@ -1,4 +1,5 @@ import clsx from 'clsx' +import { motion } from 'framer-motion' const blobs = [ ['bg-red-900 translate-y-36', 'left-[30%]'], @@ -12,9 +13,13 @@ export function AnimatedBlobs() {
{blobs.map((blob, i) => (
-
+ +
+
))}
diff --git a/website/apps/web/src/components/home/HomeActions/HomeActions.tsx b/website/apps/web/src/components/home/HomeActions/HomeActions.tsx index 89ec2c99ab..4c1ec6b7ee 100644 --- a/website/apps/web/src/components/home/HomeActions/HomeActions.tsx +++ b/website/apps/web/src/components/home/HomeActions/HomeActions.tsx @@ -27,7 +27,7 @@ export const HomeActions: FC = () => { } > diff --git a/website/apps/web/src/components/home/HomeHero.tsx b/website/apps/web/src/components/home/HomeHero.tsx index 74c3a3b13f..07e41321e7 100644 --- a/website/apps/web/src/components/home/HomeHero.tsx +++ b/website/apps/web/src/components/home/HomeHero.tsx @@ -1,6 +1,7 @@ import { PerformanceMonitor } from '@react-three/drei' import { Canvas } from '@react-three/fiber' import { ErrorBoundary } from '@sentry/react' +import { motion } from 'framer-motion' import { FC, forwardRef, useRef, useState } from 'react' import { useWindowSize } from 'react-use' @@ -19,7 +20,12 @@ export const HomeHero: FC = () => { return ( <> -
+
{windowDimensions.height >= 768 && ( { )}
-
+ + + @@ -53,14 +61,17 @@ export const HomeHero: FC = () => { } const HomeIndicator = forwardRef((_props, ref) => ( -
友情链接
-
+ )) function ScreenshotsCanvas({ diff --git a/website/apps/web/src/components/home/HomeHeroHeader/HomeHeroHeader.tsx b/website/apps/web/src/components/home/HomeHeroHeader/HomeHeroHeader.tsx index ae66befcfa..8ac72d6b24 100644 --- a/website/apps/web/src/components/home/HomeHeroHeader/HomeHeroHeader.tsx +++ b/website/apps/web/src/components/home/HomeHeroHeader/HomeHeroHeader.tsx @@ -1,18 +1,56 @@ +import { motion } from 'framer-motion' import { FC } from 'react' export const HomeHeroHeader: FC = () => { return ( -
-
-

- MaaAssistantArknights -

-

- 《明日方舟》小助手, - 自动刷图、智能基建换班, - 全日常一键长草 -

-
-
+ +
+
+ + MaaAssistantArknights + + + + 《明日方舟》小助手, + + + 自动刷图、智能基建换班, + + + 全日常一键长草 + + +
+
+
) }