title-image.vue
774 Bytes
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
<template>
<div class="title-image">
<title-floor :title="{name: floor.title, more_name: floor.more_name, more_url: floor.more_url}"></title-floor>
<a class="image" :href="floor.image.url">
<img v-bind:src="floor.image.src | resize 750 364">
</a>
</div>
</template>
<script>
const titleFloor = require('component/resources/title-floor.vue');
module.exports = {
props: ['floor'],
components: {
titleFloor: titleFloor
}
};
</script>
<style>
.title-image {
a {
display: block;
}
.image {
width: 100%;
height: 364px;
}
img {
width: 100%;
height: 100%;
}
}
</style>