This commit is contained in:
zhangxiaozhuozhuo 2024-03-21 17:42:24 +08:00
parent d051ff4076
commit 316b841b82
19 changed files with 11584 additions and 0 deletions

23
.gitignore vendored Normal file
View File

@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

5
babel.config.js Normal file
View File

@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}

19
jsconfig.json Normal file
View File

@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}

11241
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

46
package.json Normal file
View File

@ -0,0 +1,46 @@
{
"name": "competition-kc",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^3.8.3",
"sass": "^1.72.0",
"sass-loader": "^14.1.1",
"vue": "^2.6.14",
"vue-router": "^3.6.5"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"vue-template-compiler": "^2.6.14"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

17
public/index.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

32
src/App.vue Normal file
View File

@ -0,0 +1,32 @@
<template>
<div id="app">
<!-- <img alt="Vue logo" src="./assets/logo.png"> -->
<HomePage msg="Welcome to Your Vue.js App"/>
</div>
</template>
<script>
import HomePage from './components/HomePage.vue'
export default {
name: 'App',
components: {
HomePage
}
}
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
/* margin-top: 60px; */
}
html, body {
margin: 0;
padding: 0;
}
</style>

BIN
src/assets/banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

1
src/assets/banner.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
src/assets/kc-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
src/assets/kc-title.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
src/assets/left-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
src/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
src/assets/right-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

172
src/components/HomePage.vue Normal file
View File

@ -0,0 +1,172 @@
<template>
<div class="home-page">
<!-- Banner Section -->
<div class="banner-section">
<div class="logo-and-title">
<img class="banner-logo" src="../assets/kc-logo.png" />
<div class="banner-blank"></div>
<img class="banner-title" src="../assets/kc-title.png" />
</div>
<div class="download-button">宣传视频下载</div>
</div>
<!-- Video Section -->
<div class="video-section">
<video
class="video-box"
src="https://osredm-oss.obs.cn-north-4.myhuaweicloud.com/%E5%BC%80%E5%88%9B%E6%B4%BB%E5%8A%A80315-%E5%85%AC%E5%BC%80%E7%89%88.mp4"
controls
autoplay
muted
></video>
</div>
<!-- 简介 Section -->
<div class="intro-section" id="intro">
<div class="intro-box"></div>
<!-- <p>项目简介</p> -->
</div>
<!-- logo Section -->
<div class="logo-section" id="bigLogo">
<div class="logo-box"></div>
<!-- <p>项目LOGO</p> -->
</div>
<!-- 宣传海报 Section -->
<div class="poster-section" id="poster">
<div class="poster-box"></div>
<!-- <p>宣传海报</p> -->
</div>
<!-- footer Section -->
<div class="footer-section" id="footer"></div>
</div>
</template>
<script>
export default {
name: "HomePage",
};
</script>
<style scoped>
.banner-section {
width: 100%;
height: 680px;
position: relative;
background-image: url("../assets/banner.svg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
.logo-and-title {
width: 1300px;
height: auto;
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
.banner-logo {
width: 200px;
height: auto;
}
.banner-blank {
width: 30px;
height: auto;
}
.banner-title {
width: 1070px;
height: auto;
}
}
.download-button {
width: 250px;
height: 60px;
border: 1px solid #ffffff;
background-color: #3466ee;
color: #ffffff;
font-size: 25px;
letter-spacing: 3px;
line-height: 60px;
position: absolute;
bottom: 8%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.video-section {
width: 100%;
height: 780px;
background-color: #dae5ff;
position: relative;
.video-box {
width: 1100px;
height: auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.intro-section {
width: 100%;
height: 500px;
background-color: #180e8d;
position: relative;
.intro-box {
border: 1px solid #000000;
width: 1100px;
height: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.logo-section {
width: 100%;
height: 500px;
background-color: #dae5ff;
position: relative;
.logo-box {
border: 1px solid #000000;
width: 1100px;
height: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.poster-section {
width: 100%;
height: 600px;
background-color: #180e8d;
position: relative;
.poster-box {
border: 1px solid #000000;
width: 1100px;
height: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.footer-section {
width: 100%;
height: 200px;
background-color: rgb(22, 32, 70);
}
</style>

8
src/main.js Normal file
View File

@ -0,0 +1,8 @@
import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')

16
src/router/index.js Normal file
View File

@ -0,0 +1,16 @@
import Vue from 'vue';
import Router from 'vue-router';
import HomePage from '../components/HomePage.vue';
Vue.use(Router);
export default new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'home',
component: HomePage,
},
],
});

4
vue.config.js Normal file
View File

@ -0,0 +1,4 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true
})