From 1344c5fd8b6dc1e66563f0fa3b02695a07b2f1dc Mon Sep 17 00:00:00 2001 From: Amio Date: Fri, 19 Oct 2018 17:37:25 +0800 Subject: [PATCH] web: add footer --- components/footer.js | 91 ++++++++++++++++++++++++++++++++++++ components/gallery-layout.js | 23 +++++++++ pages/gallery/static.js | 16 ++----- 3 files changed, 118 insertions(+), 12 deletions(-) create mode 100644 components/footer.js create mode 100644 components/gallery-layout.js diff --git a/components/footer.js b/components/footer.js new file mode 100644 index 0000000..5c90650 --- /dev/null +++ b/components/footer.js @@ -0,0 +1,91 @@ +import Link from 'next/link' + +export default () => ( + +) diff --git a/components/gallery-layout.js b/components/gallery-layout.js new file mode 100644 index 0000000..d854fb4 --- /dev/null +++ b/components/gallery-layout.js @@ -0,0 +1,23 @@ +import React from 'react' +import GalleryHeader from './gallery-header.js' +import Footer from './footer.js' + +export default class extends React.Component { + render () { + const { tab, children } = this.props + return ( +
+ +
+ {children} +
+
+ +
+ ) + } +} diff --git a/pages/gallery/static.js b/pages/gallery/static.js index 556181a..52359e7 100644 --- a/pages/gallery/static.js +++ b/pages/gallery/static.js @@ -1,22 +1,14 @@ import React from 'react' -import GalleryHeader from '../../components/gallery-header.js' +import GalleryLayout from '../../components/gallery-layout.js' import BadgeExamples from '../../components/badge-examples.js' import staticExamples from '../../libs/examples-static.js' export default class Gallery extends React.Component { render () { return ( -
- -
- -
- -
+ + + ) } }