-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add btn, content, image positioning
- Loading branch information
1 parent
ea20ca6
commit 92b4296
Showing
8 changed files
with
60 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Text, TextProps } from '@pancakeswap/uikit' | ||
import { PropsWithChildren } from 'react' | ||
|
||
interface ContentProps extends TextProps, PropsWithChildren {} | ||
|
||
export const Content = ({ children, ...props }: ContentProps) => { | ||
return ( | ||
<Text fontSize="14px" mb="16px" bold {...props}> | ||
{children} | ||
</Text> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
apps/web/src/components/AdPanel/Variations/TitleContentAd.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { AdButton } from '../Button' | ||
import { AdCard } from '../Card' | ||
import { Content } from '../Content' | ||
import { Title } from '../Title' | ||
|
||
export const TitleContentAd = () => { | ||
return ( | ||
<AdCard imageUrl="/images/adpanel-test/bannerImg1.png"> | ||
<Title>Need Help?</Title> | ||
<Content>Quick start now on How to Swap!</Content> | ||
|
||
<AdButton isExternal>Quick start</AdButton> | ||
</AdCard> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { AdButton as Button } from './Button' | ||
import { AdCard as Card } from './Card' | ||
import { DesktopCard, MobileCard } from './CardLayouts' | ||
import { Title } from './Title' | ||
import { Content } from './Content' | ||
|
||
// TODO: Later move to widgets-internal with conventional exporting | ||
export const AdPanel = { | ||
DesktopCard, | ||
MobileCard, | ||
Card, | ||
Title, | ||
Content, | ||
Button, | ||
} |