|
|
|
|
@ -1,10 +1,48 @@ |
|
|
|
|
import styled from 'styled-components/macro' |
|
|
|
|
|
|
|
|
|
export const SubscriptionsBlock = styled.div<{forAdditionalTitle?: boolean}>` |
|
|
|
|
import { devices } from 'config/devices' |
|
|
|
|
|
|
|
|
|
type SubscriptionsBlockProps = { |
|
|
|
|
forAdditionalTitle?: boolean, |
|
|
|
|
isSubsStep?: boolean, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const SubscriptionList = styled.ul` |
|
|
|
|
display: flex; |
|
|
|
|
margin-top: 40px; |
|
|
|
|
|
|
|
|
|
@media${devices.laptop} { |
|
|
|
|
margin-top: 27px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@media${devices.tablet} { |
|
|
|
|
margin-top: 30px; |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const SubscriptionsBlock = styled.div<SubscriptionsBlockProps>` |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-top: ${({ forAdditionalTitle }) => (forAdditionalTitle ? '75px' : '80px')}; |
|
|
|
|
|
|
|
|
|
@media${devices.laptop} { |
|
|
|
|
margin-top: ${({ forAdditionalTitle, isSubsStep }) => { |
|
|
|
|
if (forAdditionalTitle) return '42px' |
|
|
|
|
if (isSubsStep) return '84px' |
|
|
|
|
return '80px' |
|
|
|
|
}}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@media${devices.tablet} { |
|
|
|
|
margin-top: ${({ forAdditionalTitle, isSubsStep }) => { |
|
|
|
|
if (forAdditionalTitle) return '42px' |
|
|
|
|
if (isSubsStep) return '50px' |
|
|
|
|
return '80px' |
|
|
|
|
}}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const BlockTitle = styled.span` |
|
|
|
|
@ -15,16 +53,25 @@ export const BlockTitle = styled.span` |
|
|
|
|
line-height: 24px; |
|
|
|
|
color: ${({ theme: { colors } }) => colors.text}; |
|
|
|
|
transition: color 0.3s ease-in-out; |
|
|
|
|
|
|
|
|
|
@media${devices.tablet} { |
|
|
|
|
font-size: 24px; |
|
|
|
|
font-weight: 600px; |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const AdditionalBlockTitle = styled(BlockTitle)` |
|
|
|
|
font-size: 32px; |
|
|
|
|
margin-bottom: 40px; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const SubscriptionList = styled.ul` |
|
|
|
|
display: flex; |
|
|
|
|
margin-top: 40px; |
|
|
|
|
@media${devices.laptop} { |
|
|
|
|
margin-bottom: 30px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@media${devices.tablet} { |
|
|
|
|
font-size: 24px; |
|
|
|
|
font-weight: 600px; |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const SubscriptionListItem = styled.li`` |
|
|
|
|
@ -40,6 +87,15 @@ export const SubscriptionWrapper = styled.div` |
|
|
|
|
background: #3F3F3F; |
|
|
|
|
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4); |
|
|
|
|
border-radius: 2px; |
|
|
|
|
|
|
|
|
|
@media${devices.tablet} { |
|
|
|
|
padding: 0; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: center; |
|
|
|
|
width: 163px; |
|
|
|
|
height: 100px; |
|
|
|
|
border-radius: 10px; |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const SubscriptionTitle = styled.span` |
|
|
|
|
@ -49,18 +105,21 @@ export const SubscriptionTitle = styled.span` |
|
|
|
|
line-height: 21px; |
|
|
|
|
color: ${({ theme: { colors } }) => colors.text}; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
type TRow = { |
|
|
|
|
bottom?: number, |
|
|
|
|
left?: number, |
|
|
|
|
type RowProps = { |
|
|
|
|
isPriceRow?: boolean, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const Row = styled.div<TRow>` |
|
|
|
|
export const Row = styled.div<RowProps>` |
|
|
|
|
position: absolute; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
left: ${({ left }) => left}px; |
|
|
|
|
bottom: ${({ bottom }) => bottom}px; |
|
|
|
|
left: ${({ isPriceRow }) => (isPriceRow ? '70px' : '')}; |
|
|
|
|
bottom: ${({ isPriceRow }) => (isPriceRow ? '100px' : '')}; |
|
|
|
|
|
|
|
|
|
@media${devices.tablet} { |
|
|
|
|
position: static; |
|
|
|
|
margin-top: ${({ isPriceRow }) => (isPriceRow ? '9px' : '')}; |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const PricesBlock = styled.div` |
|
|
|
|
@ -68,6 +127,12 @@ export const PricesBlock = styled.div` |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
|
|
@media${devices.mobile} { |
|
|
|
|
max-width: 370px; |
|
|
|
|
overflow-x: auto; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const TotalInfoBlock = styled.div` |
|
|
|
|
@ -77,6 +142,13 @@ export const TotalInfoBlock = styled.div` |
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
top: 4px; |
|
|
|
|
left: 294px; |
|
|
|
|
|
|
|
|
|
@media${devices.tablet} { |
|
|
|
|
position: static; |
|
|
|
|
order: -1; |
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
width: 100%; |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const TotalInfoText = styled.span` |
|
|
|
|
|