Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
6f12064a
Commit
6f12064a
authored
Jun 08, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maybe not the best solution
parent
aa747838
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
SliseBanner.tsx
ui/shared/ad/SliseBanner.tsx
+17
-10
No files found.
ui/shared/ad/SliseBanner.tsx
View file @
6f12064a
...
@@ -2,18 +2,25 @@ import { Flex, chakra } from '@chakra-ui/react';
...
@@ -2,18 +2,25 @@ import { Flex, chakra } from '@chakra-ui/react';
import
{
SliseAd
}
from
'
@slise/embed-react
'
;
import
{
SliseAd
}
from
'
@slise/embed-react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
const
SliseBanner
=
({
className
}:
{
className
?:
string
})
=>
{
const
SliseBanner
=
({
className
}:
{
className
?:
string
})
=>
{
const
isMobile
=
useIsMobile
();
return
(
return
(
<
Flex
className=
{
className
}
h=
"90px"
>
<>
<
Flex
className=
{
className
}
h=
"90px"
display=
{
{
base
:
'
none
'
,
lg
:
'
flex
'
}
}
>
<
SliseAd
slotId=
"leaderboard"
pub=
"pub-10"
format=
"728x90"
style=
{
{
width
:
'
728px
'
,
height
:
'
90px
'
}
}
/>
</
Flex
>
<
Flex
className=
{
className
}
h=
"90px"
display=
{
{
base
:
'
flex
'
,
lg
:
'
none
'
}
}
>
<
SliseAd
<
SliseAd
slotId=
"leaderboard"
slotId=
"leaderboard"
pub=
"pub-10"
pub=
"pub-10"
format=
{
isMobile
?
'
270x90
'
:
'
728x90
'
}
format=
"270x90"
style=
{
{
width
:
isMobile
?
'
270px
'
:
'
728
px
'
,
height
:
'
90px
'
}
}
/>
style=
{
{
width
:
'
270
px
'
,
height
:
'
90px
'
}
}
/>
</
Flex
>
</
Flex
>
</>
);
);
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment