-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change reality characters to use component
- Loading branch information
Showing
10 changed files
with
46 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script setup> | ||
defineProps(['src', 'alt']) | ||
</script> | ||
|
||
<template> | ||
<img class="aspect-square rounded-full mx-0 my-0 px-0 py-0" :src="src" :alt="alt"/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script setup> | ||
import { withBase } from 'vitepress' | ||
import Avatar from './Avatar.vue' | ||
defineProps(['name', 'desc', 'image']) | ||
</script> | ||
|
||
<template> | ||
<div class="flex items-center px-1 py-1 space-x-2 w-64"> | ||
<Avatar class="w-10 h-10 block mb-0.5 border-[0.5px] border-orange-300" :src="withBase(image)" :alt="'[Avatar of ' + name + ']'"/> | ||
<div class="flex flex-col"> | ||
<strong>{{ name }}</strong> | ||
<span class="text-gray-400">{{ desc }}</span> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script setup> | ||
import CharacterDescription from './CharacterDescription.vue' | ||
</script> | ||
|
||
<template> | ||
<div class="mt-4 flex flex-wrap flex-col sm:flex-row"> | ||
<CharacterDescription name='祢洛子' desc='@ShadowRZ' image='/avatars/1589275_k0mxyaNR.webp'/> | ||
<CharacterDescription name='Alynx Zhou' desc='@AlynxZhou' image='/avatars/Mikoto_Karon_White.webp'/> | ||
<CharacterDescription name='叶琴玉' desc='@Ken_Ookami_Horo' image='/avatars/d1fb2d725bf54240.webp'/> | ||
<CharacterDescription name='莫洛洛' desc='@outloudvi' image='/avatars/0f54bd1f-bf35-4729-82cf-ec2836cede1a.webp'/> | ||
<CharacterDescription name='喵咪卡' desc='@felixonmars' image='/avatars/eb748f0984baec13.webp'/> | ||
</div> | ||
</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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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