1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-02-14 21:10:41 +01:00
This commit is contained in:
Matthias Kretschmann 2018-08-16 00:14:40 +02:00
parent cf083ce21b
commit 14f6d4288f
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 16 additions and 39 deletions

View File

@ -1,6 +1,4 @@
exports.onInitialClientRender = () => { require('./src/styles/base.scss')
require('./src/styles/base.scss')
}
exports.onClientEntry = () => { exports.onClientEntry = () => {
// IntersectionObserver polyfill for gatsby-image (Safari, IE) // IntersectionObserver polyfill for gatsby-image (Safari, IE)

View File

@ -1,25 +1,5 @@
const path = require('path') const path = require('path')
// Intersection Observer polyfill
// requires `npm install intersection-observer`
// https://github.com/gatsbyjs/gatsby/issues/2288#issuecomment-334467821
// exports.onCreateWebpackConfig = ({ actions, loaders, stage }) => {
// const { setWebpackConfig } = actions
// if (stage === 'build-html') {
// const nullRule = {
// test: /intersection-observer/,
// use: [loaders.null()]
// }
// setWebpackConfig({
// module: {
// rules: [nullRule]
// }
// })
// }
// }
// //
// Create project pages from projects.yml // Create project pages from projects.yml
// //

View File

@ -22,7 +22,7 @@
"dependencies": { "dependencies": {
"file-saver": "^1.3.8", "file-saver": "^1.3.8",
"gatsby": "^2.0.0-beta.105", "gatsby": "^2.0.0-beta.105",
"gatsby-image": "^2.0.0-beta.7", "gatsby-image": "^2.0.0-beta.8",
"gatsby-plugin-manifest": "^2.0.2-beta.6", "gatsby-plugin-manifest": "^2.0.2-beta.6",
"gatsby-plugin-matomo": "^0.5.0", "gatsby-plugin-matomo": "^0.5.0",
"gatsby-plugin-offline": "^2.0.0-beta.9", "gatsby-plugin-offline": "^2.0.0-beta.9",

View File

@ -7,8 +7,6 @@ import Footer from './organisms/Footer'
import styles from './Layout.module.scss' import styles from './Layout.module.scss'
const Layout = ({ children, location }) => { const Layout = ({ children, location }) => {
const isHomepage = location.pathname === '/'
return ( return (
<StaticQuery <StaticQuery
query={graphql` query={graphql`
@ -54,6 +52,7 @@ const Layout = ({ children, location }) => {
`} `}
render={data => { render={data => {
const meta = data.dataYaml const meta = data.dataYaml
const isHomepage = location.pathname === '/'
return ( return (
<Fragment> <Fragment>

View File

@ -35,7 +35,7 @@ class Availability extends PureComponent {
className={ className={
status status
? `${styles.availability} ${styles.available}` ? `${styles.availability} ${styles.available}`
: `${styles.availability} ${styles.unavailable}` : `${styles.availability}`
} }
> >
<p <p

View File

@ -18,19 +18,19 @@
margin-bottom: 0; margin-bottom: 0;
} }
&.available {
background: rgba($brand-light, .8);
color: $brand-main;
position: fixed;
bottom: $spacer;
:global(.dark) & {
background: rgba($body-background-color--dark, .8);
color: $brand-light;
}
}
a { a {
border-bottom: 1px solid rgba($brand-cyan, .4); border-bottom: 1px solid rgba($brand-cyan, .4);
} }
} }
.available {
background: rgba($brand-light, .8);
color: $brand-main;
position: fixed;
bottom: $spacer;
:global(.dark) & {
background: rgba($body-background-color--dark, .8);
color: $brand-light;
}
}