Skip to content

Commit

Permalink
fix: header
Browse files Browse the repository at this point in the history
  • Loading branch information
adetyaz committed Sep 12, 2024
1 parent 1d7638a commit dbe0ce6
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 50 deletions.
Binary file modified public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 7 additions & 26 deletions src/app/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
} from '@/utils/queries'
import { AvatarType } from '@/types/types'
import { BadgeInfo } from 'lucide-react'
import Header from '@/components/header'

export default function Home({ params }: { params: { id: string } }) {
const { id } = params
Expand Down Expand Up @@ -53,11 +54,11 @@ export default function Home({ params }: { params: { id: string } }) {

const [phygitalResult, webxrResult, avatarResult] = results

useEffect(() => {
setTimeout(() => {
setUnlockClaimed(true)
}, 60000)
}, [])
// useEffect(() => {
// setTimeout(() => {
// setUnlockClaimed(true)
// }, 60000)
// }, [])

const closeClaimed = () => {
setUnlockClaimed(false)
Expand Down Expand Up @@ -87,27 +88,7 @@ export default function Home({ params }: { params: { id: string } }) {

return (
<main className='flex h-dvh flex-col items-center justify-between p-24 relative'>
<header className='absolute top-0 p-4 w-full flex items-center justify-between z-10'>
<Image
src='/logo.png'
alt='logo'
height={150}
width={250}
className='h-[70px] w-[150px] md:h-[100px] md:w-[250px]'
/>
<div className='flex gap-4'>
<button
className='md:hidden text-white'
onClick={() => {
console.log('heyy')
setShowCard(!showCard)
}}
>
<BadgeInfo />
</button>
<ConnectWallet />
</div>
</header>
<Header home={false} />

<a-scene>
<a-sky
Expand Down
26 changes: 2 additions & 24 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,12 @@ import Footer from '@/components/footer'
import Image from 'next/image'

import { ConnectWallet } from '@/components/connect-wallet'
import Header from '../components/header'

export default function Home() {
return (
<div className='bg-black'>
<div className='px-10 flex justify-between pb-[10px] bg-gradient-to-r from-pink-100 via-blue-500 to-purple-500'>
<div className='mt-4'>
<Link href='/'>
<Image src='/logo.png' width={200} height={0} alt='Logo' />
</Link>
</div>
<div className='mt-6 flex gap-12 text-[20px] text-white'>
<Link href='https://myriadflow.com' target='_blank'>
Home
</Link>
<Link href='https://discover.myriadflow.com' target='_blank'>
Discover
</Link>
<Link href='https://studio.myriadflow.com' target='_blank'>
Studio
</Link>
<Link href='https://webxr.myriadflow.com/' target='_blank'>
WebXR
</Link>
</div>
<div className='mt-6'>
<ConnectWallet />
</div>
</div>
<Header home />
<div className='flex h-screen bg-[#121212] text-white relative'>
<div className='absolute right-0 bottom-[0px] md:left-[25%] w-[140px] lg:w-[337px] h-[125px] lg:h-[316px] bg-[#11D9C5] rounded-full blur-3xl opacity-20' />
<div className='absolute right-0 top-0 md:right-[10%] w-[140px] lg:w-[337px] h-[125px] lg:h-[316px] bg-[#DF1FDD] rounded-full blur-3xl opacity-20' />
Expand Down
Loading

0 comments on commit dbe0ce6

Please sign in to comment.