Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/Nohemi-Bold.woff2
Binary file not shown.
94 changes: 45 additions & 49 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,13 @@ watch(appAddress, () => {

<template>
<main>
<header
style="
<header style="
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
"
>
">
<img src="/logo-horizontal.png" style="height: 40px" />
<div v-if="isLoggedIn">
<div style="display: flex; align-items: center; gap: 1rem">
Expand All @@ -141,57 +139,53 @@ watch(appAddress, () => {
</div>
</section>
<section v-else name="pre-login" style="align-items: center">
<div>
<div id="login-btns-container">
<div>
<h3 style="font-weight: 600; margin-bottom: 0.5rem">
Load apps from the presets
</h3>
<div style="display: flex; gap: 1rem; flex-wrap: wrap">
<button @click.stop="loadPreset('evm')">Load EVM App</button>
<button @click.stop="loadPreset('solana')">Load Solana App</button>
<button @click.stop="loadPreset('multiversx')">
Load MultiversX App
</button>
<button @click.stop="loadPreset('near')">
Load NEAR App (Testnet)
</button>
<div id="heeead">
<h2>Arcana Auth Demo</h2>
<!-- <hr> -->
</div>
</div>
<div class="mt-1">
<h3 style="font-weight: 600; margin-bottom: 0.5rem">
Or load your own app
</h3>
<form
@submit.prevent="loadApp"
style="display: flex; flex-direction: column; gap: 4px"
>
<label for="app-address">App Address:</label>
<div
style="
<div>
<!-- <h3 style="font-weight: 600; margin-bottom: 0.5rem">
Load apps from the presets
</h3> -->
<div style="display: flex; gap: 1rem; flex-wrap: wrap">
<button @click.stop="loadPreset('evm')">Load EVM App</button>
<button @click.stop="loadPreset('solana')">Load Solana App</button>
<button @click.stop="loadPreset('multiversx')">
Load MultiversX App
</button>
<button @click.stop="loadPreset('near')">
Load NEAR App (Testnet)
</button>
</div>
</div>
<div class="mt-1">
<h3 style="font-weight: 600; margin-bottom: 0.5rem">
Load your own app
</h3>
<form @submit.prevent="loadApp" style="display: flex; flex-direction: column; gap: 4px">
<div style="
display: flex;
gap: 1rem;
align-items: center;
flex-wrap: wrap;
"
>
<input
type="text"
id="app-address"
style="max-width: 360px; width: 100%"
v-model="appAddress"
/>
<button type="submit" :disabled="isPresetClicked">
Load App
</button>
</div>
</form>
</div>
<div class="hide mt-1" :class="{ show: appLoaded }">
<span v-if="presetLoaded">{{ presetLoaded }}</span>
<span v-else>App {{ appAddress }} loaded</span>
</div>
<div class="hide mt-1" :class="{ show: appLoaded }">
<button @click.stop="login">Login With Arcana</button>
">
<input type="text" placeholder="Enter Client ID" id="app-address" style="max-width: 360px; width: 100%"
v-model="appAddress" />
<button type="submit" :disabled="isPresetClicked">
Load App
</button>
</div>
</form>
</div>
<div class="hide mt-1" :class="{ show: appLoaded }">
<span v-if="presetLoaded">{{ presetLoaded }}</span>
<span v-else>App {{ appAddress }} loaded</span>
</div>
<div class="hide mt-1" :class="{ show: appLoaded }">
<button @click.stop="login">Login With Arcana</button>
</div>
</div>
</div>
<div class="xar-output mt-1">
Expand Down Expand Up @@ -230,9 +224,11 @@ main {
0% {
color: var(--vt-c-indigo);
}

30% {
color: transparent;
}

60% {
color: var(--vt-c-indigo);
}
Expand Down
9 changes: 9 additions & 0 deletions src/assets/base.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
/* color palette from <https://github.com/vuejs/theme> */
/* @import url(""); */
@font-face {
font-family: "Nohemi";
src: url("/Nohemi-Bold.woff2") format("woff2");
font-weight: 700;
font-display: block;
font-style: normal;
}
:root {
--color-light: #f7f7f7;
--color-dark: #1d2a31;
--color-primary: #ff4e9f;
--color-primary-2: rgb(255 78 159 / 0.1);
--color-light-2: #ececec;
}

Expand Down
37 changes: 30 additions & 7 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,22 @@
}
}

section > div {
width: 100%;
}

#login-btns-container {
display: flex;
justify-content: center;
/* border: 1px solid currentColor; */
border-radius: 10px;
padding: 3rem 0;
background-color: var(--color-primary-2);
}

button {
font-size: 0.75rem;
text-transform: uppercase;
cursor: pointer;
color: var(--color-background);
border: 1px solid var(--color-text);
Expand Down Expand Up @@ -42,16 +57,16 @@ textarea {
border: 1px solid var(--color-text);
background: transparent;
box-shadow: none;
padding: 1rem 1.5rem;
padding: calc(0.75rem + 1px) 1rem;
outline-color: var(--color-primary);
transition: all 0.15s ease-in;
border-radius: 20px;
border-radius: 10px;
font-size: 1rem;
}

button:not(.tab) {
padding: 1rem 1.5rem;
border-radius: 20px;
padding: 1rem 2rem;
border-radius: 10px;
font-weight: 600;
}

Expand Down Expand Up @@ -118,7 +133,7 @@ textarea {
}

.xar-output .code {
border-radius: 20px;
border-radius: 10px;
}

.xar-output > * {
Expand Down Expand Up @@ -149,7 +164,7 @@ pre {
word-wrap: break-word;
font-family: "Courier New", Courier, monospace;
font-weight: 600;
font-size: 13px;
font-size: 16px;
background-color: var(--color-text);
color: var(--color-background);
overflow-wrap: anywhere;
Expand Down Expand Up @@ -184,7 +199,7 @@ strong {
box-shadow: 2px 4px 2px 1px var(--color-light-2);
color: var(--color-primary);
border-color: var(--color-primary);
background: var(--color-background);
background: transparent;
}

.tab:hover:not(:disabled) {
Expand Down Expand Up @@ -228,3 +243,11 @@ button:focus-visible:not(:disabled) {
display: grid;
}
}

#heeead {
text-align: center;
font-size: 1.5rem;
margin-bottom: 2rem;
text-transform: uppercase;
font-family: "Nohemi";
}
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "@/assets/main.css";
import { Buffer as NPMBuffer } from "buffer";
import "highlight.js/styles/vs2015.min.css";
import "highlight.js/styles/monokai-sublime.min.css";
import hljs from "highlight.js/lib/core";
import javascript from "highlight.js/lib/languages/javascript";
import json from "highlight.js/lib/languages/json";
Expand Down