From ad4bbef65b1621a8f5ef609b459fb75084b909ac Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Sat, 7 Sep 2024 15:17:33 +0800 Subject: chore: move site dir --- src/App.vue | 7 ++ src/assets/Hydroroll-small.svg | 61 +++++++++++ src/assets/Protocol.drawio | 108 +++++++++++++++++++ src/assets/base.css | 97 +++++++++++++++++ src/assets/favicon.ico | Bin 0 -> 4286 bytes src/assets/image/logo.png | Bin 0 -> 235361 bytes src/assets/main.css | 72 +++++++++++++ src/assets/video/bg.mp4 | Bin 0 -> 877575 bytes src/components/icons/IconCommunity.vue | 7 ++ src/components/icons/IconDocumentation.vue | 7 ++ src/components/icons/IconEcosystem.vue | 7 ++ src/components/icons/IconSupport.vue | 7 ++ src/components/icons/IconTooling.vue | 19 ++++ src/layouts/default/AppBar.vue | 13 +++ src/layouts/default/Default.vue | 12 +++ src/layouts/default/View.vue | 9 ++ src/main.ts | 38 +++++++ src/plugins/index.ts | 20 ++++ src/plugins/vuetify.ts | 26 +++++ src/router/index.ts | 21 ++++ src/store/app.ts | 8 ++ src/store/index.ts | 4 + src/styles/settings.scss | 10 ++ src/views/404.vue | 18 ++++ src/views/index/Left.vue | 84 +++++++++++++++ src/views/index/Notepad/changelog.ts | 16 +++ src/views/index/Notepad/index.vue | 53 ++++++++++ src/views/index/Right.vue | 160 +++++++++++++++++++++++++++++ src/views/index/index.vue | 82 +++++++++++++++ src/vite-env.d.ts | 10 ++ 30 files changed, 976 insertions(+) create mode 100644 src/App.vue create mode 100644 src/assets/Hydroroll-small.svg create mode 100644 src/assets/Protocol.drawio create mode 100644 src/assets/base.css create mode 100644 src/assets/favicon.ico create mode 100644 src/assets/image/logo.png create mode 100644 src/assets/main.css create mode 100644 src/assets/video/bg.mp4 create mode 100644 src/components/icons/IconCommunity.vue create mode 100644 src/components/icons/IconDocumentation.vue create mode 100644 src/components/icons/IconEcosystem.vue create mode 100644 src/components/icons/IconSupport.vue create mode 100644 src/components/icons/IconTooling.vue create mode 100644 src/layouts/default/AppBar.vue create mode 100644 src/layouts/default/Default.vue create mode 100644 src/layouts/default/View.vue create mode 100644 src/main.ts create mode 100644 src/plugins/index.ts create mode 100644 src/plugins/vuetify.ts create mode 100644 src/router/index.ts create mode 100644 src/store/app.ts create mode 100644 src/store/index.ts create mode 100644 src/styles/settings.scss create mode 100644 src/views/404.vue create mode 100644 src/views/index/Left.vue create mode 100644 src/views/index/Notepad/changelog.ts create mode 100644 src/views/index/Notepad/index.vue create mode 100644 src/views/index/Right.vue create mode 100644 src/views/index/index.vue create mode 100644 src/vite-env.d.ts (limited to 'src') diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..88a4d52 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/src/assets/Hydroroll-small.svg b/src/assets/Hydroroll-small.svg new file mode 100644 index 0000000..242c16c --- /dev/null +++ b/src/assets/Hydroroll-small.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/Protocol.drawio b/src/assets/Protocol.drawio new file mode 100644 index 0000000..b40856d --- /dev/null +++ b/src/assets/Protocol.drawio @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/base.css b/src/assets/base.css new file mode 100644 index 0000000..9c513a5 --- /dev/null +++ b/src/assets/base.css @@ -0,0 +1,97 @@ +/* color palette from */ +:root { + /*背景色*/ + /*--vt-c-white: #ffffff;*/ + --vt-c-white: #001F3A; + --vt-c-white-soft: #f8f8f8; + --vt-c-white-mute: #f2f2f2; + + --vt-c-black: #181818; + --vt-c-black-soft: #222222; + --vt-c-black-mute: #282828; + + /*文字色*/ + /*--vt-c-indigo: #2c3e50;*/ + --vt-c-indigo: rgba(255,255,255,0.5); + + --vt-c-divider-light-1: rgba(60, 60, 60); + /*边框色*/ + /*--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);*/ + --vt-c-divider-light-2: rgba(150, 150, 150); + --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); + --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); + + /*小标题色*/ + --vt-c-text-light-1: var(--vt-c-indigo); + --vt-c-text-light-2: rgba(60, 60, 60, 0.66); + --vt-c-text-dark-1: var(--vt-c-white); + --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); + + --vt-c-background: #0000aa; +} + +/* semantic color variables for this project */ +:root { + --color-background: var(--vt-c-white); + --color-background-soft: var(--vt-c-white-soft); + --color-background-mute: var(--vt-c-white-mute); + + --color-border: var(--vt-c-divider-light-2); + --color-border-hover: var(--vt-c-divider-light-1); + + --color-heading: var(--vt-c-text-light-1); + --color-text: var(--vt-c-text-light-1); + + --section-gap: 160px; + + --icon-highlight: linear-gradient(to right, #00F8F3, #00BDEF); +} + +@media (prefers-color-scheme: dark) { + :root { + --color-background: var(--vt-c-white); + --color-background-soft: var(--vt-c-white-soft); + --color-background-mute: var(--vt-c-white-mute); + + --color-border: var(--vt-c-divider-light-2); + --color-border-hover: var(--vt-c-divider-light-1); + + --color-heading: var(--vt-c-text-light-1); + --color-text: var(--vt-c-text-light-1); + } +} + +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + font-weight: normal; +} + +body { + min-height: 100vh; + color: var(--color-text); + background: var(--color-background); + transition: + color 0.5s, + background-color 0.5s; + line-height: 1.6; + font-family: + Inter, + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + Roboto, + Oxygen, + Ubuntu, + Cantarell, + 'Fira Sans', + 'Droid Sans', + 'Helvetica Neue', + sans-serif; + font-size: 15px; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} diff --git a/src/assets/favicon.ico b/src/assets/favicon.ico new file mode 100644 index 0000000..dd63670 Binary files /dev/null and b/src/assets/favicon.ico differ diff --git a/src/assets/image/logo.png b/src/assets/image/logo.png new file mode 100644 index 0000000..8b5a14c Binary files /dev/null and b/src/assets/image/logo.png differ diff --git a/src/assets/main.css b/src/assets/main.css new file mode 100644 index 0000000..890703f --- /dev/null +++ b/src/assets/main.css @@ -0,0 +1,72 @@ +@import './base.css'; + +#app { + max-width: 90dvi; + margin: 0 auto; + padding: 2rem; + + font-weight: normal; +} + +a, +.green { + text-decoration: none; + /*高亮色*/ + /*color: hsla(160, 100%, 37%, 1);*/ + color: #00BDEF; + transition: 0.4s; +} + +@media (hover: hover) { + a:hover { + /*background-color: hsla(160, 100%, 37%, 0.2);*/ + color: #00F8F3; + text-decoration: underline; + } +} + +@media screen and (orientation:landscape) { + body { + display: flex; + place-items: center; + } + + #app { + display: grid; + grid-template-columns: 1fr 1fr; + padding: 0 2rem; + } +} + +.item i { + background: linear-gradient(to right, #00F8F3, #00BDEF); +} +.item{ + transition: 0.4s; +} +.item:hover{ + background-color:rgba(255,255,255,0.05); +} +.details h3, +.item i{ + color:#ffffff; +} + +/*滚动条优化*/ +::-webkit-scrollbar-track { + background: rgba(0, 0, 0, 0.1); + border-radius: 0; +} + +::-webkit-scrollbar { + -webkit-appearance: none; + width: 6px; + height: 6px; +} + +::-webkit-scrollbar-thumb { + cursor: pointer; + border-radius: 5px; + background: rgba(0, 0, 0, 0.15); + transition: color 0.2s ease; +} diff --git a/src/assets/video/bg.mp4 b/src/assets/video/bg.mp4 new file mode 100644 index 0000000..37e71d2 Binary files /dev/null and b/src/assets/video/bg.mp4 differ diff --git a/src/components/icons/IconCommunity.vue b/src/components/icons/IconCommunity.vue new file mode 100644 index 0000000..2dc8b05 --- /dev/null +++ b/src/components/icons/IconCommunity.vue @@ -0,0 +1,7 @@ + diff --git a/src/components/icons/IconDocumentation.vue b/src/components/icons/IconDocumentation.vue new file mode 100644 index 0000000..6d4791c --- /dev/null +++ b/src/components/icons/IconDocumentation.vue @@ -0,0 +1,7 @@ + diff --git a/src/components/icons/IconEcosystem.vue b/src/components/icons/IconEcosystem.vue new file mode 100644 index 0000000..c3a4f07 --- /dev/null +++ b/src/components/icons/IconEcosystem.vue @@ -0,0 +1,7 @@ + diff --git a/src/components/icons/IconSupport.vue b/src/components/icons/IconSupport.vue new file mode 100644 index 0000000..7452834 --- /dev/null +++ b/src/components/icons/IconSupport.vue @@ -0,0 +1,7 @@ + diff --git a/src/components/icons/IconTooling.vue b/src/components/icons/IconTooling.vue new file mode 100644 index 0000000..660598d --- /dev/null +++ b/src/components/icons/IconTooling.vue @@ -0,0 +1,19 @@ + + diff --git a/src/layouts/default/AppBar.vue b/src/layouts/default/AppBar.vue new file mode 100644 index 0000000..4d0660e --- /dev/null +++ b/src/layouts/default/AppBar.vue @@ -0,0 +1,13 @@ + + + diff --git a/src/layouts/default/Default.vue b/src/layouts/default/Default.vue new file mode 100644 index 0000000..e642631 --- /dev/null +++ b/src/layouts/default/Default.vue @@ -0,0 +1,12 @@ + + + diff --git a/src/layouts/default/View.vue b/src/layouts/default/View.vue new file mode 100644 index 0000000..8e9e414 --- /dev/null +++ b/src/layouts/default/View.vue @@ -0,0 +1,9 @@ + + + diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..6bb9085 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,38 @@ +/** + * main.ts + * + * Bootstraps Vuetify and other plugins then mounts the App` + */ + + +// Components +import App from './App.vue' + +// Composable +import { createApp } from 'vue' + +// Plugins +import { registerPlugins } from '@/plugins' + +import './assets/main.css' +import VMdPreview from '@kangc/v-md-editor/lib/preview'; +import '@kangc/v-md-editor/lib/style/preview.css'; +import githubTheme from '@kangc/v-md-editor/lib/theme/github.js'; +import '@kangc/v-md-editor/lib/theme/style/github.css'; +import ElementPlus from 'element-plus' +import 'element-plus/dist/index.css' +// highlights +import hljs from 'highlight.js'; + +VMdPreview.use(githubTheme, { + Hljs: hljs, +}); + + + + +const app = createApp(App) +app.use(VMdPreview) +app.use(ElementPlus) +registerPlugins(app) +app.mount('#app') diff --git a/src/plugins/index.ts b/src/plugins/index.ts new file mode 100644 index 0000000..baa02f3 --- /dev/null +++ b/src/plugins/index.ts @@ -0,0 +1,20 @@ +/** + * plugins/index.ts + * + * Automatically included in `./src/main.ts` + */ + +// Plugins +import vuetify from './vuetify' +import pinia from '../store' +import router from '../router' + +// Types +import type { App } from 'vue' + +export function registerPlugins (app: App) { + app + .use(vuetify) + .use(router) + .use(pinia) +} diff --git a/src/plugins/vuetify.ts b/src/plugins/vuetify.ts new file mode 100644 index 0000000..c276519 --- /dev/null +++ b/src/plugins/vuetify.ts @@ -0,0 +1,26 @@ +/** + * plugins/vuetify.ts + * + * Framework documentation: https://vuetifyjs.com` + */ + +// Styles +import '@mdi/font/css/materialdesignicons.css' +import 'vuetify/styles' + +// Composables +import { createVuetify } from 'vuetify' + +// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides +export default createVuetify({ + theme: { + themes: { + light: { + colors: { + primary: '#1867C0', + secondary: '#5CBBF6', + }, + }, + }, + }, +}) diff --git a/src/router/index.ts b/src/router/index.ts new file mode 100644 index 0000000..38c65fd --- /dev/null +++ b/src/router/index.ts @@ -0,0 +1,21 @@ +// Composables +import { createRouter, createWebHistory } from 'vue-router' + +const routes = [ + { + path: '/', + component: () => import('@/views/index/index.vue'), + }, + { + path: '/:path(.*)', + name: '404', + component: () => import('@/views/404.vue'), + } +] + +const router = createRouter({ + history: createWebHistory(process.env.BASE_URL), + routes, +}) + +export default router diff --git a/src/store/app.ts b/src/store/app.ts new file mode 100644 index 0000000..7429543 --- /dev/null +++ b/src/store/app.ts @@ -0,0 +1,8 @@ +// Utilities +import { defineStore } from 'pinia' + +export const useAppStore = defineStore('app', { + state: () => ({ + // + }), +}) diff --git a/src/store/index.ts b/src/store/index.ts new file mode 100644 index 0000000..1536252 --- /dev/null +++ b/src/store/index.ts @@ -0,0 +1,4 @@ +// Utilities +import { createPinia } from 'pinia' + +export default createPinia() diff --git a/src/styles/settings.scss b/src/styles/settings.scss new file mode 100644 index 0000000..3e36a27 --- /dev/null +++ b/src/styles/settings.scss @@ -0,0 +1,10 @@ +/** + * src/styles/settings.scss + * + * Configures SASS variables and Vuetify overwrites + */ + +// https://vuetifyjs.com/features/sass-variables/` +// @use 'vuetify/settings' with ( +// $color-pack: false +// ); diff --git a/src/views/404.vue b/src/views/404.vue new file mode 100644 index 0000000..7462697 --- /dev/null +++ b/src/views/404.vue @@ -0,0 +1,18 @@ + + + + + diff --git a/src/views/index/Left.vue b/src/views/index/Left.vue new file mode 100644 index 0000000..f774223 --- /dev/null +++ b/src/views/index/Left.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/views/index/Notepad/changelog.ts b/src/views/index/Notepad/changelog.ts new file mode 100644 index 0000000..111f8f2 --- /dev/null +++ b/src/views/index/Notepad/changelog.ts @@ -0,0 +1,16 @@ +import axios from 'axios'; + +export const getChangeLog = async() => +{ + const changeLog = axios.get('https://api.github.com/repos/HydroRoll-Team/HydroRoll/releases/latest') + .then(res => { + console.log(res.data); + const ChangeLogMessage ="## "+ res.data['tag_name']+"\n"+res.data['body']; + return ChangeLogMessage; + }) + .catch(err => { + console.log(err); + return err.toString(); + }) + return changeLog; +} diff --git a/src/views/index/Notepad/index.vue b/src/views/index/Notepad/index.vue new file mode 100644 index 0000000..fde6e90 --- /dev/null +++ b/src/views/index/Notepad/index.vue @@ -0,0 +1,53 @@ + + + + + + + diff --git a/src/views/index/Right.vue b/src/views/index/Right.vue new file mode 100644 index 0000000..d76397e --- /dev/null +++ b/src/views/index/Right.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/views/index/index.vue b/src/views/index/index.vue new file mode 100644 index 0000000..003f752 --- /dev/null +++ b/src/views/index/index.vue @@ -0,0 +1,82 @@ + + + + + + + diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..7d17c38 --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1,10 @@ +/// + +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} +declare module '@kangc/v-md-editor/lib/preview'; +declare module '@kangc/v-md-editor/lib/theme/github.js'; +declare module 'prismjs'; -- cgit v1.2.3-70-g09d2