Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Feb 7, 2024
1 parent f1cdff5 commit 0f791a8
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/components/homeComponents/fortuneNumberSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function FortuneNumberSection() {
))}
</div>
<div className='text-[#C66722] text-sm leading-[18px] '>
A new set of fortune numbers will be generated after all 5 current numbers used.
A new set of fortune numbers will be generated after all 5 current numbers are used.
</div>
</section>
</>
Expand Down
15 changes: 5 additions & 10 deletions app/components/homeComponents/home.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
'use client'

import BlueLixi from '@/assets/blue-lixi.svg'
import Background from '@/assets/home-background.png'
import MBackground from '@/assets/home-background_mobile.png'
import Stage from '@/assets/home-stage.svg'
import { Context, DN } from '@/context'
import moment from 'moment'
import getConfig from 'next/config'
import Image from 'next/image'
import { useParams } from 'next/navigation'
import { useContext, useEffect, useState } from 'react'
import Countdown, { zeroPad } from 'react-countdown'
import useSWR from 'swr'
import FortuneNumberSection from './fortuneNumberSection'
import LeaderboardSection from './leaderboardSection'
import LixiStage from './lixiStage'
import RuleSection from './ruleSection'
import BlueLixi from '@/assets/blue-lixi.svg'
import useSWR from 'swr'
import moment from 'moment'
import Countdown, { zeroPad } from 'react-countdown'
export default function HomePage() {
const { account, submitCode, disconnect } = useContext(Context)
const { account, submitCode } = useContext(Context)
const [loading, setLoading] = useState(false)
const [value, setValue] = useState('')
const [errorMsg, setErrorMsg] = useState('')
Expand Down Expand Up @@ -56,10 +55,6 @@ export default function HomePage() {
<Image src={Background} alt='' className='w-full min-w-[1008px] hidden sm:block' />
<Image src={MBackground} alt='' className='w-full min-w-[375px] mt-[50px] sm:hidden' />
</div>
{/* background */}
<div className='relative overflow-hidden flex flex-col items-center w-full mx-auto'>
<Image src={Stage} alt='' className='mt-16 max-w-[390px] w-[110%] mr-[2.3rem]' />
</div>
</main>
)
}
Expand Down
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { NextUIProvider } from '@nextui-org/react'
import { Roboto } from 'next/font/google'
import { Header } from './components/header'
import './globals.css'
import { GoogleTagManager } from '@next/third-parties/google'

const roboto = Roboto({ subsets: ['latin'], weight: ['100', '300', '400', '500', '700', '900'] })

Expand Down Expand Up @@ -32,6 +33,7 @@ export default function RootLayout({
</ContextProvider>
</NextUIProvider>
</body>
<GoogleTagManager gtmId='GTM-K3NWXQS' />
</html>
)
}
12 changes: 7 additions & 5 deletions app/my-inventory/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ import Background from '@/assets/home-background.png'
import MBackground from '@/assets/home-background_mobile.png'
import Image from 'next/image'
import Txs from './txs'
import { useContext } from 'react'
import { useContext, useEffect } from 'react'
import { Context } from '@/context'
import { redirect } from 'next/navigation'
export default function Page() {
const { account } = useContext(Context)
if (!account) {
redirect('/')
}
useEffect(() => {
if (!account) {
redirect('/')
}
}, [])
return (
<main className='relative min-h-screen'>
{/* background */}
Expand All @@ -24,7 +26,7 @@ export default function Page() {
{/* background */}
<div className='relative flex flex-col items-center xl:flex-row xl:items-start xl:justify-center xl:gap-4 pt-16 sm:pt-24 gap-8'>
<InventorySection />
<Txs/>
<Txs />
</div>
</main>
)
Expand Down
Binary file added assets/gif-new.webp
Binary file not shown.
Binary file added assets/gif1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@next/third-parties": "^14.1.0",
"@nextui-org/react": "^2.2.9",
"axios": "^1.6.7",
"bech32": "^2.0.0",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.0.tgz#e561fb330466d41807123d932b365cf3d33ceba2"
integrity sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg==

"@next/third-parties@^14.1.0":
version "14.1.0"
resolved "https://registry.yarnpkg.com/@next/third-parties/-/third-parties-14.1.0.tgz#d9604fff8880e05d3804d2cf7ab42eb5430aec69"
integrity sha512-f55SdvQ1WWxi4mb5QqtYQh5wRzbm1XaeP7s39DPn4ks3re+n9VlFccbMxBRHqkE62zAyIKmvkUB2cByT/gugGA==
dependencies:
third-party-capital "1.0.20"

"@nextui-org/[email protected]":
version "2.0.28"
resolved "https://registry.yarnpkg.com/@nextui-org/accordion/-/accordion-2.0.28.tgz#4d61d0534d4365a41a9ab0bc02b74bafc5069922"
Expand Down Expand Up @@ -4492,6 +4499,11 @@ thenify-all@^1.0.0:
dependencies:
any-promise "^1.0.0"

[email protected]:
version "1.0.20"
resolved "https://registry.yarnpkg.com/third-party-capital/-/third-party-capital-1.0.20.tgz#e218a929a35bf4d2245da9addb8ab978d2f41685"
integrity sha512-oB7yIimd8SuGptespDAZnNkzIz+NWaJCu2RMsbs4Wmp9zSDUM8Nhi3s2OOcqYuv3mN4hitXc8DVx+LyUmbUDiA==

to-regex-range@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
Expand Down

0 comments on commit 0f791a8

Please sign in to comment.