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

feat: refactor a new site #73

Closed
wants to merge 3 commits into from
Closed
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
156 changes: 154 additions & 2 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hydroroll-home",
"version": "0.0.0",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "vite",
Expand All @@ -9,8 +9,11 @@
"lint": "eslint . --fix --ignore-path .gitignore"
},
"dependencies": {
"@kangc/v-md-editor": "^2.3.18",
"@mdi/font": "7.0.96",
"axios": "^1.6.2",
"core-js": "^3.29.0",
"md-editor-v3": "^4.9.0",
"pinia": "^2.0.0",
"roboto-fontface": "*",
"vue": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion site/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import Left from './components/Left.vue'
import TheWelcome from './components/TheWelcome.vue'
import TheWelcome from './components/Right.vue'
</script>

<template>
Expand Down
17 changes: 13 additions & 4 deletions site/src/assets/base.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
/* color palette from <https://github.com/vuejs/theme> */
:root {
--vt-c-white: #ffffff;
/*背景色*/
/*--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: #2c3e50;*/
--vt-c-indigo: rgba(255,255,255,0.5);

--vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
/*边框色*/
/*--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);*/
--vt-c-divider-light-2: rgba(255, 255, 255, 0.12);
--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 */
Expand All @@ -38,7 +47,7 @@

@media (prefers-color-scheme: dark) {
:root {
--color-background: var(--vt-c-black);
--color-background: var(--vt-c-background);
--color-background-soft: var(--vt-c-black-soft);
--color-background-mute: var(--vt-c-black-mute);

Expand Down
22 changes: 20 additions & 2 deletions site/src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@
a,
.green {
text-decoration: none;
color: hsla(160, 100%, 37%, 1);
/*高亮色*/
/*color: hsla(160, 100%, 37%, 1);*/
color: #00BDEF;
transition: 0.4s;
}

@media (hover: hover) {
a:hover {
background-color: hsla(160, 100%, 37%, 0.2);
/*background-color: hsla(160, 100%, 37%, 0.2);*/
color: #00F8F3;
text-decoration: underline;
}
}

Expand All @@ -33,3 +37,17 @@ a,
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;
}
Loading