|
1 | 1 | <template>
|
2 | 2 | <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"> |
6 | 6 | <template #header>
|
7 | 7 | <el-divider>gin-vue-admin</el-divider>
|
8 | 8 | </template>
|
9 | 9 | <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"> |
13 | 12 | <img
|
14 | 13 | class="org-img dom-center"
|
15 | 14 | src="@/assets/logo.png"
|
16 | 15 | alt="gin-vue-admin"
|
17 | 16 | />
|
18 | 17 | </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"> |
24 | 21 | <img
|
25 | 22 | class="dom-center"
|
26 | 23 | src="https://img.shields.io/github/watchers/flipped-aurora/gin-vue-admin.svg?label=Watch"
|
27 | 24 | alt=""
|
28 | 25 | />
|
29 | 26 | </a>
|
30 |
| - </el-col> |
31 |
| - <el-col :span="8"> |
32 | 27 | <a href="https://github.com/flipped-aurora/gin-vue-admin">
|
33 | 28 | <img
|
34 | 29 | class="dom-center"
|
35 | 30 | src="https://img.shields.io/github/stars/flipped-aurora/gin-vue-admin.svg?style=social"
|
36 | 31 | alt=""
|
37 | 32 | />
|
38 | 33 | </a>
|
39 |
| - </el-col> |
40 |
| - <el-col :span="8"> |
41 | 34 | <a href="https://github.com/flipped-aurora/gin-vue-admin">
|
42 | 35 | <img
|
43 | 36 | class="dom-center"
|
44 | 37 | src="https://img.shields.io/github/forks/flipped-aurora/gin-vue-admin.svg?label=Fork"
|
45 | 38 | alt=""
|
46 | 39 | />
|
47 | 40 | </a>
|
48 |
| - </el-col> |
49 |
| - </el-row> |
| 41 | + </div> |
50 | 42 | </div>
|
51 | 43 | </el-card>
|
52 |
| - <el-card style="margin-top: 20px"> |
| 44 | + <el-card class="min-w-96 mt-5"> |
53 | 45 | <template #header>
|
54 | 46 | <div>flipped-aurora团队</div>
|
55 | 47 | </template>
|
56 | 48 | <div>
|
57 |
| - <el-row> |
58 |
| - <el-col :span="8" :offset="8"> |
| 49 | + <div class="w-full flex items-center justify-center"> |
59 | 50 | <a href="https://github.com/flipped-aurora">
|
60 | 51 | <img
|
61 | 52 | class="org-img dom-center"
|
62 | 53 | src="@/assets/flipped-aurora.png"
|
63 | 54 | alt="flipped-aurora"
|
64 | 55 | />
|
65 | 56 | </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"> |
73 | 61 | <img class="w-8 h-8 rounded-full" :src="item.avatar_url" />
|
74 | 62 | <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" |
77 | 64 | >{{ item.login }}</el-link
|
78 | 65 | >
|
79 | 66 | </a>
|
80 | 67 | </div>
|
81 | 68 | </div>
|
82 | 69 | </div>
|
83 | 70 | </el-card>
|
84 |
| - </el-col> |
85 |
| - <el-col :span="12"> |
| 71 | + </div> |
| 72 | + <div class="w-full md:w-1/2"> |
86 | 73 | <el-card>
|
87 | 74 | <template #header>
|
88 | 75 | <div>提交记录</div>
|
89 | 76 | </template>
|
90 |
| - <div> |
| 77 | + <div class="h-[calc(100vh-300px)] overflow-y-auto"> |
91 | 78 | <el-timeline>
|
92 | 79 | <el-timeline-item
|
93 | 80 | v-for="(item, index) in dataTimeline"
|
|
102 | 89 | </el-timeline-item>
|
103 | 90 | </el-timeline>
|
104 | 91 | </div>
|
| 92 | + <div class="w-full flex items-center justify-center"> |
105 | 93 | <el-button class="load-more" type="primary" link @click="loadMore">
|
106 | 94 | Load more
|
107 | 95 | </el-button>
|
| 96 | + </div> |
108 | 97 | </el-card>
|
109 |
| - </el-col> |
110 |
| - </el-row> |
| 98 | + </div> |
| 99 | + </div> |
111 | 100 | </div>
|
112 | 101 | </template>
|
113 | 102 |
|
|
155 | 144 | </script>
|
156 | 145 |
|
157 | 146 | <style scoped>
|
158 |
| - .load-more { |
159 |
| - margin-left: 120px; |
160 |
| - } |
161 |
| -
|
162 | 147 | .avatar-img {
|
163 | 148 | float: left;
|
164 | 149 | height: 40px;
|
|
0 commit comments