mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: friendlier home page ads
This commit is contained in:
1 parent
423ffdb24f
commit
c5b3f6adad
1 file changed
+7
-45
+7
-45
@@ -1,7 +1,6 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { Flex } from '@radix-ui/themes';
|
import { Flex } from '@radix-ui/themes';
|
||||||
import { Ad, AdType } from '../components/Ad';
|
|
||||||
import { AdMidSectionResponsive } from '../components/AdMidSectionResponsive';
|
import { AdMidSectionResponsive } from '../components/AdMidSectionResponsive';
|
||||||
import {
|
import {
|
||||||
compareTool,
|
compareTool,
|
||||||
@@ -26,49 +25,22 @@ export default function Page() {
|
|||||||
|
|
||||||
<PatreonPlug />
|
<PatreonPlug />
|
||||||
|
|
||||||
<Flex
|
<Flex p="4" justify="center" gap="4">
|
||||||
p="4"
|
|
||||||
justify={
|
|
||||||
exempt
|
|
||||||
? 'center'
|
|
||||||
: {
|
|
||||||
initial: 'center',
|
|
||||||
lg: 'between',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
gap="4"
|
|
||||||
>
|
|
||||||
{!exempt && (
|
|
||||||
<Ad
|
|
||||||
type={AdType.WideSkyscraperVerticalPurple}
|
|
||||||
display={{
|
|
||||||
initial: 'none',
|
|
||||||
lg: 'block',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Flex maxWidth="1024px" flexGrow="1" gap="4" direction="column">
|
<Flex maxWidth="1024px" flexGrow="1" gap="4" direction="column">
|
||||||
<ToolCard tool={tankopediaTool} />
|
<ToolCard tool={tankopediaTool} />
|
||||||
|
|
||||||
{!exempt && (
|
|
||||||
<Flex
|
|
||||||
justify="center"
|
|
||||||
display={{
|
|
||||||
initial: 'flex',
|
|
||||||
lg: 'none',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<AdMidSectionResponsive />
|
|
||||||
</Flex>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
||||||
{/* <ToolCard tool={playerStatsTool} /> */}
|
{/* <ToolCard tool={playerStatsTool} /> */}
|
||||||
<ToolCard tool={compareTool} />
|
<ToolCard tool={compareTool} />
|
||||||
<ToolCard tool={tankPerformanceTool} />
|
<ToolCard tool={tankPerformanceTool} />
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
|
{!exempt && (
|
||||||
|
<Flex justify="center">
|
||||||
|
<AdMidSectionResponsive />
|
||||||
|
</Flex>
|
||||||
|
)}
|
||||||
|
|
||||||
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
<Flex gap="4" direction={{ initial: 'column', sm: 'row' }}>
|
||||||
<ToolCard tool={sessionTool} />
|
<ToolCard tool={sessionTool} />
|
||||||
<ToolCard tool={ratingTool} />
|
<ToolCard tool={ratingTool} />
|
||||||
@@ -95,16 +67,6 @@ export default function Page() {
|
|||||||
<Box flexGrow="1" />
|
<Box flexGrow="1" />
|
||||||
</Flex> */}
|
</Flex> */}
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{!exempt && (
|
|
||||||
<Ad
|
|
||||||
type={AdType.WideSkyscraperVerticalPurple}
|
|
||||||
display={{
|
|
||||||
initial: 'none',
|
|
||||||
lg: 'block',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{!exempt && <AdMidSectionResponsive />}
|
{!exempt && <AdMidSectionResponsive />}
|
||||||
|
|||||||
Reference in new issue
Block a user