mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-21 01:39:53 +01:00
load in layout
This commit is contained in:
parent
61c46636df
commit
d97fa8bb2e
@ -3,6 +3,7 @@ import PropTypes from 'prop-types'
|
||||
import posed, { PoseGroup } from 'react-pose'
|
||||
import { fadeIn } from './atoms/Transitions'
|
||||
import Typekit from './atoms/Typekit'
|
||||
import HostnameCheck from './atoms/HostnameCheck'
|
||||
import Header from './organisms/Header'
|
||||
import Footer from './organisms/Footer'
|
||||
import styles from './Layout.module.scss'
|
||||
@ -29,6 +30,7 @@ export default class Layout extends PureComponent {
|
||||
return (
|
||||
<>
|
||||
<Typekit />
|
||||
<HostnameCheck />
|
||||
|
||||
<PoseGroup animateOnMount={true}>
|
||||
<RoutesContainer
|
||||
|
@ -5,7 +5,6 @@ import Networks from '../molecules/Networks'
|
||||
import Availability from '../molecules/Availability'
|
||||
import ThemeSwitch from '../molecules/ThemeSwitch'
|
||||
import LogoUnit from '../molecules/LogoUnit'
|
||||
import HostnameCheck from '../atoms/HostnameCheck'
|
||||
import styles from './Header.module.scss'
|
||||
|
||||
const query = graphql`
|
||||
@ -33,20 +32,17 @@ export default class Header extends PureComponent {
|
||||
const meta = data.dataYaml
|
||||
|
||||
return (
|
||||
<>
|
||||
<HostnameCheck />
|
||||
<header className={minimal ? styles.minimal : styles.header}>
|
||||
<ThemeSwitch />
|
||||
<header className={minimal ? styles.minimal : styles.header}>
|
||||
<ThemeSwitch />
|
||||
|
||||
<Link className={styles.header__link} to={'/'}>
|
||||
<LogoUnit minimal={minimal} />
|
||||
</Link>
|
||||
<Link className={styles.header__link} to={'/'}>
|
||||
<LogoUnit minimal={minimal} />
|
||||
</Link>
|
||||
|
||||
<Networks hide={minimal} />
|
||||
<Networks hide={minimal} />
|
||||
|
||||
<Availability hide={minimal && !meta.availability.status} />
|
||||
</header>
|
||||
</>
|
||||
<Availability hide={minimal && !meta.availability.status} />
|
||||
</header>
|
||||
)
|
||||
}}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user