-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pixel app in tsx * fix test namespace and pump dm start
- Loading branch information
Showing
12 changed files
with
984 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
'use client'; | ||
|
||
import Link from 'next/link'; | ||
import React, {useState} from 'react'; | ||
import {createPortal} from 'react-dom'; | ||
|
||
import {MobileNavBar} from './MobileNavBar'; | ||
import {NavigationLinks} from './NavigationLinks'; | ||
|
||
export function NavbarPixel() { | ||
const [toggleNav, setToggleNav] = useState(false); | ||
return ( | ||
<div className="desktop:py-[26px] py-3 px-6 desktop:px-[120px] bg-black flex justify-between items-center"> | ||
<div className="flex items-center gap-x-[10px] text"> | ||
<img | ||
src="/assets/pepe-logo.png" | ||
className="desktop:h-[52px] w-9 h-9 desktop:w-[52px]" | ||
alt="" | ||
/> | ||
<Link href="/"> | ||
<h5 className="desktop:text-2xl text-lg leading-7 font-bold text-white">AFK</h5> | ||
</Link> | ||
</div> | ||
{/* <NavigationLinks /> */} | ||
{/* <div className="desktop:flex hidden items-center gap-x-4 font-bold text-sm leading-[16px]"> | ||
<button className="py-[15px] px-[48px] bg-white"> | ||
<a href="https://afk-community.xyz" target="_blank"> | ||
Log in | ||
</a> | ||
</button> | ||
</div> */} | ||
<button | ||
className="flex desktop:hidden" | ||
onClick={() => { | ||
setToggleNav(true); | ||
window.scrollTo({top: 0, left: 0, behavior: 'smooth'}); | ||
}} | ||
> | ||
<img src="assets/hamburger-icon.svg" className="w-6 h-6" alt="" /> | ||
</button> | ||
|
||
{toggleNav && | ||
createPortal(<MobileNavBar setToggle={setToggleNav} toggle={toggleNav} />, document.body)} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
'use client'; | ||
import {AppRender} from 'pixel_ui'; | ||
|
||
import {Footer} from '../components/Footer'; | ||
import {Navbar} from '../components/Navbar'; | ||
import { NavbarPixel } from '../components/NavbarPixel'; | ||
|
||
export default function Pixel() { | ||
return ( | ||
<div className="min-h-screen w-full relative bg-black"> | ||
<Navbar /> | ||
<NavbarPixel/> | ||
{/* <App></App> */} | ||
|
||
{typeof window !== 'undefined' && <AppRender></AppRender>} | ||
<Footer /> | ||
{/* {typeof window !== 'undefined' && <App></App>} */} | ||
{/* <Footer /> */} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./src/App" | ||
// export * from "./src/App" | ||
export * from "./src/App.tsx" | ||
// export * from "./src" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.