Skip to content

Commit 47172b9

Browse files
committed
add vue router
1 parent fe440c3 commit 47172b9

File tree

22 files changed

+697
-118
lines changed

22 files changed

+697
-118
lines changed

.DS_Store

-8 KB
Binary file not shown.

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

_v2/moduleart-website/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ pnpm-debug.log*
2020
*.ntvs*
2121
*.njsproj
2222
*.sln
23-
*.sw?
23+
*.sw?
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
presets: [
3-
'@vue/cli-plugin-babel/preset'
4-
]
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
55
}

_v2/moduleart-website/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
},
1010
"dependencies": {
1111
"core-js": "^3.6.5",
12-
"vue": "^3.0.0"
12+
"vue": "^3.0.0",
13+
"vue-router": "^4.0.10"
1314
},
1415
"devDependencies": {
1516
"@vue/cli-plugin-babel": "~4.5.0",
@@ -18,7 +19,9 @@
1819
"@vue/compiler-sfc": "^3.0.0",
1920
"babel-eslint": "^10.1.0",
2021
"eslint": "^6.7.2",
21-
"eslint-plugin-vue": "^7.0.0"
22+
"eslint-plugin-vue": "^7.0.0",
23+
"node-sass": "^6.0.1",
24+
"sass-loader": "^10.1.1"
2225
},
2326
"eslintConfig": {
2427
"root": true,

_v2/moduleart-website/src/App.vue

Lines changed: 0 additions & 26 deletions
This file was deleted.
308 KB
Binary file not shown.
-6.69 KB
Binary file not shown.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@font-face {
2+
font-family: "Pacifico";
3+
src: url('../../assets/fonts/Pacifico.ttf');
4+
}
5+
6+
body {
7+
font: 18px -apple-system, system-ui, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
8+
line-height: 150%;
9+
-webkit-font-smoothing: antialiased;
10+
-moz-osx-font-smoothing: grayscale;
11+
-webkit-text-size-adjust: none;
12+
text-align: center;
13+
color: #111;
14+
margin: 0;
15+
}
16+
17+
main {
18+
max-width: 560px;
19+
width: 100%;
20+
margin: 0 auto;
21+
padding: 0 20px;
22+
}
23+
24+
a {
25+
color: #38F;
26+
text-decoration: none;
27+
position: relative;
28+
font-weight: 500;
29+
30+
&:hover {
31+
border-bottom: 2px solid #38f;
32+
}
33+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<main>
3+
<global-header />
4+
<router-view />
5+
<global-footer />
6+
<apps />
7+
</main>
8+
</template>
9+
10+
<script>
11+
import GlobalHeader from "../GlobalHeader/GlobalHeader.vue";
12+
import GlobalFooter from "../GlobalFooter/GlobalFooter.vue";
13+
14+
export default {
15+
name: "App",
16+
components: {
17+
GlobalHeader,
18+
GlobalFooter,
19+
},
20+
};
21+
</script>
22+
23+
<style lang="scss">
24+
@import "./App.scss";
25+
</style>

0 commit comments

Comments
 (0)