Skip to content

Commit

Permalink
Merge pull request #265 from torusresearch/feat/whitelbale-fix
Browse files Browse the repository at this point in the history
whitelabel fixes for vue-example
  • Loading branch information
chaitanyapotti committed Oct 18, 2023
2 parents f0b9417 + 669a4f4 commit e4c0e54
Show file tree
Hide file tree
Showing 5 changed files with 640 additions and 610 deletions.
18 changes: 9 additions & 9 deletions examples/vue-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/vue-example/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ body,
align-items: center;
width: 100%;
height: 100%;
margin-top: 150px;
margin-top: 50px;
justify-content: center;
}

Expand Down Expand Up @@ -176,7 +176,7 @@ body,
display: flex;
flex-direction: column;
height: calc(100vh - 186px);
width: 582px;
width: 600px;
@media (width < 780px) {
width: 100%;
height: auto;
Expand Down Expand Up @@ -256,7 +256,7 @@ body,

font-style: normal;
font-weight: 500;
font-size: 16px;
font-size: 14px;
line-height: 17px;
letter-spacing: -0.02em;
color: #6f717a;
Expand Down
6 changes: 6 additions & 0 deletions examples/vue-example/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,18 @@
<div class="flex flex-col sm:flex-row gap-4 bottom-gutter">
<button class="btn" @click="getUserInfo">Get user info</button>
<button class="btn" @click="getOpenloginState">Get openlogin state</button>
<!-- <button class="btn" @click="getEd25519Key">Get Ed25519Key</button> -->
</div>
<div class="flex flex-col sm:flex-row gap-4 bottom-gutter">
<button class="btn" @click="getEd25519Key">Get Ed25519Key</button>
</div>
<p class="btn-label">Signing</p>
<div class="flex flex-col sm:flex-row gap-4 bottom-gutter">
<button class="btn" :disabled="!ethereumPrivateKeyProvider?.provider" @click="signMessage">Sign test Eth Message</button>
<button class="btn" :disabled="!ethereumPrivateKeyProvider?.provider" @click="signMpcMessage">Sign test Eth Message (MPC)</button>
<!-- <button class="btn" :disabled="!ethereumPrivateKeyProvider?.provider" @click="latestBlock">Fetch latest block</button> -->
</div>
<div class="flex flex-col sm:flex-row gap-4 bottom-gutter">
<button class="btn" :disabled="!ethereumPrivateKeyProvider?.provider" @click="latestBlock">Fetch latest block</button>
</div>
<div class="flex flex-col sm:flex-row gap-4 bottom-gutter">
Expand Down
4 changes: 2 additions & 2 deletions examples/vue-example/src/lib/whitelabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { WhiteLabelData } from "@toruslabs/openlogin-utils";

export default {
name: "HelloDemo",
url: "http://localhost:8080",
appUrl: "http://localhost:8080",
logoDark: "https://images.web3auth.io/example-hello.svg", // dark logo for light background
logoLight: "https://images.web3auth.io/example-hello-light.svg", // light logo for dark background
dark: true,
mode: "auto",
theme: {
primary: "#FF9900",
},
Expand Down
Loading

0 comments on commit e4c0e54

Please sign in to comment.