Skip to content

Commit 8c6d134

Browse files
committed
L4 ending code
1 parent 5892ead commit 8c6d134

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

src/App.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<div id="app">
33
<div id="nav">
4-
<router-link to="/">Home</router-link> |
5-
<router-link to="/about">About</router-link>
4+
<router-link :to="{ name: 'EventList' }">Events</router-link> |
5+
<router-link :to="{ name: 'About' }">About</router-link>
66
</div>
77
<router-view />
88
</div>
@@ -29,4 +29,8 @@
2929
#nav a.router-link-exact-active {
3030
color: #42b983;
3131
}
32+
33+
h4 {
34+
font-size: 20px;
35+
}
3236
</style>

src/components/EventCard.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
export default {
1010
props: {
1111
event: {
12-
type: Array,
12+
type: Object,
1313
required: true
1414
}
1515
}
@@ -24,9 +24,7 @@ export default {
2424
border: 1px solid #39495c;
2525
margin-bottom: 18px;
2626
}
27-
.event-card h4 {
28-
font-size: 20px;
29-
}
27+
3028
.event-card:hover {
3129
transform: scale(1.01);
3230
box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.2);

src/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { createApp } from "vue";
2-
import App from "./App.vue";
3-
import router from "./router";
4-
import store from "./store";
1+
import { createApp } from 'vue'
2+
import App from './App.vue'
3+
import router from './router'
4+
import store from './store'
55

66
createApp(App)
77
.use(store)
88
.use(router)
9-
.mount("#app");
9+
.mount('#app')

src/router/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { createRouter, createWebHistory } from 'vue-router'
2-
import Home from '../views/Home.vue'
2+
import EventList from '../views/EventList.vue'
33

44
const routes = [
55
{
66
path: '/',
7-
name: 'Home',
8-
component: Home
7+
name: 'EventList',
8+
component: EventList
99
},
1010
{
1111
path: '/about',

src/views/About.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
22
<div class="about">
3-
<h1>This is an about page</h1>
3+
<p>A site for events to better the world.</p>
44
</div>
55
</template>
File renamed without changes.

0 commit comments

Comments
 (0)