From dac964c5a38ce26318f9be5dd8c67966a798df97 Mon Sep 17 00:00:00 2001 From: 630f2a19f082584524f6c27d <630f2a19f082584524f6c27d@devide> Date: Mon, 24 Apr 2023 07:36:08 +0000 Subject: [PATCH] Auto commit --- index.html | 2 +- package.json | 1 + src/App.vue | 256 ++++++++++++++++++--- src/assets/base.css | 2 + src/components/HelloWorld.vue | 43 ---- src/components/TheWelcome.vue | 84 ------- src/components/WelcomeItem.vue | 86 ------- 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 -- 12 files changed, 226 insertions(+), 295 deletions(-) delete mode 100644 src/components/HelloWorld.vue delete mode 100644 src/components/TheWelcome.vue delete mode 100644 src/components/WelcomeItem.vue delete mode 100644 src/components/icons/IconCommunity.vue delete mode 100644 src/components/icons/IconDocumentation.vue delete mode 100644 src/components/icons/IconEcosystem.vue delete mode 100644 src/components/icons/IconSupport.vue delete mode 100644 src/components/icons/IconTooling.vue diff --git a/index.html b/index.html index 030a6ff..2b88249 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Vite App + 打造3D动态银河系特效
diff --git a/package.json b/package.json index aa1c7de..547f2da 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ }, "dependencies": { "guess": "^1.0.2", + "three": "^0.151.3", "vue": "^3.2.37" }, "devDependencies": { diff --git a/src/App.vue b/src/App.vue index 633a5df..c136f75 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,47 +1,235 @@ + + + +import {onMounted} from 'vue' - +//像素比 +const sizes = { + width: window.innerWidth, + height: window.innerHeight +} - diff --git a/src/assets/base.css b/src/assets/base.css index 71dc55a..9978ae2 100644 --- a/src/assets/base.css +++ b/src/assets/base.css @@ -55,8 +55,10 @@ *::after { box-sizing: border-box; margin: 0; + padding: 0; position: relative; font-weight: normal; + } body { diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue deleted file mode 100644 index 1b8faac..0000000 --- a/src/components/HelloWorld.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - - - diff --git a/src/components/TheWelcome.vue b/src/components/TheWelcome.vue deleted file mode 100644 index d3d2e7a..0000000 --- a/src/components/TheWelcome.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/src/components/WelcomeItem.vue b/src/components/WelcomeItem.vue deleted file mode 100644 index ba0def3..0000000 --- a/src/components/WelcomeItem.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/src/components/icons/IconCommunity.vue b/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b05..0000000 --- a/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/src/components/icons/IconDocumentation.vue b/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791c..0000000 --- a/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/src/components/icons/IconEcosystem.vue b/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f07..0000000 --- a/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/src/components/icons/IconSupport.vue b/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834..0000000 --- a/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/src/components/icons/IconTooling.vue b/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d..0000000 --- a/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - -- GitLab