mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: lessen ads
This commit is contained in:
1 parent
89f8136137
commit
2727b2babe
1 file changed
+1
-34
@@ -1,6 +1,4 @@
|
|||||||
import { Flex, Heading } from '@radix-ui/themes';
|
import { Flex, Heading } from '@radix-ui/themes';
|
||||||
import { Ad, AdType } from '../../../../../../components/Ad';
|
|
||||||
import { useAdExempt } from '../../../../../../hooks/useAdExempt';
|
|
||||||
import { Characteristics } from '../Characteristics';
|
import { Characteristics } from '../Characteristics';
|
||||||
import { Consumables } from '../Characteristics/components/Consumables';
|
import { Consumables } from '../Characteristics/components/Consumables';
|
||||||
import { Equipment } from '../Characteristics/components/Equipment';
|
import { Equipment } from '../Characteristics/components/Equipment';
|
||||||
@@ -10,26 +8,8 @@ import { Provisions } from '../Characteristics/components/Provisions';
|
|||||||
import { Skills } from '../Characteristics/components/Skills';
|
import { Skills } from '../Characteristics/components/Skills';
|
||||||
|
|
||||||
export function CharacteristicsSection() {
|
export function CharacteristicsSection() {
|
||||||
const exempt = useAdExempt();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex mt="4" px="4" style={{ boxSizing: 'border-box' }} gap="6">
|
||||||
mt={exempt ? '4' : '0'}
|
|
||||||
px="4"
|
|
||||||
style={{ boxSizing: 'border-box' }}
|
|
||||||
gap="6"
|
|
||||||
>
|
|
||||||
{!exempt && (
|
|
||||||
<Flex
|
|
||||||
direction="column"
|
|
||||||
gap="4"
|
|
||||||
display={{ initial: 'none', lg: 'flex' }}
|
|
||||||
pt={{ initial: '9', md: '0' }}
|
|
||||||
>
|
|
||||||
<Ad type={AdType.WideSkyscraperVerticalPurple} />
|
|
||||||
</Flex>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Flex
|
<Flex
|
||||||
flexGrow="1"
|
flexGrow="1"
|
||||||
gap="6"
|
gap="6"
|
||||||
@@ -49,7 +29,6 @@ export function CharacteristicsSection() {
|
|||||||
flexGrow="1"
|
flexGrow="1"
|
||||||
maxWidth={{
|
maxWidth={{
|
||||||
initial: 'unset',
|
initial: 'unset',
|
||||||
xs: exempt ? undefined : '320px',
|
|
||||||
md: '640px',
|
md: '640px',
|
||||||
}}
|
}}
|
||||||
direction="column"
|
direction="column"
|
||||||
@@ -59,18 +38,6 @@ export function CharacteristicsSection() {
|
|||||||
<Characteristics />
|
<Characteristics />
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{!exempt && (
|
|
||||||
<Flex
|
|
||||||
direction="column"
|
|
||||||
gap="4"
|
|
||||||
height="100%"
|
|
||||||
display={{ initial: 'none', xs: 'flex' }}
|
|
||||||
pt={{ initial: '9', md: '0' }}
|
|
||||||
>
|
|
||||||
<Ad type={AdType.WideSkyscraperVerticalPurple} />
|
|
||||||
</Flex>
|
|
||||||
)}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user