Skip to content

Commit 3261eae

Browse files
committed
#1 Working on the flow. Creating a static height card to hold the recordings and adding a message to it for when it is empty.
1 parent 1b02273 commit 3261eae

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

components/RecordingsList.vue

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<template>
2-
<v-list elevation="5" shaped color="primary">
3-
<v-list-item-group
2+
<v-list elevation="0" shaped color="primary">
3+
<v-slide-y-transition
44
v-model="selected"
5+
tag="v-list-item-group"
6+
class="py-0"
7+
group
58
mandatory
69
@change="$emit('input', selected)"
710
>
@@ -11,11 +14,11 @@
1114
@remove-item="remove(recording.id)"
1215
></recording-item>
1316
<v-divider
14-
v-show="index != recordingsInternal.length - 1"
17+
v-if="index !== recordingsInternal.length - 1"
1518
inset
1619
></v-divider>
1720
</div>
18-
</v-list-item-group>
21+
</v-slide-y-transition>
1922
</v-list>
2023
</template>
2124

@@ -52,3 +55,8 @@ export default {
5255
}
5356
}
5457
</script>
58+
<style lang="scss">
59+
.v-move {
60+
transition: transform 1s;
61+
}
62+
</style>

nuxt.config.js

-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// import path from 'path'
2-
// import fs from 'fs'
31
import colors from 'vuetify/es5/util/colors'
42

53
require('dotenv').config()
64

75
export default {
8-
// server: {
9-
// https: {
10-
// key: fs.readFileSync(path.resolve(__dirname, 'server.key')),
11-
// cert: fs.readFileSync(path.resolve(__dirname, 'server.crt'))
12-
// }
13-
// },
146
mode: 'spa',
157
/*
168
** Headers of the page

pages/index.vue

+14-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,20 @@
4545
<v-card-text>
4646
<timer :timer-status="timerStatus" :time-limit="TIME_LIMIT"></timer>
4747

48-
<recordings-list
49-
v-if="recordings.length"
50-
v-model="selected"
51-
:recordings="recordings"
52-
></recordings-list>
48+
<v-card color="primary" height="190">
49+
<recordings-list
50+
v-if="recordings.length"
51+
v-model="selected"
52+
:recordings="recordings"
53+
></recordings-list>
54+
<v-layout v-else fill-height align-center>
55+
<v-flex>
56+
<p class="text-center text--secondary mb-0">
57+
Recordings will appear here
58+
</p>
59+
</v-flex>
60+
</v-layout>
61+
</v-card>
5362
</v-card-text>
5463
</v-card>
5564

0 commit comments

Comments
 (0)