From 4a84f7e33515a67117949e0ab495ee1fdfc97da1 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Fri, 19 Jul 2024 11:00:46 +0800 Subject: [PATCH] docs: update blog ref to zhuanlan (#49960) --- .dumi/theme/slots/Content/ColumnCard.tsx | 148 ++++++++++-------- docs/blog/build-ghost.en-US.md | 1 + docs/blog/build-ghost.zh-CN.md | 1 + docs/blog/check-conduct.en-US.md | 2 + docs/blog/check-conduct.zh-CN.md | 2 + docs/blog/color-picker.en-US.md | 1 + docs/blog/color-picker.zh-CN.md | 1 + docs/blog/config-provider-style.en-US.md | 1 + docs/blog/config-provider-style.zh-CN.md | 1 + ...tor-development-maintenance-guide.en-US.md | 3 + ...tor-development-maintenance-guide.zh-CN.md | 5 +- docs/blog/css-in-js.en-US.md | 3 + docs/blog/css-in-js.zh-CN.md | 3 + docs/blog/extract-ssr.en-US.md | 3 + docs/blog/extract-ssr.zh-CN.md | 3 + docs/blog/getContainer.en-US.md | 2 + docs/blog/getContainer.zh-CN.md | 2 + docs/blog/github-actions-workflow.en-US.md | 1 + docs/blog/github-actions-workflow.zh-CN.md | 1 + docs/blog/mock-project-build.en-US.md | 3 + docs/blog/mock-project-build.zh-CN.md | 3 + docs/blog/modal-hook-order.en-US.md | 3 + docs/blog/modal-hook-order.zh-CN.md | 3 + docs/blog/render-times.en-US.md | 3 + docs/blog/render-times.zh-CN.md | 3 + docs/blog/testing-migrate.en-US.md | 3 + docs/blog/testing-migrate.zh-CN.md | 3 + docs/blog/to-be-collaborator.en-US.md | 2 + docs/blog/to-be-collaborator.zh-CN.md | 2 + docs/blog/to-be-what-you-see.en-US.md | 3 + docs/blog/to-be-what-you-see.zh-CN.md | 3 + docs/blog/tooltip-align.en-US.md | 3 + docs/blog/tooltip-align.zh-CN.md | 3 + docs/blog/virtual-table.en-US.md | 1 + docs/blog/virtual-table.zh-CN.md | 1 + 35 files changed, 156 insertions(+), 70 deletions(-) diff --git a/.dumi/theme/slots/Content/ColumnCard.tsx b/.dumi/theme/slots/Content/ColumnCard.tsx index 4e41d54d6f..27086deed7 100644 --- a/.dumi/theme/slots/Content/ColumnCard.tsx +++ b/.dumi/theme/slots/Content/ColumnCard.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { RightOutlined, YuqueOutlined, ZhihuOutlined } from '@ant-design/icons'; import { Button, Card, Divider } from 'antd'; import { createStyles } from 'antd-style'; +import classNames from 'classnames'; import useLocale from '../../../hooks/useLocale'; import JuejinLogo from './JuejinLogo'; @@ -42,6 +43,7 @@ const useStyle = createStyles(({ token, css }) => ({ color: #444; font-size: ${token.fontSizeLG}px; font-weight: ${token.fontWeightStrong}; + user-select: none; `, subTitle: css` display: flex; @@ -54,37 +56,34 @@ const useStyle = createStyles(({ token, css }) => ({ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - .logo { - width: 24px; - height: 24px; - font-size: 24px; - &.zhihu-logo { - color: #056de8; - } - &.yuque-logo { - color: #00b96b; - } - &.juejin-logo { - color: #1e80ff; - } + `, + logo: css` + width: 24px; + height: 24px; + font-size: 24px; + &.zhihu-logo { + color: #056de8; } - .arrowIcon { - color: #8a8f8d; - margin: 0 ${token.marginXS}px; - font-size: ${token.fontSizeSM}px; + &.yuque-logo { + color: #00b96b; } - .zl-btn { - display: flex; - align-items: center; - justify-content: center; - padding: 0; - color: #646464; + &.juejin-logo { + color: #1e80ff; } `, - btn: css` - display: flex; - justify-content: center; - align-items: center; + arrowIcon: css` + color: #8a8f8d; + margin: 0 ${token.marginXS}px; + font-size: ${token.fontSizeSM}px; + `, + zlBtn: css` + padding: 0; + color: #646464; + `, + discussLogo: css` + width: 16px; + height: 16px; + font-size: 16px; `, })); @@ -114,7 +113,18 @@ interface Props { const ColumnCard: React.FC = ({ zhihuLink, yuqueLink, juejinLink }) => { const [locale] = useLocale(locales); const { - styles: { card, bigTitle, cardBody, left, title, subTitle, btn }, + styles: { + card, + bigTitle, + cardBody, + left, + title, + subTitle, + logo, + arrowIcon, + zlBtn, + discussLogo, + }, } = useStyle(); if (!zhihuLink && !yuqueLink && !juejinLink) { return null; @@ -123,52 +133,54 @@ const ColumnCard: React.FC = ({ zhihuLink, yuqueLink, juejinLink }) => {

{locale.bigTitle}

{zhihuLink && ( -
-
- antd -
-

Ant Design

-
- - - + <> + +
+
+ antd +
+

Ant Design

+
+ + + +
+
- -
+ )} {yuqueLink && ( <>
- antd + antd

Ant Design

- - + +