Skip to content

Commit c0e076f

Browse files
Add location to events
1 parent 362391f commit c0e076f

5 files changed

Lines changed: 2610 additions & 2630 deletions

File tree

components/VigotechMember.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
<div class="logo-wrapper">
55
<div class="logo-content">
66
<img
7-
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==
8-
"
7+
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
98
class="square-bg"
109
>
1110
<img

components/VigotechNextEvent.vue

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="vigotech-next-event">
2+
<article class="vigotech-next-event">
33
<h4>
44
<i class="fa fa-calendar" />
55
<span v-if="nextEventsGroups.length == 1">Vindeiro evento</span>
@@ -25,14 +25,20 @@
2525
<a :href="nextEventGroup.nextEvent.url">
2626
<h6>{{ nextEventGroup.name }}</h6>
2727
<h5>{{ nextEventGroup.nextEvent.title }}</h5>
28-
<strong>{{ eventDate(nextEventGroup.nextEvent.date) }}</strong>
29-
<span class="btn">
30-
Máis info
31-
</span>
28+
<footer>
29+
<strong>{{ eventDate(nextEventGroup.nextEvent.date) }}</strong>
30+
<span class="btn">
31+
Máis info
32+
</span>
33+
</footer>
34+
35+
<h6 v-if="nextEventGroup.nextEvent.location" class="vigotech-next-event__location">
36+
<i class="fa fa-map-pin"></i> {{ nextEventGroup.nextEvent.location }}
37+
</h6>
3238
</a>
3339
</div>
3440
</div>
35-
</div>
41+
</article>
3642
</template>
3743

3844
<script>

components/VigotechNextEventTip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
computed: {
3131
fullTitle () {
32-
return `${this.nextEvent.title}\n${moment(this.nextEvent.date).format('dddd, D MMMM YYYY HH:mm')}`
32+
return `${this.nextEvent.title}\n${moment(this.nextEvent.date).format('dddd, D MMMM YYYY HH:mm')}${this.nextEvent.location ? `\n${this.nextEvent.location}`: ''}`
3333
}
3434
}
3535
}

static/vigotech-events-schema.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
"properties": {
1313
"title": {
1414
"type": "string",
15-
"description": "Eventname"
15+
"description": "Event name"
1616
},
1717
"date": {
18-
"type": "numeric",
18+
"type": "number",
1919
"description": "Unix timestamp event datetime"
2020
},
2121
"url": {
2222
"type": "string",
2323
"description": "Event URL"
24+
},
25+
"location": {
26+
"type": "string",
27+
"description": "Where the event will take place"
2428
}
2529
}
2630
}

0 commit comments

Comments
 (0)