Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix site #100

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="/src/assets/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>水系官网</title>
</head>
Expand Down
Binary file added site/src/assets/favicon.ico
Binary file not shown.
10 changes: 7 additions & 3 deletions site/src/views/index/Right.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Notepad from './Notepad/index.vue'
import DocumentationIcon from '@/components/icons/IconDocumentation.vue'
import { getChangeLog } from './Notepad/changelog'

import { computed } from 'vue'

export default {
data() {
Expand Down Expand Up @@ -47,13 +47,17 @@ export default {
}
},
beforeCreate() {
getChangeLog().then(res => {
changeLogMessage.value.then((res) => {
this.changeLogMessage = res;
this.change_page(this.mainPage);
})
});
},
}

const changeLogMessage = computed(() => {
return getChangeLog();
})

</script>

<template>
Expand Down
24 changes: 22 additions & 2 deletions site/src/views/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,37 @@ import Left from './Left.vue'
import Right from './Right.vue'
</script>

<script lang="ts">
export default {
data() {
return {
isplay: false
}
},
methods: {
PlayOn() {
this.isplay = true
}
}
}
</script>

<template>
<header>
<img alt="Vue logo" class="logo" src="@/assets/Hydroroll-small.svg" width="125" height="125" />
<img src="@/assets/Hydroroll-small.svg"
alt="Vue logo"
class="logo"
width="125" height="125" />

<div class="wrapper">
<Left msg="饼在画了!" />
</div>
</header>

<main class="main">
<video src="@/assets/video/bg.mp4" loop=true autoplay=true></video>
<video loop=true preload="auto" muted="true" autoplay @canplay="PlayOn" v-show="isplay" >
<source src="@/assets/video/bg.mp4" type="video/mp4" />
</video>
<Right />
</main>
</template>
Expand Down
Loading