Skip to content

Commit

Permalink
style: updates singup layout for mobile (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
tewshi authored Aug 11, 2023
1 parent 4f86de4 commit b083e90
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions components/account/activation/PendingActivation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const { t } = useI18n();

<template>
<div
class="container py-16 lg:pt-[250px] lg:pb-32 flex flex-col items-center justify-center"
class="container h-full flex flex-col pt-10 md:pt-0 md:flex-1 md:items-center md:justify-center"
>
<div class="w-[500px] space-y-3">
<div class="max-w-[30.6rem] space-y-3">
<div class="text-h4">{{ t('auth.pending_activation.title') }}</div>
<div class="text-body-1 text-rui-text-secondary">
{{ t('auth.pending_activation.message') }}
Expand Down
2 changes: 1 addition & 1 deletion components/account/signup/SignupAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const { t } = useI18n();
<div class="mt-16 grid md:grid-cols-2 gap-4">
<RuiButton
type="button"
class="w-full"
class="w-full row-start-2 md:row-start-auto"
size="lg"
data-cy="back-button"
@click="emit('back')"
Expand Down
2 changes: 1 addition & 1 deletion components/account/signup/SignupAddress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const { t } = useI18n();
<RuiButton
data-cy="back-button"
type="button"
class="w-full"
class="w-full row-start-2 md:row-start-auto"
size="lg"
@click="emit('back')"
>
Expand Down
2 changes: 1 addition & 1 deletion components/account/signup/SignupCustomerInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const { t } = useI18n();
<div class="mt-16 grid md:grid-cols-2 gap-4">
<RuiButton
type="button"
class="w-full"
class="w-full row-start-2 md:row-start-auto"
size="lg"
data-cy="back-button"
@click="emit('back')"
Expand Down
8 changes: 2 additions & 6 deletions components/account/signup/SignupForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ const setErrors = (errors: ValidationErrors) => {
<div
class="container flex flex-col lg:flex-row pt-4 pb-8 lg:py-14 h-full grow"
>
<div class="lg:hidden mb-14 [&>div>div]:pt-4 [&>div>hr]:!mt-4">
<RuiStepper custom orientation="horizontal" :step="step" :steps="steps" />
</div>

<div class="flex justify-center grow">
<form class="w-[440px] flex flex-col justify-between" @submit.prevent="">
<SignupIntroduction v-if="step === 1" @next="next()" />
Expand All @@ -172,8 +168,8 @@ const setErrors = (errors: ValidationErrors) => {
@back="back()"
@finish="signup($event)"
/>
<div class="mt-4 p-6">
<RuiFooterStepper v-model="step" :pages="4" variant="pill" />
<div class="py-10 lg:px-4">
<RuiFooterStepper :model-value="step" :pages="4" variant="pill" />
</div>
</form>
</div>
Expand Down
1 change: 0 additions & 1 deletion components/common/carousel/CarouselControls.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script lang="ts" setup>
import 'swiper/css';
import { get } from '@vueuse/core';
import { RuiFooterStepper } from '@rotki/ui-library';
import type { Swiper } from 'swiper/types';
const props = withDefaults(
Expand Down

0 comments on commit b083e90

Please sign in to comment.