https://github.com/rylanbot/awesome-notion-widgets
a Notion widgets set for Chinese Poem & English Quote & Music Player | Notion 随机诗句 & 英文引言 & 音乐播放器
https://github.com/rylanbot/awesome-notion-widgets
List: awesome-notion-widgets
html-css-javascript notion-website notion-widgets
Last synced: 2 months ago
JSON representation
a Notion widgets set for Chinese Poem & English Quote & Music Player | Notion 随机诗句 & 英文引言 & 音乐播放器
- Host: GitHub
- URL: https://github.com/rylanbot/awesome-notion-widgets
- Owner: RylanBot
- License: mit
- Created: 2024-01-19T14:10:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-18T07:45:46.000Z (4 months ago)
- Last Synced: 2025-01-18T08:31:52.668Z (4 months ago)
- Topics: html-css-javascript, notion-website, notion-widgets
- Language: HTML
- Homepage: https://notion-widgets.rylan.cn/
- Size: 5.91 MB
- Stars: 27
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
Awesome Notion Widgets
## 🌷 效果预览
[](https://notion-widgets.rylan.cn/)
> [!Tip]
> **更多内容详见我的[博客文章](https://rylan.cn/article/notion-widgets)**## 🧙🏻 快速上手
> [!Important]
> **参数均是可选,不传参则调用默认值**### 🔮 随机诗句
#### 🎁 致谢 [今日诗词](https://www.jinrishici.com/) 开放 API
```
https://notion-widgets.rylan.cn/poem
```| 参数 | 含义 | 备注 |
| :------ | :----------- | :------------------------------------------------ |
| theme | 诗歌主题 | 参考 https://open.saintic.com/sentence.html |
| catalog | 诗歌子分类 | 同上,使用拼音(比如子分类夏天,传入 xiatian) |
| author | 是否显示作者 | true(默认)/ false |
| name | 是否显示诗名 | true(默认)/ false |
| color | 字体颜色 | 英文字符串 或者 16 进制(其中 # 号使用 %23 代替) |
| size | 字体大小 | 传入数字即可(对应单位 px) |### 🔮 英文引言
#### 🎁 致谢 [Quotes on Design](https://quotesondesign.com/) 和 [BitURL](https://biturl.top/) 开放 API
```
https://notion-widgets.rylan.cn/quote
```| 参数 | 含义 | 备注 |
| :-------- | :----------- | :--------------------------------- |
| width | 卡片宽度 | 传入数字即可(对应单位 px) |
| size | 字体大小 | 传入数字即可(对应单位 px) |
| bg | 背景图片 | 在线链接(默认使用 Bing 每日壁纸) |
| maxLength | 句子最长长度 | 一个字母长度算 1,太短可能查不到) |### 🔮 音乐播放器
#### 🎁 致谢 [MetingJS](https://github.com/xizeyoupan/Meting-API/) 和 [Aplayer](https://github.com/DIYgod/APlayer) 库
```
https://notion-widgets.rylan.cn/music
```| 参数 | 含义 | 备注 |
| :-------------- | :----------------- | :------------------------------------------------------------------------------------- |
| server | 服务来源 | netease (默认,网易云)/ tencent (QQ)/ kugou (酷狗)/ xiami(虾米) / baidu (百度) |
| type | 类型 | playlist (歌单)/ song (单曲)/ album(专辑)/ artist(歌手) |
| id | 标识 | |
| url | 直接使用文件链接 | |
| name | 补充链接的对应歌名 | |
| artist | 补充链接的对应歌手 | |
| cover | 补充链接的对应封面 | |
| lrc | 显示歌词 | 0 (隐藏)/ 1 (默认) |
| autoplay | 自动播放 | true / false(默认) |
| theme | 播放器颜色 | 英文字符串 或者 16 进制(其中 # 号使用 %23 代替) |
| loop | 循环模式 | none(默认,所有播完后停止) / all(所有播放后从头开始)/ one(单曲循环) |
| order | 播放顺序 | list(默认,按列表)/ random(随机) |
| volume | 初始音量 | 0 - 1(默认 0.7) |
| mutex | 同时只播放一个音频 | true(默认)/ false |
| list-folded | 是否播放列表展开 | true(默认)/ false |
| list-max-height | 播放列表最大高度 | (默认 160px) |