-
Notifications
You must be signed in to change notification settings - Fork 1
/
Events.vue
64 lines (61 loc) · 2.3 KB
/
Events.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<i18n lang="yaml">
## language=yaml
en:
event_overview: |
This year's Scala Matsuri 2023 will be held online.<br>
We are planning to hold some contents unique to online. Stay tuned!
ja:
event_overview: |
ScalaMatsuri 2023はオンライン開催予定です。<br>
オンラインならではの催し物を多数実施する予定ですので、どうぞお楽しみに!
</i18n>
<template>
<section class="content events">
<div class="content_inner">
<h2 class="content_title">Events</h2>
<!-- <p class="content_text">-->
<!-- <span v-html="$t('event_overview')" />-->
<!-- </p>-->
<div class="content_contents">
<figure v-for="(image, idx) in images" :key="image.src" :class="[idx === 0 ? 'content_img-big' : '', 'content_img']">
<img v-lazy="image.src" :alt="image.caption" />
<figcaption v-if="image.caption" class="content_imgcaption">
{{ $t(image.caption) }}
</figcaption>
</figure>
</div>
</div>
</section>
</template>
<script>
export default {
data() {
return {
images: [
{ src: require("~/assets/img/top/img-events1.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events2.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events3.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events4.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events5.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events6.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events7.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events8.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events9.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events10.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events11.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events12.jpg"), caption: "" },
{ src: require("~/assets/img/top/img-events13.jpg"), caption: "" },
],
}
},
mounted() {
this.images = this.shuffle(this.images)
},
}
</script>
<style lang="scss" scoped>
// For preventing content from reflow by maintaining image height.
img:not([lazy="loaded"]) {
padding-top: 68.9%;
}
</style>