ijit
This commit is contained in:
80
.vitepress/config.mts
Normal file
80
.vitepress/config.mts
Normal file
@@ -0,0 +1,80 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
import { dailySidebar } from './daily.mts'
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
title: "形容力提升训练手册",
|
||||
description: "唤醒意识,理解形容的本质与障碍",
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
nav: [
|
||||
{ text: '主页', link: '/' },
|
||||
// { text: '开始', link: '/preface' }
|
||||
{ text: '下载', link: '/pdf/book.pdf' }
|
||||
],
|
||||
|
||||
sidebar: {
|
||||
"/daily/": dailySidebar,
|
||||
"/": [
|
||||
{ text: '自序', link: '/preface' },
|
||||
{ text: '自我介绍', link: '/self-introduction' },
|
||||
{
|
||||
text: '第一部分 形容力的本质——你为什么“形容不出来”',
|
||||
link: '/book/0-1',
|
||||
items: [
|
||||
{ text: '第1章:我们为什么需要“形容力”?', link: '/book/01' },
|
||||
{ text: '第2章:形容力的三大障碍', link: '/book/02' },
|
||||
{ text: '第3章:形容力的底层逻辑', link: '/book/03' }
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
text: '第二部分 形容力的四大训练系统',
|
||||
link: '/book/0-2',
|
||||
items: [
|
||||
{ text: '第4章:训练眼睛——如何“看见细节”?', link: '/book/04' },
|
||||
{ text: '第5章:激活感官——让描述“有味道、有声音”', link: '/book/05' },
|
||||
{ text: '第6章:丰富词汇——建立你的“形容词库”', link: '/book/06' },
|
||||
{ text: '第7章:学会比喻——让语言“活”起来', link: '/book/07' },
|
||||
{ text: '第8章:结构化表达——从碎片到完整描述', link: '/book/08' },
|
||||
{ text: '第9章:情感注入——让形容“打动人”', link: '/book/09' }
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
text: '第三部分 形容力的实战应用与长期提升',
|
||||
link: '/book/0-3',
|
||||
items: [
|
||||
{ text: '第10章:在写作中应用形容力', link: '/book/10' },
|
||||
{ text: '第11章:在口语中应用形容力', link: '/book/11' },
|
||||
{ text: '第12章:养成形容习惯,持续进步', link: '/book/12' }
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
text: '附录',
|
||||
items: [
|
||||
{ text: '附录A:形容词分类速查表', link: '/appendix/a', target: '_blank', rel: 'noopener' },
|
||||
{ text: '附录B:经典描写句摘录50例', link: '/appendix/b', target: '_blank', rel: 'noopener' },
|
||||
{ text: '附录C:30天形容力训练打卡表', link: '/appendix/c', target: '_blank', rel: 'noopener' },
|
||||
{ text: '附录D:观察与描写练习题100道', link: '/appendix/d', target: '_blank', rel: 'noopener' },
|
||||
{ text: '附录E:推荐阅读书单', link: '/appendix/e', target: '_blank', rel: 'noopener' }
|
||||
]
|
||||
}
|
||||
],
|
||||
},
|
||||
|
||||
socialLinks: [
|
||||
// { icon: 'github', link: 'https://github.com/vuejs/vitepress' },
|
||||
{ icon: 'github', link: 'https://vitepress.dev/zh/reference/site-config' },
|
||||
{ icon: 'gitea', link: "https://git.xiongxiao.me/abearxiong/look-good" },
|
||||
// {
|
||||
// icon: {
|
||||
// svg: '<svg t="1759763307714" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1608" width="200" height="200"><path d="M848.512 981.333333H219.904C145.493333 981.333333 85.333333 921.898667 85.333333 848.341333V175.658667C85.333333 102.101333 145.493333 42.666667 219.904 42.666667h628.608A47.36 47.36 0 0 1 896 89.6v844.8c0 26.581333-20.565333 46.933333-47.488 46.933333zM219.904 136.533333a38.954667 38.954667 0 0 0-39.552 39.125334v672.682666c0 21.930667 17.408 39.125333 39.552 39.125334h582.698667V136.533333H219.904z" fill="#172B4D" p-id="1609"></path><path d="M132.821333 895.274667A47.36 47.36 0 0 1 85.333333 848.341333c0-73.514667 60.16-132.949333 134.570667-132.949333h630.186667a47.36 47.36 0 0 1 47.488 46.933333c0 26.581333-20.565333 46.933333-47.488 46.933334H219.904c-22.186667 0-39.552 18.773333-39.552 39.082666 0 26.624-22.186667 46.933333-47.530667 46.933334z" fill="#172B4D" p-id="1610"></path></svg>'
|
||||
// },
|
||||
// link: 'https://vitepress.dev/zh/reference/site-config',
|
||||
// // 也可以为无障碍添加一个自定义标签 (可选但推荐):
|
||||
// ariaLabel: 'cool link'
|
||||
// }
|
||||
]
|
||||
}
|
||||
})
|
||||
32
.vitepress/daily.mts
Normal file
32
.vitepress/daily.mts
Normal file
@@ -0,0 +1,32 @@
|
||||
export const dailySidebar = [
|
||||
{ text: '观察并描述一只水果', link: '/daily/1' },
|
||||
{ text: '形容今天的天气', link: '/daily/2' },
|
||||
{ text: '描写一位路人', link: '/daily/3' },
|
||||
{ text: '形容一只鸟的羽毛', link: '/daily/4' },
|
||||
{ text: '描写一处山的风景', link: '/daily/5' },
|
||||
{ text: '形容一件衣服的质感', link: '/daily/6' },
|
||||
{ text: '描述一杯饮料的味道', link: '/daily/7' },
|
||||
{ text: '形容一本书的封面', link: '/daily/8' },
|
||||
{ text: '描写一只动物的动作', link: '/daily/9' },
|
||||
{ text: '形容一位小孩的动作', link: '/daily/10' },
|
||||
{ text: '描述一双鞋子的外观', link: '/daily/11' },
|
||||
{ text: '形容一位朋友的笑容', link: '/daily/12' },
|
||||
{ text: '描写一处你熟悉的房间', link: '/daily/13' },
|
||||
{ text: '形容一朵花的颜色和形状', link: '/daily/14' },
|
||||
{ text: '描述一次交通工具的体验', link: '/daily/15' },
|
||||
{ text: '形容一件小饰品', link: '/daily/16' },
|
||||
{ text: '描写一段你喜欢的电影片段', link: '/daily/17' },
|
||||
{ text: '形容一只宠物的性格', link: '/daily/18' },
|
||||
{ text: '描述一条街道的氛围', link: '/daily/19' },
|
||||
{ text: '形容一面镜子的反射感', link: '/daily/20' },
|
||||
{ text: '描写一次下雨的场景', link: '/daily/21' },
|
||||
{ text: '形容一件童年玩具', link: '/daily/22' },
|
||||
{ text: '描述一位老师', link: '/daily/23' },
|
||||
{ text: '形容一张照片的内容', link: '/daily/24' },
|
||||
{ text: '描写一次旅行的感受', link: '/daily/25' },
|
||||
{ text: '形容一件艺术品', link: '/daily/26' },
|
||||
{ text: '描写一次野餐的场景', link: '/daily/27' },
|
||||
{ text: '形容一顿美食', link: '/daily/28' },
|
||||
{ text: '描写一次特别的相遇', link: '/daily/29' },
|
||||
{ text: '形容一杯茶的香气', link: '/daily/30' },
|
||||
]
|
||||
48
.vitepress/theme/Show.vue
Normal file
48
.vitepress/theme/Show.vue
Normal file
@@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<div >
|
||||
<button class="show-btn" @click="show = !show">
|
||||
{{ show ? '隐藏关键字' : '显示关键字' }}
|
||||
</button>
|
||||
<div v-if="show" class="show-content">{{ text }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
const props = defineProps({
|
||||
text: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
const show = ref(false)
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.show-btn {
|
||||
padding: 8px 20px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: -10px;
|
||||
background: linear-gradient(90deg, #4f8cff 0%, #38c8ff 100%);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 2px 8px rgba(79,140,255,0.15);
|
||||
transition: background 0.3s, box-shadow 0.3s;
|
||||
}
|
||||
.show-btn:hover {
|
||||
background: linear-gradient(90deg, #38c8ff 0%, #4f8cff 100%);
|
||||
box-shadow: 0 4px 16px rgba(56,200,255,0.18);
|
||||
}
|
||||
.show-content {
|
||||
margin-top: 16px;
|
||||
padding: 12px 18px;
|
||||
background: #f6faff;
|
||||
border-radius: 6px;
|
||||
color: #333;
|
||||
font-size: 15px;
|
||||
box-shadow: 0 1px 4px rgba(79,140,255,0.08);
|
||||
}
|
||||
</style>
|
||||
17
.vitepress/theme/index.ts
Normal file
17
.vitepress/theme/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// https://vitepress.dev/guide/custom-theme
|
||||
import { h } from 'vue'
|
||||
import type { Theme } from 'vitepress'
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import './style.css'
|
||||
import './print.css'
|
||||
export default {
|
||||
extends: DefaultTheme,
|
||||
Layout: () => {
|
||||
return h(DefaultTheme.Layout, null, {
|
||||
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
||||
})
|
||||
},
|
||||
enhanceApp({ app, router, siteData }) {
|
||||
// ...
|
||||
}
|
||||
} satisfies Theme
|
||||
17
.vitepress/theme/print.css
Normal file
17
.vitepress/theme/print.css
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
@media print {
|
||||
.VPLocalNav.has-sidebar,
|
||||
.VPDocFooter {
|
||||
display: none !important;
|
||||
}
|
||||
.VPButton.medium.brand {
|
||||
display: none !important;
|
||||
}
|
||||
.VPNavBarHamburger.hamburger {
|
||||
display: none !important;
|
||||
}
|
||||
.VPHome {
|
||||
margin-bottom: 0px !important;
|
||||
}
|
||||
}
|
||||
151
.vitepress/theme/style.css
Normal file
151
.vitepress/theme/style.css
Normal file
@@ -0,0 +1,151 @@
|
||||
/**
|
||||
* Customize default theme styling by overriding CSS variables:
|
||||
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
|
||||
*/
|
||||
|
||||
/**
|
||||
* Colors
|
||||
*
|
||||
* Each colors have exact same color scale system with 3 levels of solid
|
||||
* colors with different brightness, and 1 soft color.
|
||||
*
|
||||
* - `XXX-1`: The most solid color used mainly for colored text. It must
|
||||
* satisfy the contrast ratio against when used on top of `XXX-soft`.
|
||||
*
|
||||
* - `XXX-2`: The color used mainly for hover state of the button.
|
||||
*
|
||||
* - `XXX-3`: The color for solid background, such as bg color of the button.
|
||||
* It must satisfy the contrast ratio with pure white (#ffffff) text on
|
||||
* top of it.
|
||||
*
|
||||
* - `XXX-soft`: The color used for subtle background such as custom container
|
||||
* or badges. It must satisfy the contrast ratio when putting `XXX-1` colors
|
||||
* on top of it.
|
||||
*
|
||||
* The soft color must be semi transparent alpha channel. This is crucial
|
||||
* because it allows adding multiple "soft" colors on top of each other
|
||||
* to create a accent, such as when having inline code block inside
|
||||
* custom containers.
|
||||
*
|
||||
* - `default`: The color used purely for subtle indication without any
|
||||
* special meanings attached to it such as bg color for menu hover state.
|
||||
*
|
||||
* - `brand`: Used for primary brand colors, such as link text, button with
|
||||
* brand theme, etc.
|
||||
*
|
||||
* - `tip`: Used to indicate useful information. The default theme uses the
|
||||
* brand color for this by default.
|
||||
*
|
||||
* - `warning`: Used to indicate warning to the users. Used in custom
|
||||
* container, badges, etc.
|
||||
*
|
||||
* - `danger`: Used to show error, or dangerous message to the users. Used
|
||||
* in custom container, badges, etc.
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-c-default-1: var(--vp-c-gray-1);
|
||||
--vp-c-default-2: var(--vp-c-gray-2);
|
||||
--vp-c-default-3: var(--vp-c-gray-3);
|
||||
--vp-c-default-soft: var(--vp-c-gray-soft);
|
||||
|
||||
--vp-c-brand-1: var(--vp-c-indigo-1);
|
||||
--vp-c-brand-2: var(--vp-c-indigo-2);
|
||||
--vp-c-brand-3: var(--vp-c-indigo-3);
|
||||
--vp-c-brand-soft: var(--vp-c-indigo-soft);
|
||||
|
||||
--vp-c-tip-1: var(--vp-c-brand-1);
|
||||
--vp-c-tip-2: var(--vp-c-brand-2);
|
||||
--vp-c-tip-3: var(--vp-c-brand-3);
|
||||
--vp-c-tip-soft: var(--vp-c-brand-soft);
|
||||
|
||||
--vp-c-warning-1: var(--vp-c-yellow-1);
|
||||
--vp-c-warning-2: var(--vp-c-yellow-2);
|
||||
--vp-c-warning-3: var(--vp-c-yellow-3);
|
||||
--vp-c-warning-soft: var(--vp-c-yellow-soft);
|
||||
|
||||
--vp-c-danger-1: var(--vp-c-red-1);
|
||||
--vp-c-danger-2: var(--vp-c-red-2);
|
||||
--vp-c-danger-3: var(--vp-c-red-3);
|
||||
--vp-c-danger-soft: var(--vp-c-red-soft);
|
||||
}
|
||||
|
||||
/**
|
||||
* Component: Button
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-button-brand-border: transparent;
|
||||
--vp-button-brand-text: var(--vp-c-white);
|
||||
--vp-button-brand-bg: var(--vp-c-brand-3);
|
||||
--vp-button-brand-hover-border: transparent;
|
||||
--vp-button-brand-hover-text: var(--vp-c-white);
|
||||
--vp-button-brand-hover-bg: var(--vp-c-brand-2);
|
||||
--vp-button-brand-active-border: transparent;
|
||||
--vp-button-brand-active-text: var(--vp-c-white);
|
||||
--vp-button-brand-active-bg: var(--vp-c-brand-1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Component: Home
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-home-hero-name-color: transparent;
|
||||
--vp-home-hero-name-background: -webkit-linear-gradient(120deg,
|
||||
#bd34fe 30%,
|
||||
#41d1ff);
|
||||
|
||||
--vp-home-hero-image-background-image: linear-gradient(-45deg,
|
||||
#bd34fe 50%,
|
||||
#47caff 50%);
|
||||
--vp-home-hero-image-filter: blur(44px);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(56px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(68px);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Component: Custom Block
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-custom-block-tip-border: transparent;
|
||||
--vp-custom-block-tip-text: var(--vp-c-text-1);
|
||||
--vp-custom-block-tip-bg: var(--vp-c-brand-soft);
|
||||
--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
|
||||
}
|
||||
|
||||
/**
|
||||
* Component: Algolia
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
.DocSearch {
|
||||
--docsearch-primary-color: var(--vp-c-brand-1) !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* @media (min-width: 640px) {
|
||||
|
||||
.VPHomeHero .heading .text {
|
||||
max-width: 850px;
|
||||
}
|
||||
} */
|
||||
|
||||
.author {
|
||||
text-align: right;
|
||||
font-size: 14px;
|
||||
margin-top: 10px;
|
||||
color: var(--vp-c-text-2);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
Reference in New Issue
Block a user