Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Mar 13, 2024
1 parent b657c23 commit bdf398b
Show file tree
Hide file tree
Showing 7 changed files with 1,064 additions and 502 deletions.
357 changes: 176 additions & 181 deletions app/(private)/assets/gem-slot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
476 changes: 476 additions & 0 deletions app/(private)/assets/gem-slot_active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
372 changes: 186 additions & 186 deletions app/(private)/assets/jackpot-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions app/(private)/jackpot/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ export default function Page() {
<div>
<Image src={Machine} alt='' className='w-[236px] h-[252px]' />
</div>
<div className='text-sm text-[#FFFFFF] mt-8'>Jackpot will be revealed at 2 pm, 24th Mar 2024 (UTC +7) </div>
<div className='text-sm text-[#FFFFFF] mt-8'>
The Dragon will appear and fulfill your wish at at 2 pm, 24th Mar 2024 (UTC +7)
</div>
<div className='mt-4 flex gap-4'>
<div className='relative'>
<Image src={GemSlot} alt='' className='w-[87px] h-[93px]' />
Expand Down Expand Up @@ -148,7 +150,7 @@ export default function Page() {
)}
</div>
</div>
<FilledButton className='mt-8'>Submit</FilledButton>
<FilledButton className='mt-8'>Wish</FilledButton>
</div>
</div>
</div>
Expand Down
315 changes: 184 additions & 131 deletions app/(private)/page.tsx

Large diffs are not rendered by default.

28 changes: 26 additions & 2 deletions components/button/filled.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
import { MouseEventHandler, ReactNode } from 'react'

export default function FilledButton({ children, onClick, className }: { children: ReactNode, onClick?: MouseEventHandler<HTMLButtonElement>, className?: string }) {
export default function FilledButton({
children,
onClick,
className,
href,
target,
}: {
href?: string
target?: string
children: ReactNode
onClick?: MouseEventHandler<HTMLButtonElement>
className?: string
}) {
if (href) {
return (
<a
href={href}
target={target}
className={`bg-[linear-gradient(180deg,#F3DBA9_0%,#FFA031_100%)] rounded-2xl py-[10px] px-10 text-[#6D3A0A] font-medium ${className}`}>
{children}
</a>
)
}
return (
<button onClick={onClick} className={`bg-[linear-gradient(180deg,#F3DBA9_0%,#FFA031_100%)] rounded-2xl py-[10px] px-10 text-[#6D3A0A] font-medium ${className}`}>
<button
onClick={onClick}
className={`bg-[linear-gradient(180deg,#F3DBA9_0%,#FFA031_100%)] rounded-2xl py-[10px] px-10 text-[#6D3A0A] font-medium ${className}`}>
{children}
</button>
)
Expand Down
12 changes: 12 additions & 0 deletions public/config.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@
"TWITTER_POST_ID":"1740384898689667455",
"AURASCAN_ENDPOINT":"https://explorer.dev.aura.network",
"HOROSCOPE_ENDPOINT": "https://indexer-v2.dev.aurascan.io",
"HOROSCOPE_CHAINKEY":"auratestnet",
"COSMOSKIT_CHAINKEY":"auradevnet",
"DRAGON_GEM_COLLECTION_CONTRACT_ADDRESS":"aura189xmlzrj8ah96ww4700kp33va2uttzs7lgm0y8vx4hcw2clk4vsszgyu53"
}
//eupho
{
"REST_API_ENDPOINT": "https://campaign-api.euphoria.aura.network",
"HASURA_ENDPOINT": "https://campaign-hasura.euphoria.aura.network",
"TWITTER_POST_ID": "1740384898689667455",
"AURASCAN_ENDPOINT": "https://euphoria.aurascan.io",
"HOROSCOPE_ENDPOINT": "https://indexer-v2.staging.aurascan.io",
"HOROSCOPE_CHAINKEY":"euphoria",
"COSMOSKIT_CHAINKEY": "auratestnet",
"DRAGON_GEM_COLLECTION_CONTRACT_ADDRESS": "aura14rrxnmkpnvcmeknjzma0myeepdxaa86wh5837959ek37dmrl2lxqfg66z0"
}

0 comments on commit bdf398b

Please sign in to comment.