Skip to content

Commit 374d325

Browse files
authored
Add UI Builder link (#617)
1 parent f44fe07 commit 374d325

File tree

7 files changed

+79
-27
lines changed

7 files changed

+79
-27
lines changed

packages/ui/public/cairo.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,20 @@
6262
>.
6363
</div>
6464
</div>
65-
<div class="nav">
66-
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
67-
<div class="switch switch-cairo active with-version" id="cairo-switch">
68-
<img src="/icons/cairo.svg" alt="cairo">
69-
Cairo
70-
<select class="switch switch-cairo active version" id="version-dropdown">
71-
<option value="stable" />
72-
<option value="alpha" />
73-
</select>
65+
<div class="nav-row flex flex-row items-center justify-between">
66+
<div class="nav">
67+
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
68+
<div class="switch switch-cairo active with-version" id="cairo-switch">
69+
<img src="/icons/cairo.svg" alt="cairo">
70+
Cairo
71+
<select class="switch switch-cairo active version" id="version-dropdown">
72+
<option value="stable" />
73+
<option value="alpha" />
74+
</select>
75+
</div>
76+
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
77+
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
7478
</div>
75-
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
76-
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
7779
</div>
7880
<div class="wizard-container">
7981
<oz-wizard class="wizard" data-sync-url="fragment" data-lang="cairo"></oz-wizard>
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

packages/ui/public/index.html

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,31 @@
9393
>.
9494
</div>
9595
</div>
96-
<div class="nav">
97-
<a class="switch switch-solidity active" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
98-
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
99-
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
100-
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
96+
<div class="nav-row flex flex-row items-center justify-between">
97+
<div class="nav nav-switches flex flex-row">
98+
<a class="switch switch-solidity active" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
99+
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
100+
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
101+
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
102+
</div>
103+
104+
<div class="flex flex-row gap-2">
105+
<div class="text-sm text-gray-600 leading-tight text-right">
106+
<div>After deploying a contract, use the new</div>
107+
<div>Contracts UI Builder to spin up a quick UI</div>
108+
</div>
109+
110+
<div class="flex items-center">
111+
<img src="/icons/arrow-right.svg" alt="arrow-right" class="arrow-gray">
112+
</div>
113+
114+
<div class="flex items-center">
115+
<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">
116+
<span>Try the UI Builder</span>
117+
<img src="/icons/up-right-from-square.svg" alt="up-right-from-square" class="arrow-white">
118+
</a>
119+
</div>
120+
</div>
101121
</div>
102122
<div class="wizard-container">
103123
<oz-wizard class="wizard" data-sync-url="fragment"></oz-wizard>

packages/ui/public/stellar.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@
6161
>.
6262
</div>
6363
</div>
64-
<div class="nav">
65-
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
66-
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
67-
<a class="switch switch-stellar active" href="#"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
68-
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
64+
<div class="nav-row flex flex-row items-center justify-between">
65+
<div class="nav">
66+
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
67+
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
68+
<a class="switch switch-stellar active" href="#"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
69+
<a class="switch switch-stylus" href="/stylus"><img src="/icons/stylus.svg" alt="stylus">Stylus</a>
70+
</div>
6971
</div>
7072
<div class="wizard-container">
7173
<oz-wizard class="wizard" data-sync-url="fragment" data-lang="stellar"></oz-wizard>

packages/ui/public/stylus.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@
6161
>.
6262
</div>
6363
</div>
64-
<div class="nav">
65-
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
66-
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
67-
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
68-
<a class="switch switch-stylus active" href="#"><img src="/icons/stylus_active.svg" alt="stylus">Stylus</a>
64+
<div class="nav-row flex flex-row items-center justify-between">
65+
<div class="nav">
66+
<a class="switch switch-solidity" href="/"><img src="/icons/solidity.svg" alt="solidity">Solidity</a>
67+
<a class="switch switch-cairo" href="/cairo"><img src="/icons/cairo.svg" alt="cairo">Cairo</a>
68+
<a class="switch switch-stellar" href="/stellar"><img src="/icons/stellar.svg" alt="stellar">Stellar</a>
69+
<a class="switch switch-stylus active" href="#"><img src="/icons/stylus_active.svg" alt="stylus">Stylus</a>
70+
</div>
6971
</div>
7072
<div class="wizard-container">
7173
<oz-wizard class="wizard" data-sync-url="fragment" data-lang="stylus"></oz-wizard>

packages/ui/src/standalone.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ body {
5959
/* Navigation */
6060
.nav {
6161
text-align: left;
62-
margin: 1rem auto;
62+
margin: 1rem 0;
6363
font-family: 'silka', Arial, Helvetica, sans-serif;
6464
background: var(--gray-1);
6565
display: flex;
@@ -143,6 +143,24 @@ body {
143143
contrast(100%);
144144
}
145145

146+
.nav-row {
147+
padding: 0 1rem 0;
148+
max-width: 100%;
149+
margin: 0 auto 0;
150+
min-width: 800px;
151+
max-width: 1500px;
152+
margin: auto;
153+
}
154+
155+
.arrow-gray {
156+
filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(872%) hue-rotate(169deg) brightness(80%)
157+
contrast(90%);
158+
}
159+
.arrow-white {
160+
filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(100%)
161+
contrast(100%);
162+
}
163+
146164
/* Wizard */
147165
.wizard-container {
148166
padding: 0 1rem 0;

0 commit comments

Comments
 (0)