diff --git a/client/src/pages/model/share/components/list.tsx b/client/src/pages/model/share/components/list.tsx index 279411934..d1e1f348b 100644 --- a/client/src/pages/model/share/components/list.tsx +++ b/client/src/pages/model/share/components/list.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Box, Flex, Button, Tooltip } from '@chakra-ui/react'; +import { Box, Flex, Button, Tooltip, Card } from '@chakra-ui/react'; import type { ShareModelItem } from '@/types/model'; import { useRouter } from 'next/router'; import MyIcon from '@/components/Icon'; @@ -18,14 +18,20 @@ const ShareModelList = ({ return ( <> {models.map((model) => ( - - + ))} ); diff --git a/client/src/pages/model/share/index.module.scss b/client/src/pages/model/share/index.module.scss index 02335e410..bd8f264ab 100644 --- a/client/src/pages/model/share/index.module.scss +++ b/client/src/pages/model/share/index.module.scss @@ -5,3 +5,8 @@ overflow: hidden; text-overflow: ellipsis; } +.textlg { + background: linear-gradient(to bottom right, #1237b3 0%, #3370ff 40%, #4e83fd 80%, #85b1ff 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} diff --git a/client/src/pages/model/share/index.tsx b/client/src/pages/model/share/index.tsx index d2d861d63..15f72de26 100644 --- a/client/src/pages/model/share/index.tsx +++ b/client/src/pages/model/share/index.tsx @@ -6,6 +6,7 @@ import { usePagination } from '@/hooks/usePagination'; import type { ShareModelItem } from '@/types/model'; import { useUserStore } from '@/store/user'; import ShareModelList from './components/list'; +import styles from './index.module.scss'; const modelList = () => { const { Loading } = useLoading(); @@ -42,53 +43,51 @@ const modelList = () => { ); return ( - - - - - 应用市场 - - - setSearchText(e.target.value)} - onBlur={() => { - if (searchText === lastSearch.current) return; + + + + AI 应用市场 + + {/* + setSearchText(e.target.value)} + onBlur={() => { + if (searchText === lastSearch.current) return; + getData(1); + lastSearch.current = searchText; + }} + onKeyDown={(e) => { + if (searchText === lastSearch.current) return; + if (e.key === 'Enter') { getData(1); lastSearch.current = searchText; - }} - onKeyDown={(e) => { - if (searchText === lastSearch.current) return; - if (e.key === 'Enter') { - getData(1); - lastSearch.current = searchText; - } - }} - /> - - - - - - - - - + } + }} + /> + */} + + + + + + + - + ); };