From 9538fb69fde49278a218cffaa9ff0494e4e33ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=82=92=E7=B1=B3=E7=B2=89?= <970451823@qq.com> Date: Thu, 21 Mar 2024 23:40:09 +0800 Subject: [PATCH] feat(docs-site): added logo and favicon for docs-site and README --- .dumi/global.css | 4 ++++ .dumirc.ts | 7 +++++++ README.md | 2 ++ docs/doc-components/main-info/index.css | 5 +++++ docs/doc-components/main-info/index.tsx | 10 ++++++++++ docs/index.md | 4 +++- public/favicons/favicon-16x16.png | Bin 0 -> 3170 bytes public/favicons/favicon-32x32.png | Bin 0 -> 3688 bytes public/favicons/favicon-64x64.png | Bin 0 -> 4773 bytes public/favicons/favicon.ico | Bin 0 -> 1150 bytes public/logos/main-logo-800.png | Bin 0 -> 63103 bytes public/logos/nav-logo-375.png | Bin 0 -> 16297 bytes 12 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 docs/doc-components/main-info/index.css create mode 100644 docs/doc-components/main-info/index.tsx create mode 100644 public/favicons/favicon-16x16.png create mode 100644 public/favicons/favicon-32x32.png create mode 100644 public/favicons/favicon-64x64.png create mode 100644 public/favicons/favicon.ico create mode 100644 public/logos/main-logo-800.png create mode 100644 public/logos/nav-logo-375.png diff --git a/.dumi/global.css b/.dumi/global.css index 4c8b1fef..808102c5 100644 --- a/.dumi/global.css +++ b/.dumi/global.css @@ -11,3 +11,7 @@ .dumi-default-table-content th { text-align: left; } + +.main-info-logo { + width: 400px; +} diff --git a/.dumirc.ts b/.dumirc.ts index d334a067..da028923 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -2,6 +2,13 @@ import { defineConfig } from 'dumi'; export default defineConfig({ outputPath: 'docs-dist', + favicons: [ + '/favicons/favicon.ico', + '/favicons/favicon-16x16.png', + '/favicons/favicon-32x32.png', + '/favicons/favicon-64x64.png', + ], + logo: '/logos/nav-logo-375.png', themeConfig: { name: 'Banana UI', footer: false, diff --git a/README.md b/README.md index e4bdca7b..e41c4f20 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ `Banana UI` 是一套底层基于 `Web Components` 的组件库,它提供了一套常用的组件。 + + 官方文档: https://banana-ui.com/ ## ⭐️ 特性 diff --git a/docs/doc-components/main-info/index.css b/docs/doc-components/main-info/index.css new file mode 100644 index 00000000..c8313e23 --- /dev/null +++ b/docs/doc-components/main-info/index.css @@ -0,0 +1,5 @@ +.main-info-wrapper { + display: flex; + flex-direction: column; + align-items: center; +} diff --git a/docs/doc-components/main-info/index.tsx b/docs/doc-components/main-info/index.tsx new file mode 100644 index 00000000..50e0ab5b --- /dev/null +++ b/docs/doc-components/main-info/index.tsx @@ -0,0 +1,10 @@ +import './index.css'; + +export default function MainInfo() { + return ( +
diff --git a/public/favicons/favicon-16x16.png b/public/favicons/favicon-16x16.png
new file mode 100644
index 0000000000000000000000000000000000000000..c7a70df09e8adfbe58117b9526dd94cd810c8937
GIT binary patch
literal 3170
zcmcgvYitxn9KTX*XiHTLQc@9?tqFqe?X!D#Yp+eYYiX5hYbj|lL71DJ>uq|syX@|@
zR}zAjhw>0f1Rp4YB78stk%&ryP>>i5CN&WiRERuOj30!gUr0f4_Fg?oYa4uQvbVc4
zzxh9Z|NqRbYpkDFR8Ugja5#$UYW+?4`JjDI$iu%g`fmgL$k%HZnGT1u)V_1#dn!8|
zj)LtkO>dN+*-_7 dGGUN K7`OMVj=6S1@J2l
zQ_*B8?!fW=G}pWos)e@$^1VCoFhl%fIQ0-itiCPKaZ55r?bn4LbVvG|s(Mqs^JDd_&BLt
7u;&Tu`WIet@Y#U+1By_QY*>v^QOL;-g0
>>D`CS-{o)b#`=nQ}MucRShIeULKFZJXRj%0Ncn`k`j;5C=|
zWTlh%PIxzR9*O5dtsE2@M2qZRStx&}F6HG=1WpB`Ehq-440nw{fq^hyQ*C@^TA~S=
zUea?gGhPq}@i~hr1TW|*(Cy+llCK&bXzh){e?5qq$3Y6gRA@FSf=;_jNM{2$fcC)=
zE+5ABM(N}?v!C!$6bMF)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