From 365808afccaec19d8dc45c55b25180de4a21b97b Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Sat, 16 Nov 2019 23:48:22 +0700 Subject: [PATCH] Add holy grail layout --- client/App.jsx | 2 + client/layouts/HolyGrail.jsx | 87 ++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 client/layouts/HolyGrail.jsx diff --git a/client/App.jsx b/client/App.jsx index bf74ead..8917c4b 100644 --- a/client/App.jsx +++ b/client/App.jsx @@ -4,6 +4,7 @@ import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import Home from './Home'; import Badge from './layouts/Badge'; import Centering from './layouts/Centering'; +import HolyGrail from './layouts/HolyGrail'; import InputAddon from './layouts/InputAddon'; import MediaObject from './layouts/MediaObject'; import Sidebar from './layouts/Sidebar'; @@ -18,6 +19,7 @@ const App = () => { + diff --git a/client/layouts/HolyGrail.jsx b/client/layouts/HolyGrail.jsx new file mode 100644 index 0000000..f11137d --- /dev/null +++ b/client/layouts/HolyGrail.jsx @@ -0,0 +1,87 @@ +import React from 'react'; + +import DetailsLayout from '../DetailsLayout'; +import Block from '../placeholders/Block'; +import BrowserFrame from '../placeholders/BrowserFrame'; +import Rectangle from '../placeholders/Rectangle'; +import SampleCode from '../SampleCode'; +import useDocumentTitle from '../useDocumentTitle'; + +const HolyGrail = () => { + useDocumentTitle('CSS Layout ∙ Holy grail'); + + return ( + +

Holy grail

+ +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+
+ + } + source={ + +
+ ... +
+
+ + + + +
+ ... +
+ + + +
+ + +`} +/> + } + /> +
+ ); +}; + +export default HolyGrail;