feat:增加食光集
This commit is contained in:
45
src/App.vue
45
src/App.vue
@@ -5,7 +5,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="app-center">
|
<div class="app-center">
|
||||||
<el-card class="app-card" style="background-color: #0555a8;"
|
<el-card class="app-card" style="background-color: #11616B;"
|
||||||
@click="blogClick">
|
@click="blogClick">
|
||||||
<i class="fa-solid fa-book-open"></i>
|
<i class="fa-solid fa-book-open"></i>
|
||||||
<div>
|
<div>
|
||||||
@@ -13,7 +13,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card class="app-card" style="background-color: darkcyan;"
|
<el-card class="app-card" style="background-color: #08979D;"
|
||||||
|
@click="blogAdminClick">
|
||||||
|
<i class="fa-solid fa-gear"></i>
|
||||||
|
<div>
|
||||||
|
<span>博客Admin</span>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-card class="app-card" style="background-color: #c93c05;"
|
||||||
@click="sweetHutClick">
|
@click="sweetHutClick">
|
||||||
<i class="fa-solid fa-house"></i>
|
<i class="fa-solid fa-house"></i>
|
||||||
<div>
|
<div>
|
||||||
@@ -21,15 +29,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card class="app-card" style="background-color: blueviolet;"
|
<el-card class="app-card" style="background-color: #0ba140;"
|
||||||
@click="blogAdminClick">
|
@click="foodHubClick">
|
||||||
<i class="fa-solid fa-gear"></i>
|
<i class="fa-solid fa-bowl-food"></i>
|
||||||
<div>
|
<div>
|
||||||
<span>博客管理系统</span>
|
<span>食光集</span>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card class="app-card" style="background-color: sandybrown;"
|
<el-card class="app-card" style="background-color: #926851;"
|
||||||
@click="resumeClick">
|
@click="resumeClick">
|
||||||
<i class="fa-solid fa-newspaper"></i>
|
<i class="fa-solid fa-newspaper"></i>
|
||||||
<div>
|
<div>
|
||||||
@@ -67,6 +75,15 @@ const sweetHutClick = () => {
|
|||||||
window.open(`${window.location.origin}/sweet-hut/`, '_blank');
|
window.open(`${window.location.origin}/sweet-hut/`, '_blank');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const foodHubClick = () => {
|
||||||
|
if (!isMobile()) {
|
||||||
|
ElMessage.info('暂不支持PC端访问')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
window.open(`${window.location.origin}/food-hub/`, '_blank');
|
||||||
|
}
|
||||||
|
|
||||||
const blogAdminClick = () => {
|
const blogAdminClick = () => {
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
ElMessage.info('暂不支持移动端访问')
|
ElMessage.info('暂不支持移动端访问')
|
||||||
@@ -104,7 +121,7 @@ const resumeClick = () => {
|
|||||||
margin-top: 100px;
|
margin-top: 100px;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 25px;
|
gap: 25px;
|
||||||
|
|
||||||
.app-card {
|
.app-card {
|
||||||
@@ -113,8 +130,8 @@ const resumeClick = () => {
|
|||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
|
|
||||||
.el-card__body {
|
.el-card__body {
|
||||||
display: flex;
|
display: grid;
|
||||||
justify-content: center;
|
grid-template-columns: 25px 1fr;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
@@ -125,13 +142,19 @@ const resumeClick = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.app-center {
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.footer-content {
|
.footer-content {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
||||||
color: #6B7280;
|
color: #2B2B2C;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ body {
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
|
font-family: '华文楷体', 'Times New Roman', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
@@ -32,6 +32,7 @@ html, body {
|
|||||||
|
|
||||||
#app {
|
#app {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
background-color: lightgray;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
|||||||
Reference in New Issue
Block a user