Skip to content

Commit

Permalink
minimum viable demo
Browse files Browse the repository at this point in the history
  • Loading branch information
sameoldlab committed May 8, 2024
1 parent 7d0beab commit 488600d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "husky install",
"build": "pnpm -F='./packages/*' --parallel build",
"check": "pnpm -r --no-bail check",
"dev:site": "pnpm -F x-svelte dev",
"dev:site": "pnpm -F site dev",
"dev:pkg": "pnpm -F='./packages/*' --parallel dev",
"build:site": "pnpm -F fractl-ui -F='@fractl-ui/*' -F x-svelte build",
"ci:publish": "pnpm build && pnpm publish -r --access=public"
Expand Down
41 changes: 38 additions & 3 deletions site/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,34 @@
>pnpm add fractl-ui @fractl-ui/evm \
@fractl-ui/fuel @fractl-ui/starknet
</Code>

<div
style="
display: flex;
gap: 1em;
font-family: Arial, Helvetica, sans-serif;
font-weight: 500;
padding-block-start: 1.75em;
padding-block-end: .25em;
padding-inline: .25em;
"
>
<button
class="menu-option btn-reset"
on:click={() => {
ecosystem = 'evm'
}}>EVM</button
>
<button
class="menu-option btn-reset"
on:click={() => {
ecosystem = 'starknet'
}}>Starknet</button
>
</div>
<div class="preview">
{#if ecosystem === 'evm'}
<Evm class="connect" />
{:else if ecosystem === 'starkware'}
{:else if ecosystem === 'starknet'}
<Starknet class="connect" />
{/if}
</div>
Expand Down Expand Up @@ -190,7 +213,8 @@
display: flex;
align-items: center;
justify-content: center;
margin-block: 1em;
/* margin: auto; */
margin-block: 0.25em;
width: min(1000px, 100%);
border: 2px solid rgba(76 76 76 / 0.4);
border-radius: 0.5em;
Expand All @@ -203,4 +227,15 @@
/* opacity: 0.2; */
aspect-ratio: 3 / 1;
}
.btn-reset {
background: none;
color: inherit;
font-size: inherit;
border: none;
padding: 0;
}
.menu-option {
font-weight: 600;
font-size: 96%;
}
</style>

0 comments on commit 488600d

Please sign in to comment.