Skip to content

Commit

Permalink
Update about page
Browse files Browse the repository at this point in the history
  • Loading branch information
Temparo committed Jun 11, 2024
1 parent 78e1549 commit 4b0a6dc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ declare module 'vue' {
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput']
ElMain: typeof import('element-plus/es')['ElMain']
ElOption: typeof import('element-plus/es')['ElOption']
Expand All @@ -34,7 +34,7 @@ declare module 'vue' {
ElSegmented: typeof import('element-plus/es')['ElSegmented']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElUpload: typeof import('element-plus/es')['ElUpload']
ElUpload: typeof import('element-plus/es')['ElUpload']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
MoveableTitle: typeof import('./src/components/moveableTitle.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
Expand Down
21 changes: 17 additions & 4 deletions src/views/About.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,42 @@
<script lang="ts" setup>
import {useRouter} from "vue-router";
import moveableTitle from "../components/moveableTitle.vue";
const router = useRouter()
const goBack = () => {
router.push('/index')
}
</script>

<template>
<el-page-header @back="goBack">
<el-page-header class="el-page-header" @back="goBack">
<template #content>
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item>About</el-breadcrumb-item>
</el-breadcrumb>
</template>
</el-page-header>
<el-container class="container">
<el-header>
<div class="headline text-9xl">
<span
class="cursor-text hover:ring-2 hover:ring-fuchsia-500 focus:ring-2 focus:ring-fuchsia-500 outline-0 bg-fuchsia-200/60 dark:bg-fuchsia-50/20 before:content-['<'] after:content-['/>'] after:ml-2">
<a class="outline-0" contenteditable="true" href="https://csu-index.github.io/" target="_self">CSU</a>
</span>
<a class="inline-block p-1 relative z-10" href="https://csu-index.github.io/" target="_self">&nbsp;-&nbsp;</a>
<moveableTitle/>
</div>
</el-header>
<el-main>
<el-card>
<div class="about">
<h2>CSU-Index是一个导航页,为中南大学学生提供常用网站链接</h2>
<h1>CSU-Index是一个导航页,为中南大学学生提供常用网站链接</h1>
<h1>我们的目标是“触手可及”,成为校内学习和科研最方便的导航站</h1>
</div>
</el-card>
<el-card>
<el-button @click="$router.push('feedback')">反馈</el-button>
</el-card>
</el-main>
</el-container>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/pc/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const router = useRouter()
let appPadding: string
if (device === "pc") {
appPadding = "1rem 1rem 1.5rem 1rem"
appPadding = "2.5rem 1rem 1.5rem 1rem"
} else if (device === "mobile") {
appPadding = "0"
}
Expand Down

0 comments on commit 4b0a6dc

Please sign in to comment.