Skip to content

Commit 6a7c114

Browse files
committed
优化关于我们界面
1 parent 831bd61 commit 6a7c114

File tree

1 file changed

+23
-38
lines changed

1 file changed

+23
-38
lines changed

Diff for: web/src/view/about/index.vue

+23-38
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,80 @@
11
<template>
22
<div class="mt-2">
3-
<el-row :gutter="10">
4-
<el-col :span="12">
5-
<el-card>
3+
<div class="flex flex-col md:flex-row gap-4">
4+
<div class="w-full md:w-1/2">
5+
<el-card class="min-w-96">
66
<template #header>
77
<el-divider>gin-vue-admin</el-divider>
88
</template>
99
<div>
10-
<el-row>
11-
<el-col :span="8" :offset="8">
12-
<a href="https://github.com/flipped-aurora/gin-vue-admin">
10+
<div class="w-full flex items-center justify-center">
11+
<a href="https://github.com/flipped-aurora/gin-vue-admin">
1312
<img
1413
class="org-img dom-center"
1514
src="@/assets/logo.png"
1615
alt="gin-vue-admin"
1716
/>
1817
</a>
19-
</el-col>
20-
</el-row>
21-
<el-row :gutter="10">
22-
<el-col :span="8">
23-
<a href="https://github.com/flipped-aurora/gin-vue-admin">
18+
</div>
19+
<div class="w-full flex items-center justify-around">
20+
<a href="https://github.com/flipped-aurora/gin-vue-admin">
2421
<img
2522
class="dom-center"
2623
src="https://img.shields.io/github/watchers/flipped-aurora/gin-vue-admin.svg?label=Watch"
2724
alt=""
2825
/>
2926
</a>
30-
</el-col>
31-
<el-col :span="8">
3227
<a href="https://github.com/flipped-aurora/gin-vue-admin">
3328
<img
3429
class="dom-center"
3530
src="https://img.shields.io/github/stars/flipped-aurora/gin-vue-admin.svg?style=social"
3631
alt=""
3732
/>
3833
</a>
39-
</el-col>
40-
<el-col :span="8">
4134
<a href="https://github.com/flipped-aurora/gin-vue-admin">
4235
<img
4336
class="dom-center"
4437
src="https://img.shields.io/github/forks/flipped-aurora/gin-vue-admin.svg?label=Fork"
4538
alt=""
4639
/>
4740
</a>
48-
</el-col>
49-
</el-row>
41+
</div>
5042
</div>
5143
</el-card>
52-
<el-card style="margin-top: 20px">
44+
<el-card class="min-w-96 mt-5">
5345
<template #header>
5446
<div>flipped-aurora团队</div>
5547
</template>
5648
<div>
57-
<el-row>
58-
<el-col :span="8" :offset="8">
49+
<div class="w-full flex items-center justify-center">
5950
<a href="https://github.com/flipped-aurora">
6051
<img
6152
class="org-img dom-center"
6253
src="@/assets/flipped-aurora.png"
6354
alt="flipped-aurora"
6455
/>
6556
</a>
66-
</el-col>
67-
</el-row>
68-
<div
69-
class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mt-4"
70-
>
71-
<div v-for="(item, index) in members" :key="index" :span="8">
72-
<a :href="item.html_url" class="flex items-center">
57+
</div>
58+
<div class="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-4 mt-4">
59+
<div v-for="(item, index) in members" :key="index" class="min-h-10 flex items-center">
60+
<a :href="item.html_url" class="flex items-center group">
7361
<img class="w-8 h-8 rounded-full" :src="item.avatar_url" />
7462
<el-link
75-
class="text-blue-700 ml-2 text-xl font-bold font-sans"
76-
style=""
63+
class="text-blue-700 ml-2 text-lg font-bold font-sans break-all"
7764
>{{ item.login }}</el-link
7865
>
7966
</a>
8067
</div>
8168
</div>
8269
</div>
8370
</el-card>
84-
</el-col>
85-
<el-col :span="12">
71+
</div>
72+
<div class="w-full md:w-1/2">
8673
<el-card>
8774
<template #header>
8875
<div>提交记录</div>
8976
</template>
90-
<div>
77+
<div class="h-[calc(100vh-300px)] overflow-y-auto">
9178
<el-timeline>
9279
<el-timeline-item
9380
v-for="(item, index) in dataTimeline"
@@ -102,12 +89,14 @@
10289
</el-timeline-item>
10390
</el-timeline>
10491
</div>
92+
<div class="w-full flex items-center justify-center">
10593
<el-button class="load-more" type="primary" link @click="loadMore">
10694
Load more
10795
</el-button>
96+
</div>
10897
</el-card>
109-
</el-col>
110-
</el-row>
98+
</div>
99+
</div>
111100
</div>
112101
</template>
113102

@@ -155,10 +144,6 @@
155144
</script>
156145

157146
<style scoped>
158-
.load-more {
159-
margin-left: 120px;
160-
}
161-
162147
.avatar-img {
163148
float: left;
164149
height: 40px;

0 commit comments

Comments
 (0)