💄 (app) better responsive design
This commit is contained in:
@@ -32,6 +32,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
margin: 1rem;
|
margin: 0.1rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ export default defineComponent({
|
|||||||
.dev-session {
|
.dev-session {
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 24pt;
|
font-size: 24pt;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from '@vue/composition-api'
|
import { defineComponent, computed } from '@vue/composition-api'
|
||||||
import { useInterval } from '../hooks/useInterval'
|
import { useInterval } from '../hooks/useInterval'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@@ -48,8 +48,22 @@ export default defineComponent({
|
|||||||
props: {
|
props: {
|
||||||
editable: { type: Boolean, required: true }
|
editable: { type: Boolean, required: true }
|
||||||
},
|
},
|
||||||
setup() {
|
setup(props) {
|
||||||
const { minus, plus, label } = useInterval()
|
const { interval, minInterval, minus, plus } = useInterval()
|
||||||
|
|
||||||
|
const label = computed(() => {
|
||||||
|
if (interval.value > 1) {
|
||||||
|
return props.editable
|
||||||
|
? `${interval.value} minutes`
|
||||||
|
: `${interval.value} minute session`
|
||||||
|
}
|
||||||
|
|
||||||
|
if (interval.value === minInterval) {
|
||||||
|
return props.editable ? '30 seconds' : '30 second session'
|
||||||
|
}
|
||||||
|
|
||||||
|
return `${interval.value} minute`
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
minus,
|
minus,
|
||||||
|
|||||||
@@ -65,6 +65,9 @@ label[data-pm-holder] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.pm-field {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
.disabled {
|
.disabled {
|
||||||
color: desaturate($color, 70%);
|
color: desaturate($color, 70%);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { useGetters, useActions } from 'vuex-composition-helpers'
|
import { useGetters, useActions } from 'vuex-composition-helpers'
|
||||||
import { GetterTree } from 'vuex'
|
import { GetterTree } from 'vuex'
|
||||||
import { State, RootActions } from '@/store'
|
import { State, RootActions } from '@/store'
|
||||||
import { computed } from '@vue/composition-api'
|
|
||||||
|
|
||||||
const MIN_INTERVAL = 0.5
|
const MIN_INTERVAL = 0.5
|
||||||
|
|
||||||
@@ -19,22 +18,10 @@ export const useInterval = () => {
|
|||||||
setInterval(Math.floor(interval.value + 1))
|
setInterval(Math.floor(interval.value + 1))
|
||||||
}
|
}
|
||||||
|
|
||||||
const label = computed(() => {
|
|
||||||
if (interval.value > 1) {
|
|
||||||
return `${interval.value} minutes`
|
|
||||||
}
|
|
||||||
|
|
||||||
if (interval.value === MIN_INTERVAL) {
|
|
||||||
return '30 seconds'
|
|
||||||
}
|
|
||||||
|
|
||||||
return `${interval.value} minute`
|
|
||||||
})
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
interval,
|
interval,
|
||||||
|
minInterval: MIN_INTERVAL,
|
||||||
minus,
|
minus,
|
||||||
plus,
|
plus
|
||||||
label
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,3 +45,7 @@ button {
|
|||||||
margin: 0.5rem;
|
margin: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|||||||
@@ -76,6 +76,15 @@
|
|||||||
@play="start"
|
@play="start"
|
||||||
@pause="pause"
|
@pause="pause"
|
||||||
/>
|
/>
|
||||||
|
<footer>
|
||||||
|
chill with
|
||||||
|
<a
|
||||||
|
href="https://www.youtube.com/watch?v=5qap5aO4i9A"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>chilled cow</a
|
||||||
|
>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -120,6 +129,8 @@ export default defineComponent({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@import '@/styles/variables';
|
||||||
|
|
||||||
.home {
|
.home {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -144,4 +155,10 @@ export default defineComponent({
|
|||||||
.music {
|
.music {
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
justify-self: flex-end;
|
||||||
|
font-family: $serif-font-family;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user