mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-03 10:25:00 +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 Typekit from './atoms/Typekit'
|
||||
import HostnameCheck from './atoms/HostnameCheck'
|
||||
import ThemeSwitch from './molecules/ThemeSwitch'
|
||||
import Header from './organisms/Header'
|
||||
import Footer from './organisms/Footer'
|
||||
import styles from './Layout.module.css'
|
||||
@ -39,6 +40,7 @@ export default function Layout({ children, location }) {
|
||||
<>
|
||||
<Typekit />
|
||||
<HostnameCheck allowedHosts={allowedHosts} />
|
||||
<ThemeSwitch />
|
||||
|
||||
<PoseGroup animateOnMount={process.env.NODE_ENV !== 'test' && true}>
|
||||
<RoutesContainer
|
||||
|
@ -2,7 +2,7 @@ import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import Networks from '../molecules/Networks'
|
||||
import Availability from '../molecules/Availability'
|
||||
import ThemeSwitch from '../molecules/ThemeSwitch'
|
||||
|
||||
import LogoUnit from '../molecules/LogoUnit'
|
||||
import styles from './Header.module.css'
|
||||
import { useMeta } from '../../hooks/use-meta'
|
||||
@ -16,8 +16,6 @@ export default function Header({ minimal, hide }) {
|
||||
const { availability } = useMeta()
|
||||
|
||||
return (
|
||||
<>
|
||||
<ThemeSwitch />
|
||||
<header className={minimal ? styles.minimal : styles.header}>
|
||||
{!hide && (
|
||||
<>
|
||||
@ -27,6 +25,5 @@ export default function Header({ minimal, hide }) {
|
||||
</>
|
||||
)}
|
||||
</header>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user