Refine styles for pages (#31)

This commit is contained in:
AceDataCloud committed 2024-01-03 20:21:07 +08:00
1 parent 5b8b46b76b
commit 97f914c7e4
14 files changed
+60 -56

No files matched your search

-1
View File
@@ -110,7 +110,6 @@ export default defineComponent({
margin-bottom: 100px;
.icon {
font-size: 20px;
margin-bottom: 10px;
}
.subtitle {
text-align: center;
+4 -1
View File
@@ -32,9 +32,12 @@ export default defineComponent({
background: none;
padding-top: 3px;
color: inherit;
// color: var(--el-text-color-primary);
ol {
list-style: initial;
}
pre code {
color: white;
}
}
</style>
+5 -1
View File
@@ -1,7 +1,7 @@
<template>
<div class="side-panel">
<div>
<img src="@/assets/images/logo.svg" class="logo" @click="onHome" />
<img v-if="isOfficial" src="@/assets/images/logo.svg" class="logo" @click="onHome" />
</div>
<div class="links">
<a
@@ -36,6 +36,7 @@ import {
ROUTE_CONSOLE_DISTRIBUTION_INDEX
} from '@/router';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { BASE_URL_HUB } from '@/constants';
interface ILink {
key: string;
@@ -52,6 +53,9 @@ export default defineComponent({
FontAwesomeIcon
},
computed: {
isOfficial() {
return window.location.origin === BASE_URL_HUB;
},
active() {
return this.$route.matched[0].path;
},
@@ -5,7 +5,7 @@
</div>
</div>
<div v-else class="tasks">
<el-card v-for="_ in 8" :key="_" class="task">
<el-card v-for="_ in 12" :key="_" class="task">
<el-skeleton animated>
<template #template>
<el-skeleton-item variant="image" class="icon-placeholder" />
@@ -120,12 +120,14 @@ export default defineComponent({
flex: 1;
width: 100%;
overflow-y: scroll;
margin-top: 15px;
flex-wrap: wrap;
display: flex;
justify-content: space-around;
flex-direction: row;
align-items: center;
max-width: 1700px;
margin: 15px auto;
padding-top: 10px;
.task {
width: 350px;
margin-bottom: 30px;