feat: added some ad

This commit is contained in:
원더 2021-02-12 13:10:38 +09:00
parent 27f07cf7d6
commit 03293276ad
3 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import dynamic from 'next/dynamic'
import { categories, categoryIcon } from '@utils/Constants'
const Container = dynamic(() => import('@components/Container'))
const Advertisement = dynamic(() => import('@components/Advertisement'))
const Tag = dynamic(() => import('@components/Tag'))
const SEO = dynamic(() => import('@components/SEO'))
const Segment = dynamic(() => import('@components/Segment'))
@ -21,6 +22,7 @@ const Categories:NextPage = () => {
}
</div>
</Segment>
<Advertisement />
</Container>
}

View File

@ -21,6 +21,7 @@ const New:NextPage<NewProps> = ({ data }) => {
data.data.map(bot => <BotCard key={bot.id} bot={bot} /> )
}
</div>
<Advertisement />
</Container>
</>
}

View File

@ -30,7 +30,9 @@ const Votes:NextPage<VotesProps> = ({ data }) => {
}
</div>
<Paginator totalPage={data.totalPage} currentPage={data.currentPage} pathname='/list/votes' />
</Container></>
<Advertisement />
</Container>
</>
}
export const getServerSideProps = async (ctx:Context) => {
let data: BotList