-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecbd277
commit 07b2674
Showing
11 changed files
with
241 additions
and
73 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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,26 +1,32 @@ | ||
import type { FC } from 'react' | ||
import neuronBg from './neuron_bg.png'; | ||
import MoreIcon from './more.svg'; | ||
import neuronBg from './neuron_bg.png' | ||
import MoreIcon from './more.svg' | ||
|
||
export const Services: FC = () => ( | ||
<div className='container mx-auto'> | ||
<div className='flex items-start aspect-video bg-contain bg-no-repeat bg-center' style={{ backgroundImage: `url(${neuronBg.src})` }}> | ||
<div className="container relative mx-auto h-screen"> | ||
<div | ||
className="absolute top-0 bottom-0 left-0 right-0 z-[-1] bg-contain bg-no-repeat bg-center" | ||
style={{ backgroundImage: `url(${neuronBg.src})` }} | ||
/> | ||
|
||
<div className='backdrop-blur-xl border-[1px] border-[#ffffff66] rounded-3xl mt-32 mr-32 ml-auto w-[520px] px-10 py-12'> | ||
<h1 className='text-3xl font-bold'>Neuron</h1> | ||
<div className='flex items-center'> | ||
<div className='text-xl'>CKB desktop wallet</div> | ||
<button className='flex items-center ml-auto border-[1px] border-solid border-white rounded-xl py-4 px-6'>More <MoreIcon className='ml-2' /></button> | ||
<div className='h-full flex flex-1 flex-col'> | ||
<div className="backdrop-blur-xl border-[1px] border-[#ffffff66] rounded-3xl mt-32 mr-32 ml-auto w-[520px] px-10 py-12"> | ||
<h1 className="text-3xl font-bold">Neuron</h1> | ||
<div className="flex items-center"> | ||
<div className="text-xl">CKB desktop wallet</div> | ||
<button className="flex items-center ml-auto border-[1px] border-solid border-white rounded-xl py-4 px-6"> | ||
More <MoreIcon className="ml-2" /> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className='bg-gradient-to-b from-[#36363699] to-[#1D1D1D99] rounded-full flex justify-between px-4 py-6'> | ||
<div className='px-16'>Neuron</div> | ||
<div className='px-16'>CKB Explorer</div> | ||
<div className='px-16'>Godwoken Explorer</div> | ||
<div className='px-16'>Axon Explorer</div> | ||
<div className='px-16'>Kuai</div> | ||
<div className="mt-auto mb-4 bg-gradient-to-b from-[#36363699] to-[#1D1D1D99] rounded-full flex justify-between px-4 py-6"> | ||
<div className="px-16">Neuron</div> | ||
<div className="px-16">CKB Explorer</div> | ||
<div className="px-16">Godwoken Explorer</div> | ||
<div className="px-16">Axon Explorer</div> | ||
<div className="px-16">Kuai</div> | ||
</div> | ||
</div> | ||
</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,22 +1,34 @@ | ||
import { useState } from 'react' | ||
import ReactPageScroller from 'react-page-scroller' | ||
import { Footer } from '../components/Footer' | ||
import { Header } from '../components/Header' | ||
import { Branding } from '../components/Branding' | ||
import { AboutUs } from '../components/About' | ||
import { ContactUs } from '../components/ContactUs' | ||
import { Services } from '../components/Services' | ||
import styles from './page.module.css' | ||
|
||
export default function Home() { | ||
const [currentPage, setCurrentPage] = useState(0) | ||
const [aboutUsScrollPosition, setAboutUsScrollPosition] = useState('top') | ||
const isAbout = currentPage === 1 | ||
|
||
return ( | ||
<div className='overflow-hidden'> | ||
<div className="overflow-hidden"> | ||
<Header /> | ||
<Branding /> | ||
<div className={styles.separate}/> | ||
<AboutUs /> | ||
<div className={styles.separate}/> | ||
<Services /> | ||
<ContactUs /> | ||
<Footer /> | ||
<ReactPageScroller | ||
pageOnChange={page => setCurrentPage(page)} | ||
blockScrollDown={isAbout && aboutUsScrollPosition !== 'bottom'} | ||
blockScrollUp={isAbout && aboutUsScrollPosition !== 'top'} | ||
> | ||
<Branding /> | ||
<AboutUs | ||
onScrollPositionChange={(p) => setAboutUsScrollPosition(p)} | ||
/> | ||
{/* <div className={styles.separate} /> */} | ||
<Services /> | ||
<ContactUs /> | ||
<Footer /> | ||
</ReactPageScroller> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.