mirror of
https://github.com/RhenCloud/Cloud-Home.git
synced 2026-01-23 02:09:06 +08:00
feat: 初始化项目
- 初始化 Vue 3 + Vite 项目结构 - 添加核心组件 (Hero, About, Projects, Friends 等) - 配置页面路由和基础样式 - 添加服务端 API 接口 (邮件发送, 好友请求) - 添加项目配置文件 (vercel.json, vite.config.js)
This commit is contained in:
30
src/components/HeroSection.vue
Normal file
30
src/components/HeroSection.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<section class="card hero">
|
||||
<img class="avatar" :src="profile.avatar" alt="avatar" />
|
||||
<div>
|
||||
<h1>{{ profile.name }}</h1>
|
||||
<p class="muted">{{ profile.title }}</p>
|
||||
<p>{{ profile.bio }}</p>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
defineProps({ profile: Object });
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.hero {
|
||||
display: grid;
|
||||
grid-template-columns: 120px 1fr;
|
||||
gap: 16px;
|
||||
align-items: center;
|
||||
}
|
||||
.avatar {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
border: 2px solid rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user