1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00

content fadein

This commit is contained in:
Matthias Kretschmann 2018-03-21 18:56:01 +01:00
parent 40ea740f40
commit 45129185cb
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 39 additions and 10 deletions

View File

@ -3,20 +3,21 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"node-sass-chokidar": "^1.1.0",
"node-sass-chokidar": "^1.2.0",
"npm-run-all": "^4.1.2",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-router-dom": "^4.2.2",
"react-scripts": "1.1.1"
"react-scripts": "1.1.1",
"react-transition-group": "^2.2.1"
},
"devDependencies": {
"babel-eslint": "^8.2.2",
"eslint": "^4.19.0",
"eslint-plugin-react": "^7.7.0",
"jest-cli": "^22.1.4",
"stylelint": "^9.0.0",
"stylelint-config-standard": "^18.1.0"
"jest-cli": "^22.4.3",
"stylelint": "^9.1.3",
"stylelint-config-standard": "^18.2.0"
},
"scripts": {
"lint:js": "eslint ./{src,public}/**/*.js",

View File

@ -1,12 +1,15 @@
import React from 'react'
import Header from './components/molecules/Header.js'
import FadeIn from './components/atoms/FadeIn'
import Routes from './Routes'
const App = () => (
<FadeIn>
<div className="app">
<Header />
<Routes />
</div>
</FadeIn>
)
export default App

View File

@ -0,0 +1,14 @@
import React from 'react'
import { CSSTransition } from 'react-transition-group'
import './FadeIn.css'
const FadeIn = (props) => (
<CSSTransition
{...props}
classNames="fadein"
appear={true}
in={true}
timeout={400} />
)
export default FadeIn

View File

@ -0,0 +1,8 @@
.fadein-appear {
opacity: .01;
&.fadein-appear-active {
opacity: 1;
transition: opacity 400ms ease-in;
}
}

View File

@ -2,7 +2,10 @@ import React from 'react'
const Home = () => (
<main className="screen screen--home">
<a href="https://kremalicious.com">Blog</a>
<a href="https://github.com/kremalicious">GitHub</a>
<a href="https://dribbble.com/kremalicious">Dribbble</a>
<a href="https://twitter.com/kremalicious">Twitter</a>
</main>
)