Updated look for collection creation tabs (#12)

* Updated look for collection creation tabs

* Update on-hover behavior for tabs

* Update on-hover behavior for tabs - 2

* Add some separation between the tabs
This commit is contained in:
Serkan Reis 2022-09-19 11:14:30 +03:00 committed by GitHub
parent ddbdbd35ab
commit 9ae16407b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 30 deletions

View File

@ -62,7 +62,7 @@ export const RoyaltyDetails = ({ onChange }: RoyaltyDetailsProps) => {
value="None" value="None"
/> />
<label <label
className="inline-block py-1 px-2 text-plumbus-light peer-checked:text-white hover:text-white peer-checked:bg-plumbus peer-checked:hover:bg-plumbus-light hover:bg-plumbus rounded-lg border border-plumbus-light cursor-pointer form-check-label" className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black hover:rounded-sm peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="royaltyRadio1" htmlFor="royaltyRadio1"
> >
No royalty No royalty
@ -81,7 +81,7 @@ export const RoyaltyDetails = ({ onChange }: RoyaltyDetailsProps) => {
value="Existing" value="Existing"
/> />
<label <label
className="inline-block py-1 px-2 text-plumbus-light peer-checked:text-white hover:text-white peer-checked:bg-plumbus peer-checked:hover:bg-plumbus-light hover:bg-plumbus rounded-lg border border-plumbus-light cursor-pointer form-check-label" className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black hover:rounded-sm peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="royaltyRadio2" htmlFor="royaltyRadio2"
> >
Configure royalty details Configure royalty details

View File

@ -201,26 +201,6 @@ export const UploadDetails = ({ onChange }: UploadDetailsProps) => {
return ( return (
<div className="justify-items-start mt-5 mb-3 rounded border border-2 border-white/20 flex-column"> <div className="justify-items-start mt-5 mb-3 rounded border border-2 border-white/20 flex-column">
<div className="flex justify-center"> <div className="flex justify-center">
<div className="mt-3 ml-4 font-bold form-check form-check-inline">
<input
checked={uploadMethod === 'existing'}
className="peer sr-only"
id="inlineRadio1"
name="inlineRadioOptions1"
onClick={() => {
setUploadMethod('existing')
}}
type="radio"
value="Existing"
/>
<label
className="inline-block py-1 px-2 text-plumbus-light peer-checked:text-white hover:text-white peer-checked:bg-plumbus peer-checked:hover:bg-plumbus-light hover:bg-plumbus rounded-lg border border-plumbus-light cursor-pointer form-check-label"
htmlFor="inlineRadio1"
>
Use an existing base URI
</label>
</div>
<div className="mt-3 ml-4 font-bold form-check form-check-inline"> <div className="mt-3 ml-4 font-bold form-check form-check-inline">
<input <input
checked={uploadMethod === 'new'} checked={uploadMethod === 'new'}
@ -234,12 +214,31 @@ export const UploadDetails = ({ onChange }: UploadDetailsProps) => {
value="New" value="New"
/> />
<label <label
className="inline-block py-1 px-2 text-plumbus-light peer-checked:text-white hover:text-white peer-checked:bg-plumbus peer-checked:hover:bg-plumbus-light hover:bg-plumbus rounded-lg border border-plumbus-light cursor-pointer form-check-label" className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="inlineRadio2" htmlFor="inlineRadio2"
> >
Upload assets & metadata Upload assets & metadata
</label> </label>
</div> </div>
<div className="mt-3 ml-2 font-bold form-check form-check-inline">
<input
checked={uploadMethod === 'existing'}
className="peer sr-only"
id="inlineRadio1"
name="inlineRadioOptions1"
onClick={() => {
setUploadMethod('existing')
}}
type="radio"
value="Existing"
/>
<label
className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="inlineRadio1"
>
Use an existing base URI
</label>
</div>
</div> </div>
<div className="p-3 py-5 pb-8"> <div className="p-3 py-5 pb-8">
@ -282,14 +281,14 @@ export const UploadDetails = ({ onChange }: UploadDetailsProps) => {
value="nft-storage" value="nft-storage"
/> />
<label <label
className="inline-block py-1 px-2 text-plumbus-light peer-checked:text-white hover:text-white peer-checked:bg-plumbus peer-checked:hover:bg-plumbus-light hover:bg-plumbus rounded-lg border border-plumbus-light cursor-pointer form-check-label" className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black hover:rounded-sm peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="inlineRadio3" htmlFor="inlineRadio3"
> >
Upload using NFT.Storage Upload using NFT.Storage
</label> </label>
</div> </div>
<div className="ml-4 form-check form-check-inline"> <div className="ml-2 form-check form-check-inline">
<input <input
checked={uploadService === 'pinata'} checked={uploadService === 'pinata'}
className="peer sr-only" className="peer sr-only"
@ -302,7 +301,7 @@ export const UploadDetails = ({ onChange }: UploadDetailsProps) => {
value="pinata" value="pinata"
/> />
<label <label
className="inline-block py-1 px-2 text-plumbus-light peer-checked:text-white hover:text-white peer-checked:bg-plumbus peer-checked:hover:bg-plumbus-light hover:bg-plumbus rounded-lg border border-plumbus-light cursor-pointer form-check-label" className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black hover:rounded-sm peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="inlineRadio4" htmlFor="inlineRadio4"
> >
Upload using Pinata Upload using Pinata

View File

@ -107,7 +107,7 @@ export const WhitelistDetails = ({ onChange }: WhitelistDetailsProps) => {
value="None" value="None"
/> />
<label <label
className="inline-block py-1 px-2 text-plumbus-light peer-checked:text-white hover:text-white peer-checked:bg-plumbus peer-checked:hover:bg-plumbus-light hover:bg-plumbus rounded-lg border border-plumbus-light cursor-pointer form-check-label" className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black hover:rounded-sm peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="whitelistRadio1" htmlFor="whitelistRadio1"
> >
No whitelist No whitelist
@ -126,7 +126,7 @@ export const WhitelistDetails = ({ onChange }: WhitelistDetailsProps) => {
value="Existing" value="Existing"
/> />
<label <label
className="inline-block py-1 px-2 text-plumbus-light peer-checked:text-white hover:text-white peer-checked:bg-plumbus peer-checked:hover:bg-plumbus-light hover:bg-plumbus rounded-lg border border-plumbus-light cursor-pointer form-check-label" className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black hover:rounded-sm peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="whitelistRadio2" htmlFor="whitelistRadio2"
> >
Existing whitelist Existing whitelist
@ -145,7 +145,7 @@ export const WhitelistDetails = ({ onChange }: WhitelistDetailsProps) => {
value="New" value="New"
/> />
<label <label
className="inline-block py-1 px-2 text-plumbus-light peer-checked:text-white hover:text-white peer-checked:bg-plumbus peer-checked:hover:bg-plumbus-light hover:bg-plumbus rounded-lg border border-plumbus-light cursor-pointer form-check-label" className="inline-block py-1 px-2 text-gray peer-checked:text-white hover:text-white peer-checked:bg-black hover:rounded-sm peer-checked:border-b-2 hover:border-b-2 peer-checked:border-plumbus hover:border-plumbus cursor-pointer form-check-label"
htmlFor="whitelistRadio3" htmlFor="whitelistRadio3"
> >
New whitelist New whitelist

View File

@ -14,7 +14,7 @@ module.exports = {
colors: { colors: {
stargaze: { DEFAULT: '#DB2676' }, stargaze: { DEFAULT: '#DB2676' },
dark: { DEFAULT: '#06090B' }, dark: { DEFAULT: '#06090B' },
gray: { DEFAULT: '#F3F6F8' }, gray: { DEFAULT: '#A9A9A9' },
'dark-gray': { DEFAULT: '#191D20' }, 'dark-gray': { DEFAULT: '#191D20' },
purple: { DEFAULT: '#7E5DFF' }, purple: { DEFAULT: '#7E5DFF' },