handle different screen sizes

pull/1/head
Thomas Ballmann 4 years ago
parent 27b0ad0fbe
commit 0cd0e6970a

@ -1,6 +1,8 @@
<template> <template>
<v-container fluid _fill-height> <v-container fluid _fill-height>
<v-card flat class="mx-auto" width="520"> <v-row no-gutters justify="center">
<v-col lg="5" md="6" sm="8">
<v-card flat>
<v-card-title class="display-2 mb-12 justify-center text-center">Appearance</v-card-title> <v-card-title class="display-2 mb-12 justify-center text-center">Appearance</v-card-title>
<v-radio-group v-model="settings.device.theme" row> <v-radio-group v-model="settings.device.theme" row>
@ -12,13 +14,14 @@
<v-btn depressed block color="primary" @click="commitStep()">Continue</v-btn> <v-btn depressed block color="primary" @click="commitStep()">Continue</v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
</v-col>
</v-row>
</v-container> </v-container>
</template> </template>
<script> <script>
import apiDevice from "@/api/device"; import apiDevice from "@/api/device";
export default { export default {
data: () => ({ data: () => ({
isLoading: true, isLoading: true,
@ -46,5 +49,5 @@ export default {
this.$router.push("/setup/done"); this.$router.push("/setup/done");
} }
} }
} };
</script> </script>

@ -1,8 +1,10 @@
<template> <template>
<v-container fluid _fill-height> <v-container fluid _fill-height>
<v-row no-gutters justify="center">
<v-col lg="5" md="6" sm="8">
<template v-if="currentStep === 0"> <template v-if="currentStep === 0">
<!-- country --> <!-- country -->
<v-card flat class="mx-auto" width="520"> <v-card flat>
<v-card-title <v-card-title
class="display-2 mb-12 justify-center text-center" class="display-2 mb-12 justify-center text-center"
>Select Your Country or Region</v-card-title> >Select Your Country or Region</v-card-title>
@ -28,7 +30,7 @@
<template v-else-if="currentStep === 1"> <template v-else-if="currentStep === 1">
<!-- timezone if needed --> <!-- timezone if needed -->
<v-card flat class="mx-auto" width="520"> <v-card flat>
<v-card-title class="display-2 mb-12 justify-center text-center">Select Your Timezone</v-card-title> <v-card-title class="display-2 mb-12 justify-center text-center">Select Your Timezone</v-card-title>
<v-list class="ml-5 pa-0"> <v-list class="ml-5 pa-0">
@ -49,6 +51,8 @@
</v-list> </v-list>
</v-card> </v-card>
</template> </template>
</v-col>
</v-row>
</v-container> </v-container>
</template> </template>
@ -112,3 +116,11 @@ export default {
} }
}; };
</script> </script>
<style scoped>
/* issue https://github.com/vuetifyjs/vuetify/issues/9130 */
>>> .v-card__text,
.v-card__title {
word-break: normal;
}
</style>

@ -1,6 +1,8 @@
<template> <template>
<v-container fluid _fill-height> <v-container fluid _fill-height>
<v-card flat class="mx-auto" width="520"> <v-row no-gutters justify="center">
<v-col lg="5" md="6" sm="8">
<v-card flat>
<div class="justify-center text-center"> <div class="justify-center text-center">
<v-icon viewBox="0 0 24 24" style="width: 64px; height: 64px; fill: #FF9800">$face</v-icon> <v-icon viewBox="0 0 24 24" style="width: 64px; height: 64px; fill: #FF9800">$face</v-icon>
</div> </div>
@ -37,6 +39,8 @@
</v-card-actions> </v-card-actions>
</template> </template>
</v-card> </v-card>
</v-col>
</v-row>
</v-container> </v-container>
</template> </template>

@ -1,6 +1,8 @@
<template> <template>
<v-container fluid _fill-height> <v-container fluid _fill-height>
<v-card flat class="mx-auto" width="520"> <v-row no-gutters justify="center">
<v-col lg="5" md="6" sm="8">
<v-card flat>
<v-card-title class="display-2 mt-12 justify-center text-center">Hello paperdash</v-card-title> <v-card-title class="display-2 mt-12 justify-center text-center">Hello paperdash</v-card-title>
<Case <Case
@ -56,6 +58,8 @@
<v-btn depressed block color="primary" @click="commitStep()">Continue</v-btn> <v-btn depressed block color="primary" @click="commitStep()">Continue</v-btn>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
</v-col>
</v-row>
</v-container> </v-container>
</template> </template>

@ -1,6 +1,8 @@
<template> <template>
<v-container fluid _fill-height> <v-container fluid _fill-height>
<v-card flat class="mx-auto" width="520"> <v-row no-gutters justify="center">
<v-col lg="5" md="6" sm="8">
<v-card flat>
<div class="justify-center text-center"> <div class="justify-center text-center">
<v-icon viewBox="0 0 24 24" style="width: 64px; height: 64px; fill: #FF9800">$wb_sunny</v-icon> <v-icon viewBox="0 0 24 24" style="width: 64px; height: 64px; fill: #FF9800">$wb_sunny</v-icon>
</div> </div>
@ -29,7 +31,13 @@
</v-card-text> </v-card-text>
<v-card-actions class="flex-column"> <v-card-actions class="flex-column">
<v-btn :disabled="!isLocationValid" depressed block color="primary" @click="commitStep()">Continue</v-btn> <v-btn
:disabled="!isLocationValid"
depressed
block
color="primary"
@click="commitStep()"
>Continue</v-btn>
<v-btn <v-btn
class="ma-0 mt-3" class="ma-0 mt-3"
text text
@ -40,6 +48,8 @@
</v-card-actions> </v-card-actions>
</template> </template>
</v-card> </v-card>
</v-col>
</v-row>
</v-container> </v-container>
</template> </template>

@ -1,6 +1,8 @@
<template> <template>
<v-container fluid _fill-height> <v-container fluid _fill-height>
<v-card flat class="mx-auto" width="520"> <v-row no-gutters justify="center">
<v-col lg="5" md="6" sm="8">
<v-card flat>
<v-card-title class="display-2 mb-12 justify-center text-center"> <v-card-title class="display-2 mb-12 justify-center text-center">
Choose a Choose a
<br />Wi-Fi Network <br />Wi-Fi Network
@ -57,6 +59,8 @@
></setup-wifi-connect> ></setup-wifi-connect>
</v-dialog> </v-dialog>
</v-card> </v-card>
</v-col>
</v-row>
</v-container> </v-container>
</template> </template>

Loading…
Cancel
Save