Skip to content

Commit 9c3b38a

Browse files
author
laurium
committed
c001 | create 'Yellow Quizzes', a vue.js quiz app
1 parent 68bf6dc commit 9c3b38a

13 files changed

+515
-95
lines changed

package-lock.json

+64-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
},
1010
"dependencies": {
1111
"core-js": "^3.8.3",
12-
"vue": "^3.2.13"
12+
"vue": "^3.2.13",
13+
"vue-router": "^4.1.6"
1314
},
1415
"devDependencies": {
1516
"@babel/core": "^7.12.16",

src/App.vue

+25-19
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
<template>
2-
<img alt="Vue logo" src="./assets/logo.png">
3-
<HelloWorld msg="Welcome to Your Vue.js App"/>
2+
<TheNavigation />
3+
<div class="container">
4+
<router-view />
5+
</div>
46
</template>
57

6-
<script>
7-
import HelloWorld from './components/HelloWorld.vue'
8-
9-
export default {
10-
name: 'App',
11-
components: {
12-
HelloWorld
13-
}
8+
<style>
9+
html,
10+
body {
11+
margin: 0;
12+
padding: 0;
13+
font-family: "Roboto", sans-serif;
1414
}
15-
</script>
1615
17-
<style>
18-
#app {
19-
font-family: Avenir, Helvetica, Arial, sans-serif;
20-
-webkit-font-smoothing: antialiased;
21-
-moz-osx-font-smoothing: grayscale;
22-
text-align: center;
23-
color: #2c3e50;
24-
margin-top: 60px;
16+
.container {
17+
display: flex;
18+
align-items: center;
19+
flex-direction: column;
20+
padding: 1rem;
2521
}
2622
</style>
23+
24+
<script>
25+
import TheNavigation from "./components/TheNavigation.vue";
26+
export default {
27+
name: "App",
28+
components: {
29+
TheNavigation,
30+
},
31+
};
32+
</script>

src/assets/logo.png

-6.69 KB
Binary file not shown.

src/components/HelloWorld.vue

-58
This file was deleted.

0 commit comments

Comments
 (0)