Add Fadable component

This commit is contained in:
Tom Raithel
2017-02-25 23:34:25 +01:00
parent 5e57c9caae
commit 5f20c00bec
9 changed files with 163 additions and 46 deletions

View File

@@ -1,14 +1,15 @@
import React from 'react';
import HeroHeadline from './HeroHeadline';
import QuadrantGrid from './QuadrantGrid';
import Fadeable from './Fadeable';
export default function PageIndex({ items, navigate }) {
export default function PageIndex({ leaving, onLeave, items, navigate }) {
return (
<div>
<Fadeable leaving={leaving} onLeave={onLeave}>
<div className="headline-group">
<HeroHeadline alt="Mar 2017">AOE Technology Radar</HeroHeadline>
</div>
<QuadrantGrid items={items} />
</div>
</Fadeable>
);
}