mirror of
https://github.com/RhenCloud/Cloud-Home.git
synced 2026-01-22 17:39:07 +08:00
- 改进项目页面、网站页面、友链页面 - 从 styles.css 中移除全局样式。 - 添加 tailwind.config.ts 以配置 Tailwind CSS。 - 更新 tsconfig.json,加入 Vue 组件的新路径映射。
21 lines
998 B
Vue
21 lines
998 B
Vue
<template>
|
|
<section class="card grid grid-cols-[120px_1fr] gap-4 items-center hover:shadow-lg-dark group">
|
|
<div class="relative">
|
|
<div
|
|
class="absolute inset-0 rounded-full bg-gradient-to-br from-primary/30 to-accent/20 blur-xl group-hover:blur-2xl transition-all duration-300 opacity-0 group-hover:opacity-100">
|
|
</div>
|
|
<img class="relative w-30 h-30 rounded-full object-cover border-2 border-primary/40 shadow-md-dark bg-white transition-transform duration-300 group-hover:scale-105"
|
|
:src="profile.avatar" alt="avatar" loading="lazy" />
|
|
</div>
|
|
<div class="overflow-hidden">
|
|
<h1 class="text-2xl font-bold">{{ profile.name }}</h1>
|
|
<p class="text-text-muted text-sm mt-1">{{ profile.title }}</p>
|
|
<p class="mt-2 line-clamp-2">{{ profile.bio }}</p>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({ profile: Object });
|
|
</script>
|