Skip to content

Add UI Builder link #617

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

Merged
merged 2 commits into from
Aug 11, 2025
Merged
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
24 changes: 13 additions & 11 deletions packages/ui/public/cairo.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,20 @@
>.
</div>
</div>
<div class="nav">
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
<div class="switch switch-cairo active with-version" id="cairo-switch">
<img src="/icons/cairo.svg" alt="cairo">
Cairo
<select class="switch switch-cairo active version" id="version-dropdown">
<option value="stable" />
<option value="alpha" />
</select>
<div class="nav-row flex flex-row items-center justify-between">
<div class="nav">
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
<div class="switch switch-cairo active with-version" id="cairo-switch">
<img src="/icons/cairo.svg" alt="cairo">
Cairo
<select class="switch switch-cairo active version" id="version-dropdown">
<option value="stable" />
<option value="alpha" />
</select>
</div>
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
</div>
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
</div>
<div class="wizard-container">
<oz-wizard class="wizard" data-sync-url="fragment" data-lang="cairo"></oz-wizard>
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/public/icons/arrow-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/ui/public/icons/up-right-from-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 25 additions & 5 deletions packages/ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,31 @@
>.
</div>
</div>
<div class="nav">
<a class="switch switch-solidity active" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
<div class="nav-row flex flex-row items-center justify-between">
<div class="nav nav-switches flex flex-row">
<a class="switch switch-solidity active" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
</div>

<div class="flex flex-row gap-2">
<div class="text-sm text-gray-600 leading-tight text-right">
<div>After deploying a contract, use the new</div>
<div>Contracts UI Builder to spin up a quick UI</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "spin up a quick UI" is a bit unclear to me what the "UI builder" would do, maybe keywords like "transaction" "contract interaction" would be clearer

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This directs the user's attention, and the actual text in https://builder.openzeppelin.com/ provides more context.

</div>

<div class="flex items-center">
<img src="/icons/arrow-right.svg" alt="arrow-right" class="arrow-gray">
</div>

<div class="flex items-center">
<a href="http://builder.openzeppelin.com" target="_blank" rel="noopener noreferrer" class="bg-[#3d3b5d] text-white px-4 py-2 rounded-full text-sm font-medium flex items-center gap-2 hover:bg-[#4a4872] transition-colors no-underline whitespace-nowrap">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pasevin would be interesting to pass the network in the URL (would save 1 step in the builder and directly be at contract step)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the Solidity Wizard, we don't know which EVM network the user is using. This would only be applicable for cases where the language and network is 1-1.

<span>Try the UI Builder</span>
<img src="/icons/up-right-from-square.svg" alt="up-right-from-square" class="arrow-white">
</a>
</div>
</div>
</div>
<div class="wizard-container">
<oz-wizard class="wizard" data-sync-url="fragment"></oz-wizard>
Expand Down
12 changes: 7 additions & 5 deletions packages/ui/public/stellar.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@
>.
</div>
</div>
<div class="nav">
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
<a class="switch switch-stellar active" href="#"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
<div class="nav-row flex flex-row items-center justify-between">
<div class="nav">
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
<a class="switch switch-stellar active" href="#"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
</div>
</div>
<div class="wizard-container">
<oz-wizard class="wizard" data-sync-url="fragment" data-lang="stellar"></oz-wizard>
Expand Down
12 changes: 7 additions & 5 deletions packages/ui/public/stylus.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@
>.
</div>
</div>
<div class="nav">
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
<a class="switch switch-stylus active" href="#"><img src="/icons/stylus_active.svg" alt="stylus">Stylus</a>
<div class="nav-row flex flex-row items-center justify-between">
<div class="nav">
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
<a class="switch switch-stylus active" href="#"><img src="/icons/stylus_active.svg" alt="stylus">Stylus</a>
</div>
</div>
<div class="wizard-container">
<oz-wizard class="wizard" data-sync-url="fragment" data-lang="stylus"></oz-wizard>
Expand Down
20 changes: 19 additions & 1 deletion packages/ui/src/standalone.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ body {
/* Navigation */
.nav {
text-align: left;
margin: 1rem auto;
margin: 1rem 0;
font-family: 'silka', Arial, Helvetica, sans-serif;
background: var(--gray-1);
display: flex;
Expand Down Expand Up @@ -143,6 +143,24 @@ body {
contrast(100%);
}

.nav-row {
padding: 0 1rem 0;
max-width: 100%;
margin: 0 auto 0;
min-width: 800px;
max-width: 1500px;
margin: auto;
}

.arrow-gray {
filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(872%) hue-rotate(169deg) brightness(80%)
contrast(90%);
}
.arrow-white {
filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(100%)
contrast(100%);
}

/* Wizard */
.wizard-container {
padding: 0 1rem 0;
Expand Down
Loading