2023-05-10 18:08:46 +00:00
|
|
|
<script setup lang="ts">
|
2023-06-05 02:52:35 +00:00
|
|
|
import KUNGalgameSearchBox from '@/components/KUNGalgameSearchBox.vue'
|
|
|
|
import Tags from './components/Tags.vue'
|
2023-06-07 10:10:53 +00:00
|
|
|
import Topic from './components/Topic.vue'
|
2023-06-12 17:41:14 +00:00
|
|
|
import Bar from './components/Bar.vue'
|
|
|
|
|
|
|
|
import { topic } from './components/topic'
|
2023-05-10 18:08:46 +00:00
|
|
|
</script>
|
2023-05-01 15:58:54 +00:00
|
|
|
|
|
|
|
<template>
|
2023-06-12 15:54:06 +00:00
|
|
|
<div class="pool">
|
2023-06-08 05:18:05 +00:00
|
|
|
<!-- 帖子池容器 -->
|
|
|
|
<div class="pool-container">
|
|
|
|
<KUNGalgameSearchBox style="width: 100%; height: 40px" />
|
|
|
|
<Tags />
|
2023-06-12 15:54:06 +00:00
|
|
|
|
2023-06-12 17:41:14 +00:00
|
|
|
<div class="topic-container">
|
|
|
|
<Topic
|
|
|
|
v-for="kun in topic"
|
|
|
|
class="item"
|
|
|
|
:key="kun.index"
|
|
|
|
:data="kun"
|
|
|
|
:class="`item-${kun.index}`"
|
|
|
|
/>
|
|
|
|
</div>
|
2023-05-01 15:58:54 +00:00
|
|
|
</div>
|
2023-06-12 17:41:14 +00:00
|
|
|
|
|
|
|
<Bar />
|
2023-05-01 15:58:54 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-05-25 07:55:30 +00:00
|
|
|
<style lang="scss" scoped>
|
2023-06-12 15:54:06 +00:00
|
|
|
.pool {
|
2023-06-07 10:10:53 +00:00
|
|
|
height: 100vh;
|
2023-05-01 15:58:54 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-06-12 15:54:06 +00:00
|
|
|
overflow-y: scroll;
|
2023-05-01 15:58:54 +00:00
|
|
|
}
|
|
|
|
/* 帖子池容器 */
|
|
|
|
.pool-container {
|
|
|
|
/* 占页面的宽度比例 */
|
|
|
|
width: 90%;
|
|
|
|
/* 居中 */
|
|
|
|
margin: 0 auto;
|
|
|
|
display: flex;
|
|
|
|
/* 不收缩 */
|
|
|
|
flex-shrink: 0;
|
|
|
|
/* 竖直方向弹性盒 */
|
|
|
|
flex-direction: column;
|
|
|
|
/* 毛玻璃背景 */
|
|
|
|
backdrop-filter: blur(5px);
|
2023-06-05 06:32:08 +00:00
|
|
|
background-color: var(--kungalgame-trans-white-5);
|
2023-06-12 15:54:06 +00:00
|
|
|
padding: 5px;
|
2023-05-01 15:58:54 +00:00
|
|
|
}
|
2023-06-12 17:41:14 +00:00
|
|
|
|
|
|
|
.topic-container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
|
|
grid-auto-rows: minmax(100px, 320px);
|
|
|
|
gap: 10px;
|
2023-05-01 15:58:54 +00:00
|
|
|
}
|
|
|
|
</style>
|