Skip to content

Commit

Permalink
fixed some css
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwas1 committed Dec 18, 2024
1 parent 402b599 commit 926a776
Show file tree
Hide file tree
Showing 16 changed files with 54 additions and 53 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default {
name: 'Proofs Generation',
previous: 4,
isEnabled: false,
stepTitle: 'Generate Zero Knowledge Proof(s) & Mint your on-chain Identity',
stepTitle: 'Generate ZK Proof(s) & Mint your on-chain Identity',
logo: 'proof.png',
requiredCredentialTypes: ['zkProofOfKYC', 'zkProofOfAge', 'zkProofOfPersonHood'],
hasDone: false,
Expand Down
20 changes: 4 additions & 16 deletions src/components/AppInstructions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,6 @@
.checkbox-item input {
margin-right: 5px;
}
.widget-card-width {
width: 70%;
margin: auto;
}
@media (max-width: 768px) {
.widget-card-width {
margin: auto;
width: 100%;
}
}
</style>

<template>
Expand Down Expand Up @@ -75,7 +63,7 @@
</v-card>

<div class="mt-3">
<div class="d-grid gap-1" style="margin: auto">
<div class="d-grid gap-1 widget-card-width" style="margin: auto">
<v-btn block color="secondary" @click="nextStep(nextStepNumeber)">Let's go!</v-btn>
</div>
</div>
Expand Down Expand Up @@ -193,11 +181,11 @@ export default {
</script>
<style lang="css">
.btn-width {
width: 50%;
width: 70%;
}
@media (max-width: 768px) {
@media (max-width: 400px) {
.btn-width {
width: 100%;
width: 70%;
}
}
</style>
2 changes: 1 addition & 1 deletion src/components/MainPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
max-height: 100dvh;
}
@media (max-width: 768px) {
@media (max-width: 400px) {
.main-container-height {
height: 100dvh;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/commons/AppInstructionStep.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div> -->
</div>
<div class="col-8" style="text-align: left">
<span style="font-size: medium; font-weight: bold; word-wrap: break-word">
<span class="app-font" style="font-weight: bold; word-wrap: break-word">
{{ stepTitle }}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/commons/AskPIN.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
width: 70%;
}
@media (max-width: 768px) {
@media (max-width: 400px) {
.width {
width: 100%;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/commons/ChooseDocumentType.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="kyc-container">
<v-card class="mx-auto" tile>
<v-list shaped>
<v-card class="mx-auto widget-card-width" tile>
<v-list flat>
<!-- <v-subheader>Choose Document Type</v-subheader> -->
<v-list-item-group color="secondary">
<v-list-item v-for="(item, i) in items" :key="i" @click="chooseDoc(item.type)">
Expand Down
2 changes: 1 addition & 1 deletion src/components/commons/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
font-size: smaller;
}
@media (max-width: 768px) {
@media (max-width: 400px) {
.stepper {
font-size: x-small;
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/commons/Preview.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="kyc-container">
<div class="kyc-container widget-card-width">
<!-- <v-row>
<v-col>
<InfoMessage message="Please verify if your informations are correct" class="notShowOnMobile" />
Expand All @@ -21,7 +21,7 @@
</v-avatar>
</div>
<div class="profile-details">
<v-simple-table style="text-align: left">
<v-simple-table style="text-align: left" dense>
<template v-slot:default>
<tbody>
<tr v-for="(data, idx) in Object.entries(extractedData)" v-bind:key="idx">
Expand Down Expand Up @@ -167,7 +167,7 @@ export default {
.notShowOnMobile {
display: block;
}
@media (max-width: 768px) {
@media (max-width: 400px) {
.preview {
max-height: 458px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/commons/RegisterPIN.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
width: 70%;
}
@media (max-width: 768px) {
@media (max-width: 400px) {
.width {
width: 100%;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/e-kyc/Liveliness.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ export default {
</div>
<div class="row" v-if="!isWidgetStarted && !isLoading">
<div class="col-12 center">
<div class="col-md-4 d-flex flex-column">
<v-btn type="v-btn" id="btnStartCapture" block color="secondary" :disabled="isWidgetStarted" title="Start Capture" @click="enableWidget()"><i class="bi bi-play-circle"></i> Start Capture</v-btn>
<div class="col-md-4 d-flex flex-column widget-card-width">
<v-btn type="v-btn" id="btnStartCapture" block color="secondary" :disabled="isWidgetStarted" title="Start Capture" @click="enableWidget()"><i class="bi bi-play-circle mx-1"></i> Start Capture</v-btn>
<!-- <button type="button" id="btnStopCapture" class="btn btn-link" :disabled="!isWidgetStarted" @click="disableWidget()" title="Stop Capture"><i class="bi bi-stop-circle"></i> Stop Capture</button> -->
</div>
</div>
Expand Down
16 changes: 2 additions & 14 deletions src/components/e-kyc/SignIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="card-body min-h-36">
<load-ing :active.sync="isLoading" :can-cancel="true" :is-full-page="fullPage"></load-ing>
<PageHeading :header="'Login'" :subHeader="'Create/Retrive your decentralized identity'" />
<div class="mt-4 p-4 width" style="margin: auto">
<div class="mt-4 p-4 widget-card-width" style="margin: auto">
<!-- <ConnectWalletButton @authEvent="myEventListener" :is-disable="error" /> -->
<GoogleButton :is-disable="error" />
<ConsentBox />
Expand All @@ -12,18 +12,6 @@
</div>
</template>

<style scoped>
.width {
width: 70%;
}
@media (max-width: 768px) {
.width {
width: 100%;
}
}
</style>

<script>
import { mapMutations, mapActions, mapGetters, mapState } from 'vuex'
// import ConnectWalletButton from '../commons/authButtons/ConnectWalletButton.vue';
Expand Down Expand Up @@ -121,7 +109,7 @@ export default {
masterWalletAddress: onchainconfig?.options?.masterWalletAddress,
})
} else {
this.toast(MESSAGE.SIGN.ONCHAIN_CONFIG_NOT_FOUND_ERR, 'warning')
this.toast(MESSAGE.SIGN.ONCHAIN_CONFIG_NOT_FOUND_ERR, 'success')
}
},
preparePresentationRequest() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/e-kyc/UserConsent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export default {
margin: auto;
}
@media (max-width: 768px) {
@media (max-width: 400px) {
.widget-card-width {
margin: auto;
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/components/e-kyc/VaultPIN.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
width: 70%;
}
@media (max-width: 768px) {
@media (max-width: 400px) {
.width {
width: 100%;
}
Expand Down
14 changes: 9 additions & 5 deletions src/components/e-kyc/ZKProofs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
.center-footer {
color: green;
}
@media (max-width: 768px) {
@media (max-width: 400px) {
.proofCard {
/* margin: auto;
min-height: 150px;
Expand Down Expand Up @@ -76,6 +76,10 @@
.show-verified {
display: block;
}
.title-font-size {
font-size: 0.6rem !important;
}
}
.proof-card:hover {
Expand Down Expand Up @@ -134,13 +138,13 @@
</v-btn>
</div>
</div> -->
<v-row dense>
<v-col cols="12" md="6">
<v-row dense class="kyc-container">
<v-col cols="12">
<v-card class="mx-auto mb-2" style="text-align: start" v-for="hypersign_proof in hypersign_proofs" v-bind:key="hypersign_proof.type" :style="`background-image: linear-gradient(to bottom right, ${hypersign_proof.bgColor} , lightgrey)`">
<v-list-item three-line>
<v-list-item-content>
<div class="text-overline mb-4">
{{ hypersign_proof.proofType }}
<div class="text-overline mb-4 title-font-size">
{{ hypersign_proof.proofType.replace(/([a-z])([A-Z])/g, '$1 $2') }}
<v-chip v-if="hypersign_proof.proofType == 'zkProofOfAge'">
<span>{{ getCriteria(hypersign_proof) }} +</span>
</v-chip>
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
WIDGET_CONFIG_ERR: 'Widget configuration is not available',
INVALID_ACCESS_TOKEN: 'Error initalization of widget, invalid token',
AUTH_PROVIDER_ERR: 'Could not authenticate with provider ',
ONCHAIN_CONFIG_NOT_FOUND_ERR: '',
ONCHAIN_CONFIG_NOT_FOUND_ERR: 'No on-chain config found, proceeding with offchain verification',
SESSION_NOT_FOUND_ERR: 'Session not found, proceeding to generate one',
SESSION_ID_INVALID: 'Session ID is invalid or missing, close this window and try again from service provider app',
},
Expand Down
25 changes: 23 additions & 2 deletions src/style/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,32 @@ body {
color: black;
}

.widget-card-width {
width: 70%;
margin: auto;
}

@media (max-width: 400px) {
.widget-card-width {
margin: auto;
width: 100%;
}
}

.app-font {
font-size: medium
}

@media (max-width: 400px) {
.app-font {
font-size: small
}
}
/* h1 {
font-size: revert;
} */

@media (max-width: 768px) {
@media (max-width: 400px) {
h1 {
font-size: 1.5rem;
}
Expand All @@ -52,7 +73,7 @@ body {
margin-top: 5%;
}

@media (max-width: 768px) {
@media (max-width: 400px) {
.widget-card {
/* border: 1px solid #8080801a; */
box-shadow: 0 4px 25px 0 rgba(0, 0, 0, 0.1);
Expand Down

0 comments on commit 926a776

Please sign in to comment.