Skip to content

Commit dff3467

Browse files
authored
Merge branch 'development' into feature/85-from-cookie-to-localstorage
2 parents d8f9d86 + 43a6895 commit dff3467

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<template>
2+
<v-bottom-sheet v-model="sheet" persistent>
3+
<v-container class="simple-bottom-sheet">
4+
<v-row>
5+
<v-col class="message">{{ message }}</v-col>
6+
<v-col cols="2">
7+
<span class="abb-button">
8+
<AddButton @addButtonClicked="addButtonClicked" />
9+
</span>
10+
</v-col>
11+
</v-row>
12+
</v-container>
13+
</v-bottom-sheet>
14+
</template>
15+
16+
<script lang="ts">
17+
import Vue from 'vue'
18+
import AddButton from '@/components/AddButton.vue'
19+
20+
export default Vue.extend({
21+
name: 'SimpleBottomSheet',
22+
components: { AddButton },
23+
props: {
24+
message: {
25+
type: String,
26+
required: true
27+
},
28+
expanded: {
29+
type: Boolean,
30+
required: false,
31+
default: true
32+
}
33+
},
34+
data() {
35+
return {
36+
sheet: this.expanded
37+
}
38+
},
39+
methods: {
40+
addButtonClicked() {
41+
this.sheet = !this.sheet
42+
this.$emit('addButtonClicked')
43+
}
44+
}
45+
})
46+
</script>
47+
48+
<style lang="scss" scoped>
49+
.simple-bottom-sheet {
50+
background-color: $color-base-color-07;
51+
color: $color-white;
52+
border-radius: 24px 24px 0 0;
53+
padding: 0;
54+
}
55+
56+
.message {
57+
max-width: 90%;
58+
padding: 1rem 1.5rem;
59+
align-self: center;
60+
}
61+
62+
.add-button {
63+
max-width: 20%;
64+
margin: 0 12px;
65+
padding: 10px;
66+
align-self: end;
67+
float: right;
68+
}
69+
</style>

0 commit comments

Comments
 (0)