Newer
Older
import React from 'react'
import styled from 'styled-components'
import Footer from './Footer'
import Header from './Header'
const Main: React.FC<BaseProps> = ({ children, className }) => (
<main className={className}>
<Header />
<div className='container'>{children}</div>
<Footer />
</main>
)
font-size: ${({ theme }: BaseProps) => theme.fontSize};
line-height: ${({ theme }: BaseProps) => theme.lineHeight};
color: ${({ theme }: BaseProps) => theme.mainTextColor};
a {
color: ${({ theme }: BaseProps) => theme.fadedTextColor};
transition: ${({ theme }: BaseProps) => theme.transition};
}
a:hover {
color: ${({ theme }: BaseProps) => theme.mainTextColor};
}
h1 {
margin: 0;
margin-bottom: 0.5rem;
font-size: ${({ theme }: BaseProps) => theme.titleFontSize};
line-height: ${({ theme }: BaseProps) => theme.lineHeight};
font-weight: bold;
}