From dbe0c4351500a4d852259abf65d5770fd8fe5e34 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 8 Jun 2023 09:38:11 +0800 Subject: [PATCH] Chore: support gradient border and text (#317) --- .../app/configuration/config-prompt/index.tsx | 3 ++- .../configuration/config-prompt/style.module.css | 15 +++++++++++++++ web/app/components/explore/app-list/index.tsx | 4 ++-- .../components/explore/app-list/style.module.css | 8 ++++++++ 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 web/app/components/app/configuration/config-prompt/style.module.css diff --git a/web/app/components/app/configuration/config-prompt/index.tsx b/web/app/components/app/configuration/config-prompt/index.tsx index bf727c70e..4bc5ca8ce 100644 --- a/web/app/components/app/configuration/config-prompt/index.tsx +++ b/web/app/components/app/configuration/config-prompt/index.tsx @@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next' import { useBoolean } from 'ahooks' import cn from 'classnames' import ConfirmAddVar from './confirm-add-var' +import s from './style.module.css' import BlockInput from '@/app/components/base/block-input' import type { PromptVariable } from '@/models/debug' import Tooltip from '@/app/components/base/tooltip' @@ -59,7 +60,7 @@ const Prompt: FC = ({ } return ( -
+
diff --git a/web/app/components/app/configuration/config-prompt/style.module.css b/web/app/components/app/configuration/config-prompt/style.module.css new file mode 100644 index 000000000..40b3f3515 --- /dev/null +++ b/web/app/components/app/configuration/config-prompt/style.module.css @@ -0,0 +1,15 @@ +.gradientBorder { + background: radial-gradient(circle at 100% 100%, #fcfcfd 0, #fcfcfd 10px, transparent 10px) 0% 0%/12px 12px no-repeat, + radial-gradient(circle at 0 100%, #fcfcfd 0, #fcfcfd 10px, transparent 10px) 100% 0%/12px 12px no-repeat, + radial-gradient(circle at 100% 0, #fcfcfd 0, #fcfcfd 10px, transparent 10px) 0% 100%/12px 12px no-repeat, + radial-gradient(circle at 0 0, #fcfcfd 0, #fcfcfd 10px, transparent 10px) 100% 100%/12px 12px no-repeat, + linear-gradient(#fcfcfd, #fcfcfd) 50% 50%/calc(100% - 4px) calc(100% - 24px) no-repeat, + linear-gradient(#fcfcfd, #fcfcfd) 50% 50%/calc(100% - 24px) calc(100% - 4px) no-repeat, + radial-gradient(at 100% 100%, rgba(45,13,238,0.8) 0%, transparent 70%), + radial-gradient(at 100% 0%, rgba(45,13,238,0.8) 0%, transparent 70%), + radial-gradient(at 0% 0%, rgba(42,135,245,0.8) 0%, transparent 70%), + radial-gradient(at 0% 100%, rgba(42,135,245,0.8) 0%, transparent 70%); + border-radius: 12px; + padding: 2px; + box-sizing: border-box; +} \ No newline at end of file diff --git a/web/app/components/explore/app-list/index.tsx b/web/app/components/explore/app-list/index.tsx index e5e57ffb2..bbd52e155 100644 --- a/web/app/components/explore/app-list/index.tsx +++ b/web/app/components/explore/app-list/index.tsx @@ -83,9 +83,9 @@ const Apps: FC = () => { } return ( -
+
-
{t('explore.apps.title')}
+
{t('explore.apps.title')}
{t('explore.apps.description')}