Skip to content

Commit afa645f

Browse files
committed
fix: 添加随笔
1 parent 3d4f4b7 commit afa645f

8 files changed

Lines changed: 285 additions & 9 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<div ref="shadowBox">
3+
</div>
4+
<div ref="contentRef" style="display: none">
5+
<slot />
6+
</div>
7+
</template>
8+
<script setup lang="ts">
9+
import { ref, onMounted, defineProps } from 'vue'
10+
11+
const props = defineProps<{src: any}>()
12+
const shadowBox = ref()
13+
const contentRef = ref<HTMLElement>()
14+
15+
onMounted(async () => {
16+
const shadow = shadowBox.value.attachShadow({ mode: 'open' })
17+
shadow.innerHTML = contentRef.value?.innerHTML?.replace(/&lt;/g, '<')?.replace(/&gt;/g, '>') || ''
18+
// 处理脚本
19+
// const scriptStr = loadSource.match(/<script[^>]*>([\s\S]*?)<\/script>/)
20+
// if (scriptStr) {
21+
// const scriptEl = document.createElement('script')
22+
// // @ts-ignore
23+
// window.__SHADOW_ROOT__ = shadow
24+
// scriptEl.textContent = `(function(document){
25+
// ${scriptStr[1]}
26+
// })(window.__SHADOW_ROOT__)`
27+
// shadow.appendChild(scriptEl)
28+
// }
29+
})
30+
</script>

.vitepress/config.mts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default defineConfig({
2727
]},
2828
{ text: '终身成长', items: [
2929
{ text: '人生伴侣', link: '/learning/mate/人生伴侣' },
30+
{ text: '随笔', link: '/learning/essay/' },
3031
]},
3132
{ text: '户外分享', items: [
3233
{ text: 'TODO', link: '/outdoor/TODO' },
@@ -114,6 +115,16 @@ export default defineConfig({
114115
]
115116
}
116117
],
118+
'/learning/essay': [
119+
{
120+
text: '随笔',
121+
base: '/learning/essay/',
122+
items: [
123+
{ text: '人生三次祛魅', link: '祛魅' },
124+
{ text: '纽约时间', link: '纽约时间' },
125+
]
126+
}
127+
],
117128
'/outdoor': [
118129
{
119130
text: '户外分享',

blog/front/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
outline: deep
3-
prev: false
4-
next: false
53
---
64

7-
# 前端博客
5+
# 前端博客
6+
在这里分享点老前端人的过往积累
7+
8+
👈 都在这里
9+
👈 都在这里
10+
👈 都在这里

learning/essay/index.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
outline: deep
3+
---
4+
5+
# 随笔
6+
> *随手记录一下*
7+
8+
:::info @大冰
9+
当你在低谷的时候,什么都不用做,就回到妈妈身边,就听听妈妈唠家常,听妈妈聊聊她年轻时候的事情,她那个年代的事情
10+
:::
11+
12+
:::info @亚鹏哥
13+
喜欢烟火气息,喜欢和小商小贩去聊天
14+
那是因为你善良
15+
:::
16+
17+
:::info @田园
18+
人生就像拼图,学到的每个知识都是一小块图,拼的越完整,看到的越接近世界的真相,看待问题也更全面
19+
20+
---
21+
22+
人分为三类:
23+
不知道自己不知道的
24+
知道自己不知道的
25+
不知道自己知道的
26+
:::
27+
28+
:::info @量量
29+
一个人的缺点就是他的优点
30+
:::
31+
32+
:::info @刘媛媛
33+
[人生三次祛魅](/learning/essay/祛魅)
34+
对学历的祛魅
35+
对婚姻的祛魅
36+
对财富的祛魅
37+
:::

learning/essay/祛魅.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# 人生三次祛魅
2+
3+
> @刘媛媛
4+
> [我没有看不起别人,只是我不带着滤镜去看别人了](https://www.xiaohongshu.com/discovery/item/6940f1ab000000001e02cfa1?source=webshare&xhsshare=pc_web&xsec_token=CBBOYY29CkoVoI8yM7Q_HWekVgNTMwjX2MALy4Bhudnvc=&xsec_source=pc_share)
5+
6+
人的一生要经历过三次祛魅 最终才能到达真正的成熟
7+
我最近一直在感慨 不一定比以前更成功 但是我今年成熟了好多
8+
9+
## 第一次祛魅:学历
10+
第一次祛魅是对学历
11+
我之前分享过这个故事
12+
在我研究生的毕业典礼上
13+
那时候全校同学 包括本科生
14+
一起大声合唱校歌 红楼飞雪 一时英杰
15+
唱着唱着 我就开始爆哭
16+
朋友问我说:你哭什么
17+
我说:我真的很后悔 我本科没有考上
18+
研究生你再去名校感觉不一样了
19+
因为我已经经历过社会的毒打了
20+
我找过工作了 到社会上见过世面了
21+
我知道学历不能说明一切了
22+
我不会那么天真的认为说
23+
我只要考了个名牌大学
24+
从此人生衣食无忧 奔向光明的前程 不会
25+
挤过早起的地铁 也看到过北京的房价
26+
最终你会发现不是一纸学历
27+
学历只是筛选了会考试的人
28+
而学历背后那个 **`能力`** 在社会上会一直受用
29+
30+
如果你的能力跟社会需求不匹配
31+
那么学历它只能帮你到这里
32+
你知道北大毕业之后 有多少人他这辈子最大的成就就是 考上了清华北大
33+
所以到了50岁的时候
34+
自己的头衔上还有这句话:北大校友
35+
太失败了
36+
37+
以前你特别羡慕的人
38+
包括出国留学
39+
满载光环而归的那些 所谓的 “精英们” 也就那样
40+
41+
## 第二次祛魅:婚姻
42+
第二次祛魅 是对 爱情 对婚姻的祛魅
43+
沈殿霞在跟郑少秋离婚多年之后采访她
44+
你知道问了他什么问题吗
45+
“你当年爱过我吗 我只想要个答案”
46+
作为女人最纠结的就是 你爱不爱我
47+
或者没有以前那么爱我了
48+
这里面不仅有被背叛的屈辱 还有对自我否定的不接受
49+
50+
去年我们高中同学举行了一次聚会
51+
三十多岁的女人在一起一定会聊起婚姻
52+
有婆婆偏心导致自己抑郁的
53+
有感情不忠婚姻破裂的
54+
还有那种什么都没有发生 就是感情变淡的
55+
我们在用各种影视和文学作品 高估爱情的意义
56+
期待有一个人天降到自己身边 送来幸福
57+
58+
但到了30多岁 你会祛魅
59+
你会知道没有人回来 没有人会来
60+
我们只有自己 拥有了幸福的能力
61+
只有自己拥有了不被否定的价值
62+
我们才能遇见幸福本身
63+
64+
## 第三次祛魅:财富
65+
第三次对财富的祛魅
66+
你有没有发现这个世界是个草台班子
67+
以前你认为那些高高在上的富豪
68+
他们也会坐在直播间给你卖货
69+
我也曾经去过那些高端商务酒局
70+
发现很多人的财富只是时代赋予
71+
本身根本毫无魅力
72+
而且最重要的是 有钱不会让人更幸福
73+
74+
我是一个在田间地头长大的姑娘
75+
来到大城市见过世面
76+
也触碰过所谓的财富
77+
我发现大家的幸福感是一样的
78+
很多有钱人晚上是睡不着觉的
79+
所以他们没有卖惨 他们真的觉得自己很惨
80+
81+
所谓表面的风光 背后是漏洞百出
82+
而我们之所以唯唯诺诺
83+
是因为我们把自己想的太弱
84+
把周围的一切想的太强 太完美
85+
86+
---
87+
88+
“祛魅”这个词是由“马克思·韦伯”提出
89+
它是指:你不在对任何人、任何事抱有理想化的期待
90+
也不会对他们赋予滤镜
91+
92+
我说我今年更成熟了
93+
是因为我是真的对周围的一起 感觉祛魅了
94+
我没有那么差 别人也没有那么强
95+
别人过的没我想的那么好
96+
我过的也不如自己想象的那么糟
97+
98+
人的三次祛魅 其实是一个渐渐觉醒的过程
99+
当我们
100+
不把学历当成唯一的底气
101+
不把婚姻当作唯一的救赎
102+
不把财富当作唯一的目标
103+
我们就慢慢的看清了世界
104+
也看清了自己
105+
106+
古希腊神话当中 是普罗米修斯偷来了火种
107+
人们第一次在黑暗当中看清了世界
108+
这个盗火的过程就是祛魅的过程
109+
我们只有看清了世界
110+
才不会盲目的低估自己

learning/essay/纽约时间.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
title: 纽约时间
3+
outline: deep
4+
---
5+
6+
:::info <h3 class="text-center">纽约时间</h3>
7+
<div class="text-center">
8+
9+
**纽约时间比加州时间早三个小时,**
10+
*New York is 3 hours ahead of California,*
11+
12+
**但加州时间并没有变慢。**
13+
*but it does not make California slow.*
14+
15+
**有人22岁就毕业了,**
16+
*Someone graduated at the age of 22,*
17+
18+
**但等了五年才找到好的工作!**
19+
*but waited 5 years before securing a good job!*
20+
21+
**有人25岁就当上CEO,**
22+
*Someone became a CEO at 25,*
23+
24+
**却在50岁去世。**
25+
*and died at 50.*
26+
27+
**也有人迟到50岁才当上CEO,**
28+
*While another became a CEO at 50,*
29+
30+
**然后活到90岁。**
31+
*and lived to 90 years.*
32+
33+
**有人依然单身,**
34+
*Someone is still single,*
35+
36+
**同时也有人已婚。**
37+
*while someone else got married.*
38+
39+
**奥巴马55岁就退休,**
40+
*Obama retires at 55,*
41+
42+
**川普70岁才开始当总统。**
43+
*but Trump starts at 70.*
44+
45+
**世上每个人本来就有自己的发展时区。**
46+
*Absolutely everyone in this world works based on their Time Zone.*
47+
48+
**身边有些人看似走在你前面,**
49+
*People around you might seem to go ahead of you,*
50+
51+
**也有人看似走在你后面。**
52+
*some might seem to be behind you.*
53+
54+
**但其实每个人在自己的时区有自己的步程。**
55+
*But everyone is running their own RACE, in their own TIME.*
56+
57+
**不用嫉妒或嘲笑他们。**
58+
*Don’t envy them or mock them.*
59+
60+
**他们都在自己的时区里,你也是!**
61+
*They are in their TIME ZONE, and you are in yours!*
62+
63+
**生命就是等待正确的行动时机。**
64+
*Life is about waiting for the right moment to act.*
65+
66+
**所以,放轻松。**
67+
*So, RELAX.*
68+
69+
**你没有落后。**
70+
*You’re not LATE.*
71+
72+
**你没有领先。**
73+
*You’re not EARLY.*
74+
75+
**在命运为你安排的属于自己的时区里,一切都准时。**
76+
*You are very much ON TIME, and in your TIME ZONE Destiny set up for you.*
77+
</div>
78+
:::
79+
80+
欢迎来[时区虫洞](https://github.com/PaddyWang/paddywang.github.io/issues/1)留下你的时区
81+
82+
活在当下
83+
不和别人去对比 和自己比
84+
做你自己时区真正的主人
85+
在做你自己这件事上 没有人能打败你

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"vitepress": "2.0.0-alpha.15"
2121
},
2222
"dependencies": {
23-
"@vitepress-plugin/markmap": "^1.2.0",
23+
"@vitepress-plugin/markmap": "^1.3.0",
2424
"vue": "^3.5.26"
2525
}
2626
}

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)