This is an automated email from the ASF dual-hosted git repository. sunyi pushed a commit to branch sy/add-ai-page1 in repository https://gitbox.apache.org/repos/asf/apisix-website.git
commit 2d83a63840a833e11daeacac2d677081f2d99ccb Author: LiteSun <[email protected]> AuthorDate: Thu Apr 17 14:19:50 2025 +0800 u --- website/src/components/AIGateway/Advantage.tsx | 4 ++-- website/src/components/AIGateway/AvifImage.tsx | 1 - website/src/components/AIGateway/MeetingModal.tsx | 27 ----------------------- website/src/components/AIGateway/data.tsx | 21 ------------------ website/src/components/ChakraWrapper.tsx | 3 +-- 5 files changed, 3 insertions(+), 53 deletions(-) diff --git a/website/src/components/AIGateway/Advantage.tsx b/website/src/components/AIGateway/Advantage.tsx index cf71e055d00..396d0ea0d4d 100644 --- a/website/src/components/AIGateway/Advantage.tsx +++ b/website/src/components/AIGateway/Advantage.tsx @@ -30,7 +30,7 @@ const Advantage: React.FC = () => { </Heading> <Button as="a" - href="https://apisix.apache.org/docs/apisix/plugins/ai-proxy" + href="https://apisix.apache.org/docs/apisix/next/plugins/ai-proxy/" target="_blank" w={{ base: '158px', lg: 'auto' }} h={{ base: '46px', lg: '48px' }} @@ -194,7 +194,7 @@ const Advantage: React.FC = () => { {/* Mobile */} <Box maxW="full" mx="auto" display={{ base: 'unset', md: 'none' }}> <AvifImage - src="https://static.api7.ai/uploads/2025/04/17/OzCNXRTl_apisix-ai-gateway-architecture.png" + src="https://static.api7.ai/uploads/2025/04/17/ykJ74KyV_apisix-ai-gateway-mobile.png" alt="AI Gateway Architecture" objectFit="cover" width="100%" diff --git a/website/src/components/AIGateway/AvifImage.tsx b/website/src/components/AIGateway/AvifImage.tsx index 1dbdab7bcb0..b33560b8698 100644 --- a/website/src/components/AIGateway/AvifImage.tsx +++ b/website/src/components/AIGateway/AvifImage.tsx @@ -1,5 +1,4 @@ import React from 'react'; -// eslint-disable-next-line no-restricted-imports import type { ImageProps } from '@chakra-ui/react'; import { Image } from '@chakra-ui/react'; diff --git a/website/src/components/AIGateway/MeetingModal.tsx b/website/src/components/AIGateway/MeetingModal.tsx deleted file mode 100644 index c09c993e879..00000000000 --- a/website/src/components/AIGateway/MeetingModal.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import type { ButtonProps } from '@chakra-ui/react'; -import { Button } from '@chakra-ui/react'; -import React from 'react'; - -type MeetingButtonProps = { - btnText: React.ReactNode; -} & ButtonProps; - -const MeetingModalButton: React.FC<MeetingButtonProps> = ({ - btnText, - variant = 'primary', - ...rest -}) => ( - <Button - as="a" - target="_blank" - href="/contact" - variant={variant} - position="relative" - overflow="hidden" - {...rest} - > - {btnText} - </Button> -); - -export default MeetingModalButton; diff --git a/website/src/components/AIGateway/data.tsx b/website/src/components/AIGateway/data.tsx index bdf96d2d206..2698535c54c 100644 --- a/website/src/components/AIGateway/data.tsx +++ b/website/src/components/AIGateway/data.tsx @@ -102,24 +102,3 @@ export const useHighlights = () => [ link: 'https://apisix.apache.org/blog/2025/02/24/apisix-ai-gateway-features/', }, ]; - -export const testimonials = [ - { - quoteI18nKey: `"Airwallex has made a smooth transition to multi-cloud and microservices architectures thanks to APISIX's highly optimized and scalable platform and the support of our developer community!“`, - logo: 'https://static.api7.ai/uploads/2023/03/17/27pmMYiq_customers_airwallex.png?imageMogr2/format/webp', - nameI18nKey: 'Ryan Cao', - jobI18nKey: 'Chief Software Architect', - companyI18nKey: 'Airwallex', - link: '/customers/airwallex', - readStoryI18nKey: 'Read the Story', - }, - { - quoteI18nKey: `"API7 solution performs surprisingly well in its practice in production scenarios. We love its high availability, high performance, and rich functionality, allowing us to build and grow our business in a cloud-native way."`, - logo: 'https://static.api7.ai/uploads/2025/03/02/tC4Bzhrn_vivo_logo.avif', - nameI18nKey: 'Xu Zhao', - jobI18nKey: 'Infrastructure Architect', - companyI18nKey: 'Vivo', - link: '/customers/vivo', - readStoryI18nKey: 'Read the Story', - }, -] as const; diff --git a/website/src/components/ChakraWrapper.tsx b/website/src/components/ChakraWrapper.tsx index 2510ebbf978..27eb9d75bab 100644 --- a/website/src/components/ChakraWrapper.tsx +++ b/website/src/components/ChakraWrapper.tsx @@ -13,7 +13,7 @@ import Button from '../theme/AIGateway/Button'; import Text from '../theme/AIGateway/Text'; import Icon from '../theme/AIGateway/Icon'; import Link from '../theme/AIGateway/Link'; -// 定义一个简单的主题 + const theme = extendTheme( { initialColorMode: 'light', @@ -62,7 +62,6 @@ interface ChakraWrapperProps { children: ReactNode; } -// 创建一个可复用的 ChakraWrapper 组件 export const ChakraWrapper: React.FC<ChakraWrapperProps> = ({ children }) => ( <ChakraProvider theme={theme} resetCSS={false}> {children}
