diff --git a/.gitignore b/.gitignore index 87118f4..6a71588 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ - +.vscode # created by git-ignore # Logs logs diff --git a/components/HeroUnit.js b/components/HeroUnit.js index 8557b7d..ccaee4b 100644 --- a/components/HeroUnit.js +++ b/components/HeroUnit.js @@ -1,6 +1,7 @@ import DownArrowIcon from '../resources/down-arrow-icon.svg' import NavigationBar from './NavigationBar' import ReactBKKLogo from './ReactBKKLogo' +import SimpleCrossfadeImages from './SimpleCrossfadeImages' import Scroll from 'react-scroll' var Link = Scroll.Link @@ -8,6 +9,7 @@ var Link = Scroll.Link export default function HeroUnit () { return (
+
diff --git a/components/SimpleCrossfadeImages.js b/components/SimpleCrossfadeImages.js new file mode 100644 index 0000000..8312ffa --- /dev/null +++ b/components/SimpleCrossfadeImages.js @@ -0,0 +1,53 @@ +// Simple crossfade images +// credit: http://css3.bradshawenterprises.com/cfimg/ + +const images = [ + 'static/hero-bg.jpg', + 'static/hero-bg-2.jpg', + 'static/hero-bg-3.jpg' +] + +export default () => ( +
+ {images.map(image => { + return
+ })} + +
) diff --git a/static/hero-bg-2.jpg b/static/hero-bg-2.jpg new file mode 100644 index 0000000..31ed679 Binary files /dev/null and b/static/hero-bg-2.jpg differ diff --git a/static/hero-bg-3.jpg b/static/hero-bg-3.jpg new file mode 100644 index 0000000..34fc9bc Binary files /dev/null and b/static/hero-bg-3.jpg differ diff --git a/static/hero-bg.jpg b/static/hero-bg.jpg index 9a34bd5..ad1ec0f 100644 Binary files a/static/hero-bg.jpg and b/static/hero-bg.jpg differ