diff --git a/docs/assets/config/themes.json b/docs/assets/config/themes.json new file mode 100644 index 0000000..eb8eeb3 --- /dev/null +++ b/docs/assets/config/themes.json @@ -0,0 +1,24 @@ +{ + "defaultItems": [ + { + "name": "fog", + "owner": "wonder-light", + "intr": "静态博客主题,不适合追求简洁的博主使用", + "secr": "https://github.com/user-attachments/assets/f6e63470-f264-441e-b59f-3534f193ea00", + "prev": "https://blog.nianian.cn", + "repo": "https://github.com/wonder-light/glidea-theme-fog", + "star": 1 + } + ], + "githubItems": [ + { + "name": "fog", + "owner": "wonder-light", + "intr": "静态博客主题,不适合追求简洁的博主使用", + "secr": "https://github.com/user-attachments/assets/f6e63470-f264-441e-b59f-3534f193ea00", + "prev": "https://blog.nianian.cn", + "repo": "https://github.com/wonder-light/glidea-theme-fog", + "star": 0 + } + ] +} \ No newline at end of file diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index 0a77876..10d5f27 100644 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -1,7 +1,13 @@ +/* #ffd100 */ + :root { --app-name-img-width: 80px; } +.jc-center { + justify-content: center; +} + .p-big { font-size: 1.4rem; font-weight: 700; @@ -49,7 +55,7 @@ font-size: 1.05rem; letter-spacing: 0.1rem; margin: 0.5rem 1rem; - padding: 0.75em 2rem; + padding: 0.5em 1rem; text-decoration: none; transition: 0.15s; } @@ -65,6 +71,11 @@ opacity: 0.8; } +.a-button .icon, +.a-button-cover .icon { + color: currentColor; +} + /* 没有元素时隐藏侧边栏 */ .b-main-hide button.sidebar-toggle { display: none !important; @@ -135,6 +146,37 @@ a.app-name-link img { margin-right: 1rem; } -.theme-icon img{ +.theme-icon img { width: 1rem; } + +.left-segm { + display: flex; + align-items: center; + justify-content: flex-end; +} + +.left-segm .el-segmented { + --el-segmented-item-selected-color: var(--el-text-color-primary); + --el-segmented-item-selected-bg-color: var(--theme-color, #42b983); + --el-border-radius-base: 16px; +} + +.left-segm .el-segmented__item { + padding: 0.5rem 1rem; +} + +.theme-list { + display: flex; + flex-wrap: wrap; +} + +.theme-list .theme-card { + width: 100%; +} + +@media screen and (min-width: 768px) { + .theme-list .theme-card { + width: 50%; + } +} diff --git a/docs/assets/images/clothes-line.svg b/docs/assets/images/clothes-line.svg new file mode 100644 index 0000000..6faddde --- /dev/null +++ b/docs/assets/images/clothes-line.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/assets/images/right-arrow.svg b/docs/assets/images/right-arrow.svg new file mode 100644 index 0000000..085c1f8 --- /dev/null +++ b/docs/assets/images/right-arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/assets/js/discussion.js b/docs/assets/js/discussion.js new file mode 100644 index 0000000..3f64901 --- /dev/null +++ b/docs/assets/js/discussion.js @@ -0,0 +1,3 @@ +const { execDiscussion } = require("./update"); + +execDiscussion(); \ No newline at end of file diff --git a/docs/assets/js/main.js b/docs/assets/js/main.js index 5608932..84337ea 100644 --- a/docs/assets/js/main.js +++ b/docs/assets/js/main.js @@ -3,9 +3,9 @@ const themeCard = { template: `