Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import { styled } from 'styleh-components'
import { Heading } from '@skava/ui/dist/components/atoms/Text'
import { Link } from '@skava/ui/dist/components/atoms/Link'
import { Image, ImageElement } from '@skava/ui/dist/components/atoms/Image'

const StyledImage = styled(Image) `
  width: auto;
  display: flex;
  align-items: center;
  ${ImageElement} {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    position: relative;
  }
`

const StyledLink = styled(Link) `
  width: rem(160);
  height: rem(44);
  background: #1b75bc;
  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(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 Wrapper = styled.div ``

export {
  StyledImage,
  StyledLink,
  StyledTitle,
  ButtonWrapper,
  TitleWrapper,
  LogoWrapper,
  BannerWrapper,
  Wrapper,
}