Repository URL to install this package:
|
Version:
2.0.17 ▾
|
import { styled } from 'styleh-components'
import { Heading } from '@skava/ui/dist/components/atoms/Text'
import { Link } from '@skava/ui/dist/components/atoms/Link'
import { LogoIcon } from '@skava/ui/dist/components/atoms/Icons'
import { Image, ImageElement } from '@skava/ui/dist/components/atoms/Image'
const StyledImage = styled.withComponent(Image)`
width: auto;
display: flex;
align-items: center;
${ImageElement} {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
position: relative;
}
`
const StyledLink = styled.withComponent(Link)`
width: rem(160);
height: rem(44);
background: #00a0db;
margin-right: rem(24);
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
border-radius: rem(4);
text-decoration: none;
@phone-or-smaller() {
width: rem(120);
}
`
const StyledTitle = styled.withComponent(Heading)`
font-size: rem(24);
text-align: center;
margin: 0;
@tablet-or-smaller() {
font-size: 1rem;
}
@phone-or-smaller() {
font-size: rem(14);
text-align: left;
}
`
const ButtonWrapper = styled.div`
margin-right: rem(24);
max-width: rem(160);
@phone-or-smaller() {
margin-right: rem(10);
}
`
const TitleWrapper = styled.div`
margin: 0 rem(20);
flex: 1;
@phone-or-smaller() {
margin-left: 0;
}
`
const LogoWrapper = styled.div`
flex-wrap: wrap;
margin-left: rem(24);
flex: 0 0 20%;
height: 100%;
display: flex;
justify-content: center;
@phone-or-smaller() {
display: none;
}
`
const BannerWrapper = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
padding: rem(10);
height: rem(120);
background: url(${props => props.backgroundImage}) repeat center center/cover
${props => (props.backgroundColor ? props.backgroundColor : '#cccccc')};
@tablet-or-smaller() {
height: rem(75);
}
`
const RedLogo = styled.withComponent(LogoIcon)`
g #logo {
fill: red;
}
g #version {
fill: white;
}
`
const Wrapper = styled.div``
export {
StyledImage,
RedLogo,
StyledLink,
StyledTitle,
ButtonWrapper,
TitleWrapper,
LogoWrapper,
BannerWrapper,
Wrapper,
}