Forked from justinatack/Quasar Framework Login & Registration Form Card Component Example
Created
June 24, 2022 01:28
-
-
Save migasun/75d899880b1b1024bcf9a32e8b7ac5e7 to your computer and use it in GitHub Desktop.
Quasar Framework Login & Registration Form Card Component Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<q-page | |
class="window-height window-width row justify-center items-center" | |
style="background: linear-gradient(#8274C5, #5A4A9F);" | |
> | |
<div class="column q-pa-lg"> | |
<div class="row"> | |
<q-card square class="shadow-24" style="width:300px;height:485px;"> | |
<q-card-section class="bg-deep-purple-7"> | |
<h4 class="text-h5 text-white q-my-md">Company & Co</h4> | |
<div class="absolute-bottom-right q-pr-md" style="transform: translateY(50%);"> | |
<q-btn fab icon="add" color="purple-4" /> | |
</div> | |
</q-card-section> | |
<q-card-section> | |
<q-form class="q-px-sm q-pt-xl"> | |
<q-input square clearable v-model="email" type="email" label="Email"> | |
<template v-slot:prepend> | |
<q-icon name="email" /> | |
</template> | |
</q-input> | |
<q-input square clearable v-model="password" type="password" label="Password"> | |
<template v-slot:prepend> | |
<q-icon name="lock" /> | |
</template> | |
</q-input> | |
</q-form> | |
</q-card-section> | |
<q-card-section> | |
<div class="text-center q-pa-md q-gutter-md"> | |
<q-btn round color="indigo-7"> | |
<q-icon name="fab fa-facebook-f" size="1.2rem" /> | |
</q-btn> | |
<q-btn round color="red-8"> | |
<q-icon name="fab fa-google-plus-g" size="1.2rem" /> | |
</q-btn> | |
<q-btn round color="light-blue-5"> | |
<q-icon name="fab fa-twitter" size="1.2rem" /> | |
</q-btn> | |
</div> | |
</q-card-section> | |
<q-card-actions class="q-px-lg"> | |
<q-btn unelevated size="lg" color="purple-4" class="full-width text-white" label="Sign In" /> | |
</q-card-actions> | |
<q-card-section class="text-center q-pa-sm"> | |
<p class="text-grey-6">Forgot your password?</p> | |
</q-card-section> | |
</q-card> | |
</div> | |
</div> | |
<div class="column q-pa-lg"> | |
<div class="row"> | |
<q-card square class="shadow-24" style="width:300px;height:485px;"> | |
<q-card-section class="bg-deep-purple-7"> | |
<h4 class="text-h5 text-white q-my-md">Registration</h4> | |
<div class="absolute-bottom-right q-pr-md" style="transform: translateY(50%);"> | |
<q-btn fab icon="close" color="purple-4" /> | |
</div> | |
</q-card-section> | |
<q-card-section> | |
<q-form class="q-px-sm q-pt-xl q-pb-lg"> | |
<q-input square clearable v-model="email" type="email" label="Email"> | |
<template v-slot:prepend> | |
<q-icon name="email" /> | |
</template> | |
</q-input> | |
<q-input square clearable v-model="username" type="username" label="Username"> | |
<template v-slot:prepend> | |
<q-icon name="person" /> | |
</template> | |
</q-input> | |
<q-input square clearable v-model="password" type="password" label="Password"> | |
<template v-slot:prepend> | |
<q-icon name="lock" /> | |
</template> | |
</q-input> | |
</q-form> | |
</q-card-section> | |
<q-card-actions class="q-px-lg"> | |
<q-btn unelevated size="lg" color="purple-4" class="full-width text-white" label="Get Started" /> | |
</q-card-actions> | |
<q-card-section class="text-center q-pa-sm"> | |
<p class="text-grey-6">Return to login</p> | |
</q-card-section> | |
</q-card> | |
</div> | |
</div> | |
</q-page> | |
</template> | |
<script> | |
export default { | |
name: 'Login', | |
data () { | |
return { | |
email: '', | |
username: '', | |
password: '' | |
} | |
} | |
} | |
</script> | |
<style> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment