-
Notifications
You must be signed in to change notification settings - Fork 22
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
WIP - migrate away from Daisy UI and bring design closer to spec. #457
Changes from 50 commits
0d0992e
a274a33
3809cc5
55e51d3
f80c43f
28d6b30
8c4ce60
39ae7b7
1da577d
7a9f924
cba7b49
ac7a006
30667af
02271b3
db8d805
39deeac
d7ed634
d43bb6c
e6c2dda
97549f0
a0ab0b0
8e83016
ab2c536
1c72f96
94c3f16
45244f2
3d2a40e
0f06777
31299d4
0ba3fa6
73a02ab
f2e84cc
c9f02c9
2f42a58
2996c3e
04ba6c3
c0e893f
a3feca8
7ad00eb
ecaffec
f7f2edc
d8b5e3d
831bf59
cccdb24
11d4f33
f28e766
47a653a
43e9c4e
2634e7f
902c9cc
8d24992
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,61 @@ | ||
import { ChevronRightIcon, XIcon } from '@heroicons/react/outline' | ||
|
||
import { Button } from '@components' | ||
|
||
import SvgMessage from 'components/icons/Message' | ||
|
||
export function BetaWarningModal({ onAccept }: { onAccept: Function }) { | ||
return ( | ||
<div className="modal modal-open"> | ||
<div className="modal-box rounded-md"> | ||
<h1 className="text-2xl font-medium">Before you continue...</h1> | ||
<p className="mt-3"> | ||
DAO DAO is in beta, and has not yet been audited. <b>Do not</b> keep | ||
large sums of money in your DAO, and <b>do not</b> use your DAO for | ||
anything mission critical. | ||
</p> | ||
<p className="mt-3"> | ||
<a | ||
className="text-accent underline hover:no-underline" | ||
href="https://njc09z4coq8.typeform.com/to/EBkp9QJU" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<b>Give us feedback!</b> | ||
</a> | ||
Bug reports and feature requests are welcome. | ||
</p> | ||
<p className="mt-3 text-sm"> | ||
DAO DAO TOOLING IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT | ||
WARRANTIES OF ANY KIND. No developer or entity involved in creating | ||
the DAO DAO UI or smart contracts will be liable for any claims or | ||
damages whatsoever associated with your use, inability to use, or your | ||
interaction with other users of DAO DAO tooling, including any direct, | ||
indirect, incidental, special, exemplary, punitive or consequential | ||
damages, or loss of profits, cryptocurrencies, tokens, or anything | ||
else of value. | ||
</p> | ||
<button | ||
className="btn btn-outline btn-md rounded-md normal-case mt-6" | ||
onClick={() => onAccept()} | ||
> | ||
<div className="fixed z-10 w-screen h-full backdrop-filter backdrop-blur-sm flex items-center justify-center"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to be careful with z-index |
||
<div className="bg-white h-min max-w-md p-6 rounded-lg border border-focus"> | ||
<div className="rounded-md prose prose-sm dark:prose-invert mb-6"> | ||
<h2>Before you continue...</h2> | ||
<p> | ||
DAO DAO is in beta, and has not yet been audited. <b>Do not</b> keep | ||
large sums of money in your DAO, and <b>do not</b> use your DAO for | ||
anything mission critical. | ||
</p> | ||
<p> | ||
<a | ||
className="text-accent underline hover:no-underline" | ||
href="https://njc09z4coq8.typeform.com/to/EBkp9QJU" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Give us feedback! | ||
</a>{' '} | ||
Bug reports and feature requests are welcome. | ||
</p> | ||
<p> | ||
DAO DAO TOOLING IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT | ||
WARRANTIES OF ANY KIND. No developer or entity involved in creating | ||
the DAO DAO UI or smart contracts will be liable for any claims or | ||
damages whatsoever associated with your use, inability to use, or | ||
your interaction with other users of DAO DAO tooling, including any | ||
direct, indirect, incidental, special, exemplary, punitive or | ||
consequential damages, or loss of profits, cryptocurrencies, tokens, | ||
or anything else of value. | ||
</p> | ||
</div> | ||
<Button onClick={() => onAccept()}> | ||
I accept the terms | ||
<ChevronRightIcon className="w-4 h-4 ml-2" /> | ||
</button> | ||
</Button> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export function BetaNotice({ onClose }: { onClose: Function }) { | ||
return ( | ||
<div className="fixed bottom-3 left-3 bg-primary text-primary-content z-10 rounded-md p-3"> | ||
<div className="fixed bottom-3 left-3 bg-light text-primary-content z-10 rounded-md p-3"> | ||
<div className="flex gap-2 items-center"> | ||
<SvgMessage /> | ||
<h2> | ||
DAO DAO is in <div className="inline text-error">beta!</div> | ||
</h2> | ||
<a | ||
className="link font-mono text-secondary text-sm" | ||
className="underline font-mono text-secondary text-sm" | ||
href="https://njc09z4coq8.typeform.com/to/EBkp9QJU" | ||
target="_blank" | ||
rel="noreferrer" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { XIcon } from '@heroicons/react/outline' | ||
import { Button } from 'ui/Button' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think want either: |
||
|
||
import { GradientWrapper } from './GradientWrapper' | ||
import { Modal } from './Modal' | ||
const CHAIN_ID = process.env.NEXT_PUBLIC_CHAIN_ID | ||
const CHAIN_NAME = process.env.NEXT_PUBLIC_CHAIN_NAME | ||
|
||
|
@@ -12,27 +13,26 @@ function ChainEnableModal({ | |
onAction: () => void | ||
}) { | ||
return ( | ||
<GradientWrapper> | ||
<div className="modal modal-open"> | ||
<div className="modal-box rounded-md"> | ||
<XIcon className="float-right h-6 cursor-pointer" onClick={onClose} /> | ||
<h1 className="text-2xl font-medium"> | ||
Add Chain "{CHAIN_ID}" | ||
</h1> | ||
<p className="mt-3"> | ||
This application is running on the {CHAIN_NAME}{' '} | ||
<code>{CHAIN_ID}</code> chain. You will need to approve adding the{' '} | ||
{CHAIN_NAME} <code>{CHAIN_ID}</code> chain to connect your wallet. | ||
</p> | ||
<button | ||
className="btn btn-outline btn-md rounded-md normal-case mt-6" | ||
onClick={onAction} | ||
> | ||
ENABLE CHAIN "{CHAIN_ID?.toUpperCase()}" | ||
</button> | ||
</div> | ||
<Modal> | ||
<div className="bg-white h-min max-w-md p-6 rounded-lg border border-focus relative"> | ||
<button | ||
className="hover:bg-secondary transition rounded-full p-1 absolute right-2 top-2" | ||
onClick={onClose} | ||
> | ||
<XIcon className="h-4 w-4" /> | ||
</button> | ||
|
||
<h1 className="header-text">Add Chain "{CHAIN_ID}"</h1> | ||
<p className="mt-6 body-text"> | ||
This application is running on the {CHAIN_NAME}{' '} | ||
<code>{CHAIN_ID}</code> chain. You will need to approve adding the{' '} | ||
{CHAIN_NAME} <code>{CHAIN_ID}</code> chain to connect your wallet. | ||
</p> | ||
<Button onClick={onAction} className="mt-8"> | ||
ENABLE CHAIN "{CHAIN_ID?.toUpperCase()}" | ||
</Button> | ||
</div> | ||
</GradientWrapper> | ||
</Modal> | ||
) | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,8 @@ export default function CodeIdSelect({ | |
<div className="flex items-center"> | ||
<span className="font-medium px-2">Contract Version</span> | ||
<div className="dropdown dropdown-end"> | ||
<Button | ||
size="sm" | ||
iconAfter={<ChevronDownIcon className="inline h-4 w-4" />} | ||
> | ||
{currentVersion.name} | ||
<Button size="sm"> | ||
{currentVersion.name} <ChevronDownIcon className="inline h-4 w-4" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice! 👍 |
||
</Button> | ||
<ul | ||
tabIndex={0} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think want either:
import { Button } from 'ui'
or
import Button from 'ui/Button'