优化界面操作逻辑,提升对手持设备的兼容性
Build and Publish / Run (push) Successful in 2m36s
Details
Build and Publish / Run (push) Successful in 2m36s
Details
This commit is contained in:
parent
5c5fbbe88a
commit
cbc7994230
45
index.html
45
index.html
|
@ -1,24 +1,35 @@
|
|||
<!doctype html>
|
||||
<html lang="en" class="mdui-theme-auto">
|
||||
|
||||
<head>
|
||||
<head>
|
||||
<title>Study Area CN</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="keywords"
|
||||
content="Study-area, study-area, study-area-cn Study Area CN, study area cn, 酷学园, 酷学园 CN , 酷!学园, netman, linux, mdbook">
|
||||
<meta name="description" content="Study Area CN 酷学园CN, 玩的开心,学的愉快!">
|
||||
<meta name="generator" content="Vite, mdbook">
|
||||
<meta name="copyright" content="StudyAreaCN Team">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="author" content="StudyAreaCN Team,team@study-area.org.cn">
|
||||
<meta name="robots" content="index,follow">
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.png">
|
||||
</head>
|
||||
<meta
|
||||
name="keywords"
|
||||
content="Study-area, study-area, study-area-cn Study Area CN, study area cn, 酷学园, 酷学园 CN , 酷!学园, netman, linux, mdbook"
|
||||
/>
|
||||
<meta
|
||||
name="description"
|
||||
content="Study Area CN 酷学园CN, 玩的开心,学的愉快!"
|
||||
/>
|
||||
<meta name="generator" content="Vite, mdbook" />
|
||||
<meta name="copyright" content="StudyAreaCN Team" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="author" content="StudyAreaCN Team,team@study-area.org.cn" />
|
||||
<meta name="robots" content="index,follow" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.png" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
</div>
|
||||
<body>
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
|
||||
</body>
|
||||
</html>
|
86
src/App.vue
86
src/App.vue
|
@ -1,5 +1,4 @@
|
|||
<script setup>
|
||||
</script>
|
||||
<script setup></script>
|
||||
|
||||
<style>
|
||||
* {
|
||||
|
@ -8,9 +7,13 @@
|
|||
</style>
|
||||
|
||||
<template>
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link
|
||||
href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
|
||||
<mdui-top-app-bar style="position: relative;">
|
||||
<mdui-layout style="height: 100%">
|
||||
<mdui-top-app-bar>
|
||||
<mdui-button-icon id="openButton" icon="menu"></mdui-button-icon>
|
||||
<mdui-top-app-bar-title>Study Area CN</mdui-top-app-bar-title>
|
||||
<div style="flex-grow: 1"></div>
|
||||
|
@ -18,55 +21,84 @@
|
|||
|
||||
<mdui-navigation-drawer close-on-overlay-click class="navi-drawer">
|
||||
<mdui-list>
|
||||
<mdui-list-item end-icon="arrow_right" href="https://learn.study-area.org.cn">开始学习</mdui-list-item>
|
||||
<mdui-list-item end-icon="arrow_right" href="https://forum.study-area.org.cn">讨论区</mdui-list-item>
|
||||
<mdui-list-item end-icon="arrow_right"
|
||||
href="https://git.hmtsai.cn/study-area-cn/study-area-cn-homepage/">查看本站源码</mdui-list-item>
|
||||
<mdui-list-item
|
||||
end-icon="arrow_right"
|
||||
href="https://learn.study-area.org.cn"
|
||||
>开始学习</mdui-list-item
|
||||
>
|
||||
<mdui-list-item
|
||||
end-icon="arrow_right"
|
||||
href="https://forum.study-area.org.cn"
|
||||
>讨论区</mdui-list-item
|
||||
>
|
||||
<mdui-list-item
|
||||
end-icon="arrow_right"
|
||||
href="https://git.hmtsai.cn/study-area-cn/study-area-cn-homepage/"
|
||||
>查看本站源码</mdui-list-item
|
||||
>
|
||||
</mdui-list>
|
||||
</mdui-navigation-drawer>
|
||||
|
||||
<component :is="'script'">
|
||||
const navigationDrawer = document.querySelector(".navi-drawer");
|
||||
const openButton = document.getElementById("openButton");
|
||||
|
||||
openButton.addEventListener("click", () => navigationDrawer.open = true);
|
||||
const navigationDrawer = document.querySelector(".navi-drawer"); const
|
||||
openButton = document.getElementById("openButton");
|
||||
openButton.addEventListener("click", () => navigationDrawer.open =
|
||||
!navigationDrawer.open);
|
||||
</component>
|
||||
|
||||
<div id="content">
|
||||
<mdui-layout-main>
|
||||
<mdui-card href="https://forum.study-area.org.cn/" clickable class="card">
|
||||
<h1>Study Area CN 讨论区</h1>
|
||||
</mdui-card>
|
||||
|
||||
<mdui-card href="https://learn.study-area.org.cn/"clickable class="card">
|
||||
<mdui-card href="https://learn.study-area.org.cn/" clickable class="card">
|
||||
<h1>开始学习</h1>
|
||||
</mdui-card>
|
||||
|
||||
<mdui-card href="https://git.hmtsai.cn/study-area-cn/study-area-cn-homepage/" clickable class="card">
|
||||
<mdui-card
|
||||
href="https://git.hmtsai.cn/study-area-cn/study-area-cn-homepage/"
|
||||
clickable
|
||||
class="card"
|
||||
>
|
||||
<h1>查看本站源码</h1>
|
||||
</mdui-card>
|
||||
|
||||
<mdui-card href="https://git.hmtsai.cn/study-area-cn/" clickable class="card">
|
||||
<mdui-card
|
||||
href="https://git.hmtsai.cn/study-area-cn/"
|
||||
clickable
|
||||
class="card"
|
||||
>
|
||||
<h1>本站Gitea</h1>
|
||||
</mdui-card>
|
||||
</div>
|
||||
|
||||
|
||||
</mdui-layout-main>
|
||||
</mdui-layout>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
|
||||
h1{
|
||||
h1 {
|
||||
padding-left: 15px;
|
||||
}
|
||||
#content {
|
||||
|
||||
mdui-layout-main {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.card {
|
||||
flex: 300px;
|
||||
height: 200px;
|
||||
margin:5px;
|
||||
mdui-card {
|
||||
margin: 3px;
|
||||
width: 24.5%;
|
||||
height: 25%;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 640px) {
|
||||
mdui-card {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
mdui-layout-main{
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue