Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(nft-quest): improve styling #203

Open
wants to merge 1 commit into
base: old-main
Choose a base branch
from
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
44 changes: 24 additions & 20 deletions examples/nft-quest/components/TransferZeek.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,38 @@
</span>
<span class="text-sm text-neutral-500 leading-3">The NFT is minted and sent using a Paymaster and a Session key.</span>
</div>
<ZkInput
v-model="walletAddress"
placeholder="Wallet address"
required
/>
<div class="flex flex-col lg:flex-row items-center gap-4 pt-3">
<ZkLink
v-if="successMint"
:to="transactionURL"
target="_blank"
type="secondary"
class="w-full lg:mt-0"
>
Transaction details
<ZkIcon
icon="open_in_new"
class="text-base leading-tight align-text-bottom ml-2 -my-0.5"
<div class="flex flex-col xl:flex-row justify-between gap-2">
<div class="basis-5/6">
<ZkInput
v-model="walletAddress"
placeholder="Wallet address"
required
/>
</ZkLink>
</div>
<ZkButton
type="primary"
class="uppercase w-full"
class="uppercase min-w-[240px] w-full basis-2/6"
:loading="status === 'pending'"
@click="mintForFriend"
>
Mint and send {{ successMint ? "again" : "" }}
<div class="w-max">
Mint and send {{ successMint ? "again" : "" }}
</div>
</ZkButton>
</div>
<ZkLink
v-if="successMint"
:to="transactionURL"
target="_blank"
type="secondary"
class="w-full mt-3"
>
Transaction details
<ZkIcon
icon="open_in_new"
class="text-base leading-tight align-text-bottom ml-2 -my-0.5"
/>
</ZkLink>
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion examples/nft-quest/components/zk/button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
>
<slot name="prefix" />
</div>
<span :class="twMerge('inline-block py-3', ui?.base)"><slot /></span>
<span :class="twMerge('inline-block py-2 w-max', ui?.base)"><slot /></span>
<div
v-if="$slots.postfix"
:class="twMerge('button-fix ml-1 -mr-2', ui?.postfix)"
Expand Down
2 changes: 1 addition & 1 deletion examples/nft-quest/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineNuxtConfig({
colorMode: {
preference: "dark",
},
devtools: { enabled: false },
devtools: { enabled: true },
// required for dealing with bigInt
nitro: {
esbuild: {
Expand Down
44 changes: 23 additions & 21 deletions examples/nft-quest/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,37 @@
<BlurFade
in-view
:delay="0"
class="inline"
class="block sm:inline text-center sm:text-pretty"
>
<span class="text-[45px] font-bold tracking-tighter dark:text-white leading-1">
<span class="text-[40px] font-bold tracking-tighter dark:text-white leading-1 text-center">
Smart wallets on the Elastic Chain.
</span>
</BlurFade>

<BlurFade
in-view
:delay="550"
class="inline"
>
<span class="text-[45px] font-bold tracking-tighter leading-1 text-blue-400">
Click.
</span>
</BlurFade>
<BlurFade
in-view
:delay="950"
class="inline"
>
<span class="text-[45px] font-bold tracking-tighter leading-1 text-blue-700">
Connect.
</span>
</BlurFade>
<div class="sm:inline text-center sm:text-pretty">
<BlurFade
in-view
:delay="550"
class="inline text-center sm:text-pretty"
>
<span class="text-[40px] font-bold tracking-tighter leading-1 text-blue-400">
Click.
</span>
</BlurFade>
<BlurFade
in-view
:delay="1050"
class="inline text-center sm:text-pretty"
>
<span class="text-[40px] font-bold tracking-tighter leading-1 text-blue-700">
Connect.
</span>
</BlurFade>
</div>
</div>
<BlurFade
in-view
:delay="1450"
:delay="50"
class="flex flex-col sm:inline items-center"
>
<p class=" mt-8 text-neutral-400 max-w-prose">
Expand Down
8 changes: 4 additions & 4 deletions examples/nft-quest/pages/mint/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
:delay="0"
class="block"
>
<span class="text-[45px] font-bold tracking-tighter dark:text-white leading-1">
<span class="text-[40px] font-bold tracking-tighter dark:text-white leading-1">
Mint your NFT.&nbsp;
</span>
</BlurFade>

<BlurFade
in-view
:delay="650"
:delay="350"
class="inline"
>
<span class="text-[45px] font-bold tracking-tighter leading-1 text-blue-600">
<span class="text-[40px] font-bold tracking-tighter leading-1 text-blue-600">
For free.
</span>
</BlurFade>
</div>
<BlurFade
in-view
:delay="650"
:delay="50"
class="inline"
>
<p class="mt-8 text-neutral-400 max-w-prose">
Expand Down
8 changes: 4 additions & 4 deletions examples/nft-quest/pages/mint/share.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@
:delay="0"
class="inline"
>
<span class="text-[45px] font-bold tracking-tighter dark:text-white leading-1">
<span class="text-[40px] font-bold tracking-tighter dark:text-white leading-1">
You've got Zeek.
</span>
</BlurFade>
<GradualSpacing
v-if="showBanner"
class="text-[45px] font-bold tracking-tighter leading-1 text-blue-600"
class="text-[40px] font-bold tracking-tighter leading-1 text-blue-600"
text="SSO Simple."
:delay-multiple="25"
/>
<div
v-else
class="text-[45px] font-bold tracking-tighter leading-1 text-neutral-950"
class="text-[40px] font-bold tracking-tighter leading-1 text-neutral-950"
>
<!-- To prevent the weird bump in spacing when the gradualSpacing runs. -->
&nbsp;
</div>
<BlurFade
in-view
:delay="650"
:delay="50"
class="inline"
>
<div class="h-full">
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-server/components/views/Auth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</p>
</CommonHeightTransition>

<div class="flex flex-col gap-5 mt-8 py-8">
<div class="flex flex-col gap-5 mt-8 py-8 w-[300px] m-auto">
<ZkHighlightWrapper>
<ZkButton
class="w-full"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
</CommonLine>
</div>
</div>
<SessionTokens :session="sessionConfig" />

<SessionTokens
class="mt-2"
:session="sessionConfig"
/>

<SessionAdvancedInfo :session-config="sessionConfig" />

Expand Down
Loading