Skip to content

Commit

Permalink
#1 Working on the flow. Creating a static height card to hold the rec…
Browse files Browse the repository at this point in the history
…ordings and adding a message to it for when it is empty.
  • Loading branch information
ackzell committed May 23, 2020
1 parent 1b02273 commit 3261eae
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
16 changes: 12 additions & 4 deletions components/RecordingsList.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>
<v-list elevation="5" shaped color="primary">
<v-list-item-group
<v-list elevation="0" shaped color="primary">
<v-slide-y-transition
v-model="selected"
tag="v-list-item-group"
class="py-0"
group
mandatory
@change="$emit('input', selected)"
>
Expand All @@ -11,11 +14,11 @@
@remove-item="remove(recording.id)"
></recording-item>
<v-divider
v-show="index != recordingsInternal.length - 1"
v-if="index !== recordingsInternal.length - 1"
inset
></v-divider>
</div>
</v-list-item-group>
</v-slide-y-transition>
</v-list>
</template>

Expand Down Expand Up @@ -52,3 +55,8 @@ export default {
}
}
</script>
<style lang="scss">
.v-move {
transition: transform 1s;
}
</style>
8 changes: 0 additions & 8 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
// import path from 'path'
// import fs from 'fs'
import colors from 'vuetify/es5/util/colors'

require('dotenv').config()

export default {
// server: {
// https: {
// key: fs.readFileSync(path.resolve(__dirname, 'server.key')),
// cert: fs.readFileSync(path.resolve(__dirname, 'server.crt'))
// }
// },
mode: 'spa',
/*
** Headers of the page
Expand Down
19 changes: 14 additions & 5 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,20 @@
<v-card-text>
<timer :timer-status="timerStatus" :time-limit="TIME_LIMIT"></timer>

<recordings-list
v-if="recordings.length"
v-model="selected"
:recordings="recordings"
></recordings-list>
<v-card color="primary" height="190">
<recordings-list
v-if="recordings.length"
v-model="selected"
:recordings="recordings"
></recordings-list>
<v-layout v-else fill-height align-center>
<v-flex>
<p class="text-center text--secondary mb-0">
Recordings will appear here
</p>
</v-flex>
</v-layout>
</v-card>
</v-card-text>
</v-card>

Expand Down

0 comments on commit 3261eae

Please sign in to comment.