1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-01-03 18:35:00 +01:00

updates and refactoring

This commit is contained in:
Matthias Kretschmann 2018-08-16 16:00:42 +02:00
parent 14f6d4288f
commit bdd0624af0
Signed by: m
GPG Key ID: 606EEEF3C479A91F
7 changed files with 7 additions and 11 deletions

View File

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

View File

@ -21,14 +21,14 @@
}, },
"dependencies": { "dependencies": {
"file-saver": "^1.3.8", "file-saver": "^1.3.8",
"gatsby": "^2.0.0-beta.105", "gatsby": "^2.0.0-beta.106",
"gatsby-image": "^2.0.0-beta.8", "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",
"gatsby-plugin-react-helmet": "^3.0.0-beta.4", "gatsby-plugin-react-helmet": "^3.0.0-beta.4",
"gatsby-plugin-sass": "^2.0.0-beta.10", "gatsby-plugin-sass": "^2.0.0-beta.10",
"gatsby-plugin-sharp": "^2.0.0-beta.7", "gatsby-plugin-sharp": "^2.0.0-beta.8",
"gatsby-plugin-sitemap": "^2.0.0-beta.4", "gatsby-plugin-sitemap": "^2.0.0-beta.4",
"gatsby-source-filesystem": "^2.0.1-beta.10", "gatsby-source-filesystem": "^2.0.1-beta.10",
"gatsby-transformer-json": "^2.1.1-beta.5", "gatsby-transformer-json": "^2.1.1-beta.5",

View File

@ -4,9 +4,7 @@ import Logo from '../svg/Logo'
import styles from './LogoUnit.module.scss' import styles from './LogoUnit.module.scss'
const LogoUnit = ({ meta, minimal }) => { const LogoUnit = ({ meta, minimal }) => {
const classes = minimal const classes = minimal ? styles.minimal : styles.logounit
? `${styles.logounit} ${styles.minimal}`
: styles.logounit
return ( return (
<div className={classes}> <div className={classes}>

View File

@ -43,6 +43,7 @@
} }
.minimal { .minimal {
composes: logounit;
transform: scale(.7); transform: scale(.7);
transform-origin: top center; transform-origin: top center;
transform-box: border-box; transform-box: border-box;

View File

@ -16,11 +16,7 @@ class Header extends PureComponent {
const { isHomepage, meta } = this.props const { isHomepage, meta } = this.props
return ( return (
<header <header className={isHomepage ? styles.header : styles.minimal}>
className={
isHomepage ? `${styles.header}` : `${styles.header} ${styles.minimal}`
}
>
<ThemeSwitch /> <ThemeSwitch />
<Link className={styles.header__link} to={'/'}> <Link className={styles.header__link} to={'/'}>

View File

@ -19,6 +19,7 @@
} }
.minimal { .minimal {
composes: header;
height: auto; height: auto;
padding-top: $spacer * 2; padding-top: $spacer * 2;
padding-bottom: 0; padding-bottom: 0;