Skip to content

Commit

Permalink
Merge pull request #86 from FriedRiceNoodles/feat/docs-site
Browse files Browse the repository at this point in the history
feat(docs-site): added logo and favicon for docs-site and README
  • Loading branch information
FriedRiceNoodles authored Mar 21, 2024
2 parents 373442b + 9538fb6 commit ec9b3d5
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .dumi/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
.dumi-default-table-content th {
text-align: left;
}

.main-info-logo {
width: 400px;
}
7 changes: 7 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

`Banana UI` 是一套底层基于 `Web Components` 的组件库,它提供了一套常用的组件。

<img height="160" src="./public/logos/main-logo-800.png">

官方文档: https://banana-ui.com/

## ⭐️ 特性
Expand Down
5 changes: 5 additions & 0 deletions docs/doc-components/main-info/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.main-info-wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
10 changes: 10 additions & 0 deletions docs/doc-components/main-info/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import './index.css';

export default function MainInfo() {
return (
<div className="main-info-wrapper">
{/* <div className="main-info-canvas"></div> */}
<img className="main-info-logo" src="/logos/main-logo-800.png" />
</div>
);
}
4 changes: 3 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
hero:
title: Banana
title: <img class="main-info-logo" src="/logos/main-logo-800.png" />
description: 一套可<strong>跨框架</strong>使用的、支持SSR的组件库
actions:
- text: 快速上手
Expand All @@ -9,4 +9,6 @@ hero:
link: /example/button
---

<!-- <code inline src="./doc-components/main-info/index.tsx"></code> -->

<code inline src="./doc-components/features/index.tsx"></code>
Binary file added public/favicons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicons/favicon-64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicons/favicon.ico
Binary file not shown.
Binary file added public/logos/main-logo-800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logos/nav-logo-375.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ec9b3d5

Please sign in to comment.