Skip to content

Commit

Permalink
fix: folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
LarchLiu committed May 15, 2023
1 parent 949baf9 commit fb802c1
Show file tree
Hide file tree
Showing 6 changed files with 695 additions and 0 deletions.
35 changes: 35 additions & 0 deletions server/nuxt3/server/utils/webCard/CommonCard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<script lang="ts" setup>
defineProps({
title: String,
content: Array<String>,
favicon: String,
lang: String,
})
</script>

<template>
<div class="h-full w-full flex flex-col justify-between bg-white p-60px text-60px">
<div class="flex flex-col">
<div class="flex items-center text-40px font-bold" :lang="lang ? lang : 'zh-CN'">
{{ title }}
</div>

<div class="h-320px flex flex-col overflow-hidden pt-30px text-30px">
<div v-for="(c, i) in content" :key="i" class="flex" :lang="lang ? lang : 'zh-CN'">
{{ c }}
</div>
</div>
</div>
<div class="flex items-center justify-end text-24px">
<div class="icon-ph:shooting-star-light?w=64&h=64" />
<img
v-if="favicon"
alt="favicon"
width="64"
height="64"
:src="favicon"
class="rounded"
>
</div>
</div>
</template>
40 changes: 40 additions & 0 deletions server/nuxt3/server/utils/webCard/TweetCard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<script lang="ts" setup>
defineProps({
avator: String,
name: String,
screenName: String,
content: Array<String>,
pubTime: String,
lang: String,
})
</script>

<template>
<div class="h-full w-full flex flex-col justify-between bg-white p-60px text-60px">
<div class="flex flex-col">
<div class="flex items-center">
<img
alt="avatar"
width="120"
height="120"
:src="avator"
class="rounded-full"
>
<div class="ml-20px flex flex-col text-40px">
<span :lang="lang ? lang : 'zh-CN'">{{ name }}</span>
<span :lang="lang ? lang : 'zh-CN'">{{ `@${screenName}` }}</span>
</div>
</div>

<div class="h-320px flex flex-col overflow-hidden pt-30px text-30px">
<div v-for="(c, i) in content" :key="i" class="flex" :lang="lang ? lang : 'zh-CN'">
{{ c }}
</div>
</div>
</div>
<div class="flex items-center justify-between text-24px text-[#1DA1F2]">
<span class="text-[#586069]">{{ pubTime }}</span>
<div class="icon-carbon:logo-twitter?w=64&h=64 flex" />
</div>
</div>
</template>
Loading

1 comment on commit fb802c1

@vercel
Copy link

@vercel vercel bot commented on fb802c1 May 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

star-nexus – ./

star-nexus-larchliu.vercel.app
star-nexus.vercel.app
star-nexus-git-main-larchliu.vercel.app

Please sign in to comment.