Skip to content

Commit

Permalink
Set create idos key for create flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Strnadj committed May 28, 2024
1 parent 1c0c88a commit 0755d04
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
12 changes: 10 additions & 2 deletions apps/idos-enclave/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
content: "Unlocking...";
}

button#unlock.create::before {
content: "🔐 Create idOS Key";
}

button#unlock.create:disabled::before {
content: "Creating...";
}

button#confirm::before {
content: "👀 See request";
}
Expand All @@ -48,9 +56,9 @@
<body>
<div id="container" class="w-screen h-screen">
<button id="unlock"
class="w-full h-full px-[5%] py-[2%] bg-[#00ffb9] text-[43cqmin] transition-colors hover:bg-green-300 rounded-lg text-zinc-950 font-medium"></button>
class="w-full h-full px-[5%] py-[2%] bg-[#00ffb9] text-[41cqmin] transition-colors hover:bg-green-300 rounded-lg text-zinc-950 font-medium"></button>
<button id="confirm"
class="w-full h-full px-[5%] py-[2%] bg-[#00ffb9] text-[43cqmin] transition-colors hover:bg-green-300 rounded-lg text-zinc-950 font-medium"></button>
class="w-full h-full px-[5%] py-[2%] bg-[#00ffb9] text-[41cqmin] transition-colors hover:bg-green-300 rounded-lg text-zinc-950 font-medium"></button>
</div>

<script type="module" src="/src/main.ts"></script>
Expand Down
6 changes: 6 additions & 0 deletions apps/idos-enclave/src/lib/enclave.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@ export class Enclave {

async configure(mode, theme) {
this.configuration = { mode, theme };

if (mode === "new") {
this.unlockButton.classList.add("create");
} else {
this.unlockButton.classList.remove("create");
}
}

messageParent(message) {
Expand Down
2 changes: 1 addition & 1 deletion apps/idos-example-dapp/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ div#idos-wrapper::after {
}

div#idos-wrapper > #idos-container {
width: 140px;
width: 160px;
}

div#terminal {
Expand Down

0 comments on commit 0755d04

Please sign in to comment.