diff --git a/client/App.jsx b/client/App.jsx index ac619ab..53134a2 100644 --- a/client/App.jsx +++ b/client/App.jsx @@ -2,12 +2,14 @@ import React from 'react'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import Home from './Home'; +import Centering from './layouts/Centering'; const App = () => { return ( + ); diff --git a/client/DetailsLayout.jsx b/client/DetailsLayout.jsx new file mode 100644 index 0000000..2f6e1b8 --- /dev/null +++ b/client/DetailsLayout.jsx @@ -0,0 +1,22 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; + +import Layout from './Layout'; + +const DetailsLayout = ({ name, children }) => { + return ( + +
+ Home +
/
+
{name}
+
+ +
+ {children} +
+
+ ); +}; + +export default DetailsLayout; diff --git a/client/Home.jsx b/client/Home.jsx index a3af568..f7063b5 100644 --- a/client/Home.jsx +++ b/client/Home.jsx @@ -11,9 +11,9 @@ const Home = () => {
- + -

Center

+

Centering

diff --git a/client/layouts/Centering.jsx b/client/layouts/Centering.jsx new file mode 100644 index 0000000..2ed71a4 --- /dev/null +++ b/client/layouts/Centering.jsx @@ -0,0 +1,18 @@ +import React from 'react'; + +import DetailsLayout from '../DetailsLayout'; +import BrowserFrame from '../placeholders/BrowserFrame'; + +const Centering = () => { + return ( + + +
+
CENTER
+
+
+
+ ); +}; + +export default Centering; diff --git a/client/placeholders/BrowserFrame.jsx b/client/placeholders/BrowserFrame.jsx new file mode 100644 index 0000000..2691ed6 --- /dev/null +++ b/client/placeholders/BrowserFrame.jsx @@ -0,0 +1,18 @@ +import React from 'react'; + +const BrowserFrame = ({ children }) => { + return ( +
+
+
+
+
+
+
+ {children} +
+
+ ); +}; + +export default BrowserFrame;