mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-14 21:10:41 +01:00
cleanup
This commit is contained in:
parent
81cf4216ce
commit
95e586e440
15
.github/workflows/lighthouserc.json
vendored
15
.github/workflows/lighthouserc.json
vendored
@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"ci": {
|
|
||||||
"collect": {
|
|
||||||
"numberOfRuns": 3
|
|
||||||
},
|
|
||||||
"assert": {
|
|
||||||
"preset": "lighthouse:recommended",
|
|
||||||
"assertions": {
|
|
||||||
"font-display": "off",
|
|
||||||
"dom-size": "off",
|
|
||||||
"color-contrast": "off"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -4,6 +4,7 @@ import posed, { PoseGroup } from 'react-pose'
|
|||||||
import { fadeIn } from './atoms/Transitions'
|
import { fadeIn } from './atoms/Transitions'
|
||||||
import Typekit from './atoms/Typekit'
|
import Typekit from './atoms/Typekit'
|
||||||
import HostnameCheck from './atoms/HostnameCheck'
|
import HostnameCheck from './atoms/HostnameCheck'
|
||||||
|
import ThemeSwitch from './molecules/ThemeSwitch'
|
||||||
import Header from './organisms/Header'
|
import Header from './organisms/Header'
|
||||||
import Footer from './organisms/Footer'
|
import Footer from './organisms/Footer'
|
||||||
import styles from './Layout.module.css'
|
import styles from './Layout.module.css'
|
||||||
@ -39,6 +40,7 @@ export default function Layout({ children, location }) {
|
|||||||
<>
|
<>
|
||||||
<Typekit />
|
<Typekit />
|
||||||
<HostnameCheck allowedHosts={allowedHosts} />
|
<HostnameCheck allowedHosts={allowedHosts} />
|
||||||
|
<ThemeSwitch />
|
||||||
|
|
||||||
<PoseGroup animateOnMount={process.env.NODE_ENV !== 'test' && true}>
|
<PoseGroup animateOnMount={process.env.NODE_ENV !== 'test' && true}>
|
||||||
<RoutesContainer
|
<RoutesContainer
|
||||||
|
@ -2,7 +2,7 @@ import React from 'react'
|
|||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import Networks from '../molecules/Networks'
|
import Networks from '../molecules/Networks'
|
||||||
import Availability from '../molecules/Availability'
|
import Availability from '../molecules/Availability'
|
||||||
import ThemeSwitch from '../molecules/ThemeSwitch'
|
|
||||||
import LogoUnit from '../molecules/LogoUnit'
|
import LogoUnit from '../molecules/LogoUnit'
|
||||||
import styles from './Header.module.css'
|
import styles from './Header.module.css'
|
||||||
import { useMeta } from '../../hooks/use-meta'
|
import { useMeta } from '../../hooks/use-meta'
|
||||||
@ -16,17 +16,14 @@ export default function Header({ minimal, hide }) {
|
|||||||
const { availability } = useMeta()
|
const { availability } = useMeta()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<header className={minimal ? styles.minimal : styles.header}>
|
||||||
<ThemeSwitch />
|
{!hide && (
|
||||||
<header className={minimal ? styles.minimal : styles.header}>
|
<>
|
||||||
{!hide && (
|
<LogoUnit minimal={minimal} />
|
||||||
<>
|
<Networks hide={minimal} />
|
||||||
<LogoUnit minimal={minimal} />
|
<Availability hide={minimal && !availability.status} />
|
||||||
<Networks hide={minimal} />
|
</>
|
||||||
<Availability hide={minimal && !availability.status} />
|
)}
|
||||||
</>
|
</header>
|
||||||
)}
|
|
||||||
</header>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user