2025-03-03 19:59:03 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div class="home-container">
|
|
|
|
|
<el-main>
|
2025-03-05 10:12:08 +08:00
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<!-- 左侧正文 -->
|
|
|
|
|
<el-col :span="16">
|
|
|
|
|
<el-card>
|
2025-03-05 10:36:42 +08:00
|
|
|
|
<p>某校 SE 专业学生,前 CChOer 。</p>
|
|
|
|
|
<p>什么都会一点。</p>
|
|
|
|
|
<p>
|
2025-03-05 10:57:21 +08:00
|
|
|
|
可以通过这个邮箱联系我:
|
2025-03-05 10:36:42 +08:00
|
|
|
|
<a href="mailto:admin@kisechan.space">admin@kisechan.space</a>
|
|
|
|
|
</p>
|
2025-03-05 12:28:48 +08:00
|
|
|
|
<hr />
|
|
|
|
|
<h3>My Github Contributions</h3>
|
2025-03-05 10:12:08 +08:00
|
|
|
|
<div class="github-calendar-container">
|
|
|
|
|
<div id="github-graph"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<!-- 右侧作者信息 -->
|
2025-03-05 12:28:48 +08:00
|
|
|
|
<el-col class="right-column" :span="8">
|
2025-03-05 10:12:08 +08:00
|
|
|
|
<div class="author-info">
|
|
|
|
|
<el-avatar :size="120" :src="avatarUrl" />
|
2025-03-05 12:28:48 +08:00
|
|
|
|
<h2>Hello</h2>
|
2025-03-05 10:12:08 +08:00
|
|
|
|
<i>"Non est ad astra mollis e trris via."</i>
|
|
|
|
|
</div>
|
2025-03-05 12:28:48 +08:00
|
|
|
|
<div class="social-icons">
|
|
|
|
|
<a href="https://github.com/Kisechan" target="_blank">
|
|
|
|
|
<i class="fab fa-github"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="https://www.zhihu.com/people/ptkise" target="_blank">
|
|
|
|
|
<i class="fab fa-zhihu"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="https://space.bilibili.com/174541536" target="_blank">
|
|
|
|
|
<i class="fab fa-bilibili"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="https://blog.kisechan.space" target="_blank">
|
|
|
|
|
<i class="fa-solid fa-blog"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="mailto:admin@kisechan.space" target="_blank">
|
|
|
|
|
<i class="fa-solid fa-envelope"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2025-03-05 10:12:08 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
2025-03-03 19:59:03 +08:00
|
|
|
|
</el-main>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2025-03-05 10:12:08 +08:00
|
|
|
|
import avatarUrl from "@/assets/avatar.png";
|
|
|
|
|
import { onMounted } from "vue";
|
|
|
|
|
import GitHubCalendar from "github-calendar";
|
|
|
|
|
|
|
|
|
|
// 在组件挂载后初始化 GitHub 贡献图
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
GitHubCalendar("#github-graph", "Kisechan", {
|
2025-03-05 10:36:42 +08:00
|
|
|
|
responsive: false, // 响应式设计
|
2025-03-05 10:12:08 +08:00
|
|
|
|
tooltips: true, // 显示提示信息
|
2025-03-05 10:18:06 +08:00
|
|
|
|
headers: {
|
|
|
|
|
Authorization: `token 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`,
|
|
|
|
|
},
|
2025-03-05 12:28:48 +08:00
|
|
|
|
global_stats: true, // 显示全局统计信息
|
2025-03-05 10:12:08 +08:00
|
|
|
|
});
|
|
|
|
|
});
|
2025-03-03 19:59:03 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
2025-03-05 10:12:08 +08:00
|
|
|
|
<style scoped>
|
|
|
|
|
.home-container {
|
|
|
|
|
padding: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.author-info {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-avatar {
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.github-calendar-container {
|
|
|
|
|
margin: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#github-graph {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 800px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
2025-03-05 12:28:48 +08:00
|
|
|
|
|
|
|
|
|
.social-icons a {
|
|
|
|
|
color: #303133;
|
|
|
|
|
margin: 0 10px;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.social-icons a:hover {
|
|
|
|
|
color: rgb(159.5, 206.5, 255);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.social-icons{
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-column {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 24px; /* 设置 author-info 和 social-icons 之间的间隔 */
|
|
|
|
|
}
|
2025-03-05 10:12:08 +08:00
|
|
|
|
</style>
|