Skip to content

Commit

Permalink
Merge pull request #331 from P4-Games/develop
Browse files Browse the repository at this point in the history
Deploy 20240127
  • Loading branch information
dappsar authored Jan 28, 2024
2 parents 68429a3 + 5de9a76 commit 486d530
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 16 deletions.
Binary file added public/images/book/dappsar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions src/components/Navbar/NofTown.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import React from 'react'
import PropTypes from 'prop-types'
import Link from 'next/link'

function NofTown() {
function NofTown({ defaultClassName = 'navbar__center__li__noftown' }) {
return (
<Link
href='https://app.gather.town/app/YzUVkrf98XW8wz4a/Number%20One%20Fan'
target='_blank'
rel='noreferrer'
>
<button className='navbar__center__li__noftown'>NoF Town</button>
<button className={defaultClassName}>NoF Town</button>
</Link>
)
}

NofTown.propTypes = {
defaultClassName: PropTypes.string
}

export default NofTown
16 changes: 8 additions & 8 deletions src/components/Navbar/Whitepaper.jsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import React from 'react'
import PropTypes from 'prop-types'
import Link from 'next/link'
import { useTranslation } from 'next-i18next'

function Whitepaper() {
function Whitepaper({ defaultClassName = 'navbar__center__li__whitepaper' }) {
const { t } = useTranslation()

return (
<Link
href='https://number-one-fan.gitbook.io/doc/'
target='_blank'
rel='noreferrer'
// spy='true'
>
<button className='navbar__center__li__whitepaper'>{t('whitepaper')}</button>
<Link href='https://number-one-fan.gitbook.io/doc/' target='_blank' rel='noreferrer'>
<button className={defaultClassName}>{t('whitepaper')}</button>
</Link>
)
}

Whitepaper.propTypes = {
defaultClassName: PropTypes.string
}

export default Whitepaper
36 changes: 30 additions & 6 deletions src/sections/Main/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const Main = () => {
<h3 className='hero__top__album__book__page__profiles__title'>{t ? t('TEAM') : ''}</h3>
<div className='hero__top__album__book__page__profiles__content'>
{Profiles &&
Profiles.map((profile) => (
Profiles.slice(0, 9).map((profile) => (
<div className='hero__top__album__book__page__profiles__box' key={profile.id}>
<Image fill alt='profile' className='img' src={profile.icon} />
<p>
Expand All @@ -226,6 +226,27 @@ const Main = () => {
)

const Page8 = () => (
<React.Fragment>
<div className='hero__top__album__book__page__profiles'>
<h3 className='hero__top__album__book__page__profiles__title'>{t ? t('TEAM') : ''}</h3>
<div className='hero__top__album__book__page__profiles__content'>
{Profiles &&
Profiles.slice(9).map((profile) => (
<div className='hero__top__album__book__page__profiles__box' key={profile.id}>
<Image fill alt='profile' className='img' src={profile.icon} />
<p>
{profile.caption}
<br />
{profile.position}
</p>
</div>
))}
</div>
</div>
</React.Fragment>
)

const Page9 = () => (
<React.Fragment>
<div className='hero__top__album__book__page__profiles'>
<h3 className='hero__top__album__book__page__profiles__title'>{t ? t('FRIENDS') : ''}</h3>
Expand All @@ -242,7 +263,7 @@ const Main = () => {
</React.Fragment>
)

const Page9 = () => (
const Page10 = () => (
<React.Fragment>
{!windowSize.mobile && (
<>
Expand All @@ -259,10 +280,12 @@ const Main = () => {
)}
{windowSize.mobile && (
<div className='hero__top__container__mobile'>
<h3 className='title'>{t ? t('collections') : ''}</h3>
<h3 className='title'>{t ? t('cards') : ''}</h3>
<SwiperComp />
<Whitepaper />
<NofTown />
<br />
<br />
<Whitepaper defaultClassName={'hero__top__album__book__page__btn'} />
<NofTown defaultClassName={'hero__top__album__book__page__btn2'} />
</div>
)}
</React.Fragment>
Expand All @@ -281,7 +304,8 @@ const Main = () => {
<Page6 key={'page-6'} />,
<Page7 key={'page-7'} />,
<Page8 key={'page-8'} />,
<Page9 key={'page-9'} />
windowSize.mobile ? <Page10 key={'page-9'} /> : <Page9 key={'page-9'} />,
windowSize.mobile ? <Page9 key={'page-10'} /> : <Page10 key={'page-10'} />
]}
/>
)
Expand Down
6 changes: 6 additions & 0 deletions src/sections/Main/Profiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,11 @@
"caption": "N. Huircapan",
"position": "Web3 Developer",
"icon": "/images/book/Huircapan.png"
},
{
"id": 10,
"caption": "dappsar",
"position": "Web3/FE Developer",
"icon": "/images/book/dappsar.png"
}
]

0 comments on commit 486d530

Please sign in to comment.