From c1d5a8c359747413cdcd0ffd37e8650afc534535 Mon Sep 17 00:00:00 2001 From: hemingtsai Date: Tue, 24 Dec 2024 20:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=BB=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 109 ++++++++++-------------------- src/components/SubProjectCard.vue | 15 ++++ src/main.css | 100 +++++++++++++++++++++++++++ src/main.ts | 1 + 4 files changed, 150 insertions(+), 75 deletions(-) create mode 100644 src/components/SubProjectCard.vue create mode 100644 src/main.css diff --git a/src/App.vue b/src/App.vue index 2728c77..99b9adf 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,4 +1,24 @@ - + diff --git a/src/components/SubProjectCard.vue b/src/components/SubProjectCard.vue new file mode 100644 index 0000000..fca6584 --- /dev/null +++ b/src/components/SubProjectCard.vue @@ -0,0 +1,15 @@ + + + \ No newline at end of file diff --git a/src/main.css b/src/main.css new file mode 100644 index 0000000..203c086 --- /dev/null +++ b/src/main.css @@ -0,0 +1,100 @@ +@import url("https://chinese-fonts-cdn.deno.dev/packages/syst/dist/SourceHanSerifCN/result.css"); + +* { + +} + +body { + overflow: scroll; +} + +mdui-layout-main { + margin-left: 2em; + margin-right: 2em; +} + +p { + font-size: 2vh; +} + +h1 { + font-size: 10vh; + font-weight: bold; + width: 100%; + text-align: left; +} + +.header h1 { + background: -webkit-linear-gradient( + 135deg, + #08dfb4, + #ff6ac6 25%, + #661496 50%, + #e6d205 55%, + #2cc4e0 60%, + #8b2ce0 80%, + #ff6384 95%, + #08dfb4 + ); + -webkit-text-fill-color: transparent; + background-clip: text; + background-size: 200% 100%; + animation: header_title_animation 12s infinite linear; +} + +@keyframes header_title_animation { + 0% { + background-position: 0 0; + } + + 100% { + background-position: -400% 0; + } +} + +h1:hover { + animation: header_title_animation 8s infinite linear; +} + +h2 { + font-size: 6vh; +} + +.footer { + width: auto; + height:2vh +} + +.footer h3{ + text-align: center; + width: 100%; +} + +.header { + margin: auto; +} + +.header .desc { + width: 75%; + text-align: left; +} + +@media screen and (max-width: 640px) { + h1 { + font-size: 2.5em; + font-weight: bold; + width: 100%; + text-align: left; + } + + .header-mover { + margin-top: 1em; + margin-bottom: 2em; + margin-left: 1em; + } + + .header .desc { + width: 75%; + text-align: left; + } +} diff --git a/src/main.ts b/src/main.ts index e1335df..708da59 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,6 +3,7 @@ import App from './App.vue' import 'mdui/mdui.css'; import 'mdui'; import '@mdui/icons/search.js'; +import './main.css' createApp(App).mount('#app')