All files / components/Bio styled.tsx

100% Statements 15/15
50% Branches 2/4
100% Functions 3/3
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77    1x 1x   1x 1x 1x   1x       2x                 1x       1x                   2x                 2x                 1x         1x               1x           1x      
/* eslint-disable no-ternary */
 
import BaseLink from "components/Typography/Link"
import Paragraph from "components/Typography/Paragraph"
import { Theme } from "styles/theme"
import colors from "styles/colors"
import mediaQueries from "styles/mediaQueries"
import styled from "styled-components"
 
export const Section = styled.section`
  background: ${colors.white};
  border: 1px solid ${colors.gallery};
  display: grid;
  font-family: ${({ theme }: { theme: Theme }) => theme.font.family};
  padding: 10px;
  row-gap: 20px;
 
  ${mediaQueries.tablet} {
    padding: 25px;
  }
`
 
export const Image = styled.img`
  width: 80px;
`
 
export const Top = styled.div<{
  $isAvatarCircle?: boolean
  $isShowName?: boolean
}>`
  align-items: center;
  column-gap: 20px;
  display: grid;
  grid-template-columns: 80px 1fr;
 
  ${({ $isShowName }) =>
    $isShowName
      ? ""
      : `
grid-template-columns: auto; 
align-items: start;
justify-items: center;
`}
 
  & img {
    border-radius: ${({ $isAvatarCircle }) => ($isAvatarCircle ? "50%" : "0")};
    width: 80px;
  }
 
  ${mediaQueries.tablet} {
    column-gap: 40px;
  }
`
 
export const NameAndSocialLinks = styled.div`
  display: grid;
  row-gap: 10px;
`
 
export const Name = styled.h4`
  color: ${colors.black};
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 0;
`
 
export const Description = styled(Paragraph)`
  font-size: 16px;
  line-height: 24px;
  text-align: justify;
`
 
export const Link = styled(BaseLink)`
  font-weight: bold;
`