File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2332,13 +2332,70 @@ button.row-strong:hover .row-hint {
23322332}
23332333
23342334/* Failures that are not the person's fault: say what is not known, and offer another try. */
2335- . look-elsewhere {
2335+ /* A quiet box for something that is good to know and needs no action. */
2336+ . info-box {
2337+ display : flex;
2338+ align-items : flex-start;
2339+ gap : 10px ;
2340+ max-width : 34rem ;
2341+ margin-inline : auto;
2342+ padding : 12px 16px ;
2343+ border-radius : var ( --radius ) ;
2344+ background : var ( --panel ) ;
23362345 color : var ( --muted ) ;
23372346 font-size : 0.9rem ;
2338- text-align : center ;
2347+ text-align : left ;
23392348 text-wrap : pretty;
2340- max-width : 34rem ;
2341- margin-inline : auto;
2349+ }
2350+
2351+ . info-box svg {
2352+ flex : none;
2353+ margin-top : 2px ;
2354+ }
2355+
2356+ . info-box p {
2357+ margin : 0 ;
2358+ }
2359+
2360+ /* The app is new. This is a risk, so it has the colour of a risk. */
2361+ . experimental {
2362+ display : inline-flex;
2363+ flex-wrap : wrap;
2364+ align-items : center;
2365+ justify-content : center;
2366+ gap : 6px 10px ;
2367+ margin : 0 ;
2368+ padding : 6px 16px 6px 6px ;
2369+ border : 1px solid var ( --risk-line ) ;
2370+ border-radius : 20px ;
2371+ background : var ( --risk-bg ) ;
2372+ color : var ( --risk-fg ) ;
2373+ font-size : 0.9rem ;
2374+ text-wrap : pretty;
2375+ }
2376+
2377+ @media ( max-width : 560px ) {
2378+ /* The text goes under the tag here, so the box is even on all sides. */
2379+ . experimental {
2380+ padding : 10px 14px ;
2381+ }
2382+ }
2383+
2384+ . experimental-tag {
2385+ padding : 4px 11px ;
2386+ border-radius : 999px ;
2387+ background : var ( --risk-fg ) ;
2388+ color : var ( --risk-bg ) ;
2389+ font-size : 0.72rem ;
2390+ font-weight : 600 ;
2391+ letter-spacing : 0.08em ;
2392+ text-transform : uppercase;
2393+ }
2394+
2395+ . experimental a {
2396+ color : inherit;
2397+ font-weight : 600 ;
2398+ text-underline-offset : 3px ;
23422399}
23432400
23442401. look-elsewhere-error {
Original file line number Diff line number Diff line change @@ -116,7 +116,13 @@ export function StartPage(props: { session: Session | null; chain: Chain | undef
116116 const others = CHAINS . filter ( ( c ) => c . id !== chain ?. id && ( ! c . testnet || __DEV__ ) ) ;
117117 const lookElsewhere =
118118 session && rows !== null ? (
119- < p class = "look-elsewhere" >
119+ < div class = "info-box" >
120+ < svg viewBox = "0 0 20 20" width = "18" height = "18" aria-hidden = "true" >
121+ < circle cx = "10" cy = "10" r = "8.2" fill = "none" stroke = "currentColor" stroke-width = "1.6" />
122+ < path d = "M10 9.2v4.6" fill = "none" stroke = "currentColor" stroke-width = "1.8" stroke-linecap = "round" />
123+ < circle cx = "10" cy = "6.3" r = "1.1" fill = "currentColor" />
124+ </ svg >
125+ < p >
120126 { chain ? `This is what your wallet has on ${ chain . name } , and what this browser has seen before.` : "Chronobox does not work on the network of your wallet." } Look on{ " " }
121127 { others . map ( ( c , i ) => (
122128 < >
@@ -137,7 +143,8 @@ export function StartPage(props: { session: Session | null; chain: Chain | undef
137143 </ >
138144 ) ) }
139145 .{ switchError ? < span class = "look-elsewhere-error" > { switchError } </ span > : null }
140- </ p >
146+ </ p >
147+ </ div >
141148 ) : null ;
142149
143150 const openAddress = parseAddress ( openText ) ;
@@ -187,6 +194,12 @@ export function StartPage(props: { session: Session | null; chain: Chain | undef
187194 return (
188195 < div class = "start" >
189196 < section class = "hero" >
197+ < p class = "experimental" >
198+ < span class = "experimental-tag" > Experimental</ span >
199+ < span >
200+ Do not put serious money in yet. Send feedback to < a href = "mailto:johannes@zodiac.eco" > johannes@zodiac.eco</ a > .
201+ </ span >
202+ </ p >
190203 < h1 > Money that cannot leave in a hurry.</ h1 >
191204 < p class = "lead" > Every withdrawal has to wait. No password, no threat and no stolen key can make it faster. Not even you can.</ p >
192205 < div class = "hero-actions" >
You can’t perform that action at this time.
0 commit comments