forked from pancakeswap/pancake-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(styles) Add some initial new lottery styles (pancakeswap#1385)
* style(page-section): Improve readibility of section styles * style(lottery-v2): Sneaking in some page styles * style(lottery-v2): PageSectionStyles tidy * style(page-section): Further simplification and improvement of styles
- Loading branch information
Showing
8 changed files
with
130 additions
and
24 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,22 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import { Button } from '@pancakeswap/uikit' | ||
|
||
interface TicketsNumberButtonProps { | ||
onClick: () => void | ||
disabled?: boolean | ||
} | ||
|
||
const StyledButton = styled(Button)` | ||
flex-grow: 1; | ||
` | ||
|
||
const TicketsNumberButton: React.FC<TicketsNumberButtonProps> = ({ children, onClick, disabled = false }) => { | ||
return ( | ||
<StyledButton disabled={disabled} scale="xs" mx="2px" p="4px 16px" variant="tertiary" onClick={onClick}> | ||
{children} | ||
</StyledButton> | ||
) | ||
} | ||
|
||
export default TicketsNumberButton |
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,4 @@ | ||
export const TITLE_BG = 'linear-gradient(180deg, #7645D9 0%, #452A7A 100%)' | ||
export const GET_TICKETS_BG = 'linear-gradient(180deg, #7645D9 0%, #5121B1 100%)' | ||
export const FINISHED_ROUNDS_BG = 'linear-gradient(180deg, #CBD7EF 0%, #9A9FD0 100%)' | ||
export const FINISHED_ROUNDS_BG_DARK = 'linear-gradient(180deg, #434575 0%, #66578D 100%)' |
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,57 @@ | ||
import React from 'react' | ||
import { Svg, SvgProps } from '@pancakeswap/uikit' | ||
|
||
const TicketPurchaseCard: React.FC<SvgProps> = (props) => { | ||
return ( | ||
<Svg viewBox="0 0 296 121" {...props}> | ||
<g filter="url(#filter0_dd_ticket_purchase_card)"> | ||
<path d="M4 16C4 7.16344 11.1634 0 20 0H66V113H20C11.1634 113 4 105.837 4 97V16Z" fill="#FFB237" /> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M69.4931 2.94568C68.9511 1.38001 67.6569 0 66 0V10H90V0C88.3431 0 87.0489 1.38001 86.5069 2.94568C85.2868 6.4696 81.9389 9 78 9C74.0611 9 70.7132 6.4696 69.4931 2.94568Z" | ||
fill="#FFB237" | ||
/> | ||
<rect x="66" y="10" width="10" height="93" fill="#FFB237" /> | ||
<path d="M78 103V10" stroke="#FFB237" strokeWidth="4" strokeDasharray="4 4" /> | ||
<rect x="80" y="10" width="10" height="93" fill="#FFB237" /> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M69.4931 110.054C68.9511 111.62 67.6569 113 66 113V103H90V113C88.3431 113 87.0489 111.62 86.5069 110.054C85.2868 106.53 81.9389 104 78 104C74.0611 104 70.7132 106.53 69.4931 110.054Z" | ||
fill="#FFB237" | ||
/> | ||
<path d="M90 0H276C284.837 0 292 7.16344 292 16V97C292 105.837 284.837 113 276 113H90V0Z" fill="#FFB237" /> | ||
</g> | ||
<defs> | ||
<filter | ||
id="filter0_dd_ticket_purchase_card" | ||
x="0" | ||
y="0" | ||
width="296" | ||
height="121" | ||
filterUnits="userSpaceOnUse" | ||
colorInterpolationFilters="sRGB" | ||
> | ||
<feFlood floodOpacity="0" result="BackgroundImageFix" /> | ||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" /> | ||
<feOffset dx="2" dy="2" /> | ||
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 0.686275 0 0 0 0 0 0 0 0 1 0" /> | ||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_ticket_purchase_card" /> | ||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" /> | ||
<feOffset dy="4" /> | ||
<feGaussianBlur stdDeviation="2" /> | ||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" /> | ||
<feBlend | ||
mode="normal" | ||
in2="effect1_dropShadow_ticket_purchase_card" | ||
result="effect2_dropShadow_ticket_purchase_card" | ||
/> | ||
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_ticket_purchase_card" result="shape" /> | ||
</filter> | ||
</defs> | ||
</Svg> | ||
) | ||
} | ||
|
||
export default TicketPurchaseCard |
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,3 @@ | ||
// TODO: Remove with additional imports | ||
// eslint-disable-next-line import/prefer-default-export | ||
export { default as TicketPurchaseCard } from './TicketPurchaseCard' |
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