Skip to content

Commit

Permalink
Merge pull request #508 from AOT-Technologies/master
Browse files Browse the repository at this point in the history
Login Page Redesign
  • Loading branch information
gil0109 authored Feb 13, 2021
2 parents cd88a44 + 54ac2e8 commit 13833aa
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 25 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 85 additions & 24 deletions appointment-frontend/src/components/appointment/LoginToConfirm.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
<template>
<v-card-text :class="{'login-selection-mobile': $vuetify.breakpoint.xs}">
<v-row justify="center">
<v-col cols="12" sm="5" class="text-center">
<v-btn
<v-card-text>
<v-col justify="center">
<v-row class="align-row-1 bcsc-btn" v-if="!hideBCServicesCard">
<v-col class="fill-width">
<v-btn
min-width="150"
large
color="primary"
@click="login(idpHint.BCSC)"
>
BC Services Card
</v-btn>
<a class="link-w-icon mt-6" href="https://www2.gov.bc.ca/gov/content/governments/government-id/bc-services-card"
target="_blank" rel="noopener noreferrer">
<v-icon small class="mr-2">mdi-open-in-new</v-icon>
<span>About the BC Services Card</span>
</a>
</v-col>
<v-col class="align-row-2 fill-width">
<v-img
class="login-logo"
:src="($vuetify.breakpoint.xs) ? require('@/assets/img/bcsc_logo_sm.jpg') : require('@/assets/img/bcsc_logo.jpg')"
max-width="132"
contain
></v-img>
</v-col>
</v-row>
<v-row class="align-row-1 bcsc-btn">
<v-col class="fill-width">
<v-btn
min-width="150"
large
color="primary"
Expand All @@ -15,9 +41,24 @@
<v-icon small class="mr-2">mdi-open-in-new</v-icon>
<span>About the BCeID</span>
</a>
<v-btn :href="BCEIDRegistrationURL"
</v-col>
<v-col class="align-row-2 fill-width">
<v-img
class="login-logo"
:src="($vuetify.breakpoint.xs) ? require('@/assets/img/bceid_logo_sm.jpg') : require('@/assets/img/bceid_logo.jpg')"
max-width="132"
contain
></v-img>
</v-col>
</v-row>
<v-row class="text-center bcsc-btn">
<v-col class="create-bceid">I do not have a BC Services Card or BCeID</v-col>
</v-row>
<v-row class="align-row-1 bcsc-btn">
<v-col class="fill-width">
<v-btn :href="BCEIDRegistrationURL"
min-width="150"
large class="create-bceid"
large
color="primary"
>
Create BCeID
Expand All @@ -32,23 +73,17 @@
<v-icon small class="mr-2">mdi-open-in-new</v-icon>
<span>Privacy Statement</span>
</a>
</v-col>
<v-col cols="12" sm="5" class="text-center bcsc-btn" v-if="!hideBCServicesCard">
<v-btn
min-width="150"
large
color="primary"
@click="login(idpHint.BCSC)"
>
BC Services Card
</v-btn>
<a class="link-w-icon mt-6" href="https://www2.gov.bc.ca/gov/content/governments/government-id/bc-services-card"
target="_blank" rel="noopener noreferrer">
<v-icon small class="mr-2">mdi-open-in-new</v-icon>
<span>About the BC Services Card</span>
</a>
</v-col>
</v-row>
</v-col>
<v-col class="align-row-2 fill-width">
<v-img
class="login-logo"
:src="($vuetify.breakpoint.xs) ? require('@/assets/img/bceid_logo_sm.jpg') : require('@/assets/img/bceid_logo.jpg')"
max-width="132"
contain
></v-img>
</v-col>
</v-row>
</v-col>
</v-card-text>
</template>

Expand Down Expand Up @@ -112,6 +147,32 @@ export default class LoginToConfirm extends Mixins(StepperMixin) {
}
}
.create-bceid {
margin-top: 15px
color: rgba(0,0,0,.87);
}
.align-row-1{
text-align: center!important;
}
.align-row-2{
text-align: center!important;
display: table;
}
.login-logo{
display: inline-flex;
}
.fill-width{
min-width: 100%;
}
@media (min-width: 400px) {
.align-row-1{
text-align: right!important;
}
.align-row-2{
text-align: left!important;
margin-left: 0;
margin-right: 0;
}
.fill-width{
min-width: unset;
}
}
</style>
5 changes: 4 additions & 1 deletion appointment-frontend/src/views/LoginSelectorView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h3>Login</h3>
</v-card-title>
<v-divider class="mx-4"></v-divider>
<p class="text-center mt-2">Please login using one of the following</p>
<p class="text-center mt-2 login-msg">Please login using one of the following</p>
<LoginToConfirm></LoginToConfirm>
</v-card>
</v-col>
Expand All @@ -32,4 +32,7 @@ export default class LoginSelectorView extends Vue {

<style lang="scss" scoped>
@import "@/assets/scss/theme.scss";
.login-msg{
margin: 0;
}
</style>

0 comments on commit 13833aa

Please sign in to comment.