@@ -2,6 +2,8 @@ import { rem } from 'polished'
22import { string } from 'prop-types'
33import styled from 'styled-components'
44
5+ import { DESKTOP_SIZE , MOBILE_SIZE } from 'styles/constants'
6+
57const VARIANT = Object . freeze ( {
68 h2 : 'h2' ,
79 h3 : 'h3' ,
@@ -32,12 +34,12 @@ const StyledHeading1 = styled.h1`
3234 letter-spacing: 0rem;
3335 margin: 0;
3436
35- @media only screen and (max-width: 1023px ) {
37+ @media only screen and (max-width: ${ DESKTOP_SIZE } ) {
3638 font-size: ${ rem ( '48px' ) } ;
3739 line-height: ${ rem ( '60px' ) } ;
3840 }
3941
40- @media only screen and (max-width: 413px ) {
42+ @media only screen and (max-width: ${ MOBILE_SIZE } ) {
4143 font-size: ${ rem ( '32px' ) } ;
4244 line-height: ${ rem ( '40px' ) } ;
4345 }
@@ -52,7 +54,7 @@ const StyledHeading2 = styled.h2`
5254 text-transform: uppercase;
5355 margin: 0;
5456
55- @media only screen and (max-width: 413px ) {
57+ @media only screen and (max-width: ${ MOBILE_SIZE } ) {
5658 font-size: ${ rem ( '28px' ) } ;
5759 line-height: ${ rem ( '34px' ) } ;
5860 text-align: center;
@@ -66,7 +68,7 @@ const StyledHeading3 = styled.h3`
6668 line-height: ${ rem ( '24px' ) } ;
6769 margin: 0;
6870
69- @media only screen and (max-width: 413px ) {
71+ @media only screen and (max-width: ${ MOBILE_SIZE } ) {
7072 text-align: center;
7173 }
7274`
0 commit comments