Better support for mobile devices on login and account pages

This commit is contained in:
Dane Everitt 2018-06-16 18:04:48 -07:00
parent 941c585c73
commit 5c3d3f6ce9
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
7 changed files with 18 additions and 12 deletions

View File

@ -1,6 +1,6 @@
<template>
<div>
<form class="bg-white shadow-lg rounded-lg pt-10 px-8 pb-6 mb-4 animate fadein" method="post"
<form class="login-box" method="post"
v-on:submit.prevent="submitForm"
>
<div class="flex flex-wrap -mx-3 mb-6">

View File

@ -1,6 +1,6 @@
<template>
<div>
<form class="bg-white shadow-lg rounded-lg pt-10 px-8 pb-6 mb-4 animate fadein" method="post"
<form class="login-box" method="post"
v-on:submit.prevent="submitForm"
>
<div class="flex flex-wrap -mx-3 mb-6">

View File

@ -1,5 +1,5 @@
<template>
<form class="bg-white shadow-lg rounded-lg pt-10 px-8 pb-6 mb-4 animate fadein" method="post"
<form class="login-box" method="post"
v-on:submit.prevent="submitToken"
>
<div class="flex flex-wrap -mx-3 mb-6">

View File

@ -1,22 +1,22 @@
<template>
<div>
<navigation/>
<div class="container animate fadein mt-6">
<div class="container animate fadein mt-2 sm:mt-6">
<modal :show="modalVisible" v-on:close="modalVisible = false">
<TwoFactorAuthentication/>
</modal>
<flash container="mt-6 mb-2 mx-4"/>
<flash container="mt-2 sm:mt-6 mb-2 sm:mx-4"/>
<div class="flex flex-wrap">
<div class="w-full md:w-1/2">
<div class="m-4 md:ml-0">
<update-email class="mb-8"/>
<div class="content-box text-center">
<div class="sm:m-4 md:ml-0">
<update-email class="mb-4 sm:mb-8"/>
<div class="content-box text-center mb-4 sm:mb-0">
<button class="btn btn-green btn-sm" type="submit" v-on:click="modalVisible = true">Configure 2-Factor Authentication</button>
</div>
</div>
</div>
<div class="w-full md:w-1/2">
<change-password class="m-4 md:mr-0"/>
<change-password class="sm:m-4 md:mr-0"/>
</div>
</div>
</div>

View File

@ -1,3 +1,9 @@
.login-box {
@apply .bg-white .shadow-lg .rounded-lg .pt-10 .px-8 .pb-6 .mb-4;
@screen xsx {
@apply .rounded-none;
margin-top: 25%;
box-shadow: 0 15px 30px 0 rgba(0, 0, 0, .2), 0 -15px 30px 0 rgba(0, 0, 0, .2);
}
}

View File

@ -3,8 +3,8 @@
])
@section('container')
<div class="w-full max-w-xs sm:max-w-sm m-auto mt-8">
<div class="text-center">
<div class="w-full sm:max-w-sm m-auto mt-8">
<div class="text-center hidden sm:block">
<img src="/favicons/android-chrome-512x512.png" class="max-w-xxs">
</div>
<router-view></router-view>

View File

@ -3,7 +3,7 @@
@section('container')
<router-view></router-view>
<div class="w-full m-auto mt-0 container">
<p class="text-right text-grey-dark text-xs">
<p class="text-center sm:text-right text-grey-dark text-xs">
{!! trans('strings.copyright', ['year' => date('Y')]) !!}
</p>
</div>