-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
白云苍狗
committed
Nov 4, 2023
1 parent
1345792
commit b4bc31c
Showing
24 changed files
with
181 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup lang="ts"> | ||
import Theme from "vitepress-theme-async"; | ||
const { Layout } = Theme; | ||
</script> | ||
<template> | ||
<Layout> | ||
<template #links-after> | ||
<TrmDividerTitle title="asdasd" index="01" /> | ||
</template> | ||
</Layout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
packages/vitepress-theme-async/components/global/TrmCardLink.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<script setup lang="ts"> | ||
import { truncate } from "../../utils/shared"; | ||
defineProps<{ | ||
url?: string; | ||
name?: string; | ||
image?: string; | ||
desc?: string; | ||
}>(); | ||
</script> | ||
<template> | ||
<a :href="url" target="_blank" rel="nofollow"> | ||
<div class="trm-link-box trm-scroll-animation"> | ||
<div class="trm-link-avatar"> | ||
<img draggable="false" :alt="name" :src="image" /> | ||
</div> | ||
<div class="trm-link-text"> | ||
<h6 class="trm-mb-10">{{ name }}</h6> | ||
<div>{{ desc ? truncate(desc, { length: 32 }) : "" }}</div> | ||
</div> | ||
</div> | ||
</a> | ||
</template> | ||
<style lang="less"> | ||
.trm-link-box { | ||
display: flex; | ||
padding: 20px; | ||
border-radius: var(--card-border-radius, 10px); | ||
background-color: var(--theme-bg-color, #fcfcfe); | ||
box-shadow: var(--box-shadow2, 0 2px 4px -2px rgba(0, 0, 0, 0.15)); | ||
margin-bottom: var(--card-bottom-card, 40px); | ||
.trm-link-avatar { | ||
width: 50px; | ||
height: 50px; | ||
margin-right: 20px; | ||
flex-shrink: 0; | ||
img { | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 50%; | ||
box-shadow: none !important; | ||
padding: 2px; | ||
} | ||
} | ||
.trm-link-text { | ||
div { | ||
height: 2.6em; | ||
line-height: 1.3em; | ||
overflow: hidden; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...heme-async/components/TrmCardPostMini.vue → ...ync/components/global/TrmCardPostMini.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
26 changes: 17 additions & 9 deletions
26
...ss-theme-async/components/TrmTimeline.vue → ...e-async/components/global/TrmTimeline.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.