From 724222053aa7a4f70410c2db8e2f3c7f04941fbc Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Tue, 26 Nov 2019 09:27:55 +0700 Subject: [PATCH] Tweak homepage --- client/App.tsx | 2 ++ client/Explore.tsx | 80 +++++++++++++++++++++++++++++++++++++++++++ client/Home.tsx | 84 +++++++++++++++++++++++++++++++--------------- 3 files changed, 139 insertions(+), 27 deletions(-) create mode 100644 client/Explore.tsx diff --git a/client/App.tsx b/client/App.tsx index c124daa..b145361 100644 --- a/client/App.tsx +++ b/client/App.tsx @@ -4,6 +4,7 @@ import { BrowserRouter as Router, Route, Switch as RouteSwitch } from 'react-rou import './index.css'; import Pattern from './constants/Pattern'; +import Explore from './Explore'; import Home from './Home'; import DetailsLoader from './loaders/DetailsLoader'; @@ -12,6 +13,7 @@ const App = () => { + diff --git a/client/Explore.tsx b/client/Explore.tsx new file mode 100644 index 0000000..0dfcad3 --- /dev/null +++ b/client/Explore.tsx @@ -0,0 +1,80 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; + +import CoverCard from './components/CoverCard'; +import Heading from './components/Heading'; +import Pattern from './constants/Pattern'; +import useDocumentTitle from './hooks/useDocumentTitle'; +import Layout from './layouts/Layout'; + +const Home = () => { + useDocumentTitle('CSS Layout ∙ Explore'); + + return ( + +
+ CSS Layout +
+
+

Explore

+ +

Here is the collection of patterns

+ +
+ + +
+ + + + + +
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ ); +}; + +export default Home; diff --git a/client/Home.tsx b/client/Home.tsx index d95b9d5..704974e 100644 --- a/client/Home.tsx +++ b/client/Home.tsx @@ -1,7 +1,7 @@ import React from 'react'; +import { Link } from 'react-router-dom'; import CoverCard from './components/CoverCard'; -import Heading from './components/Heading'; import Pattern from './constants/Pattern'; import useDocumentTitle from './hooks/useDocumentTitle'; import Layout from './layouts/Layout'; @@ -20,7 +20,16 @@ const Home = () => { CSS Layout -

+

a collection of popular layouts and patterns made with CSS

@@ -54,22 +63,57 @@ const Home = () => { -
- - -
+
+
+
+ 50+ patterns +
+ + Explore the collection + +
+
-
-
- -
- - -
@@ -90,20 +134,6 @@ const Home = () => { - - - - - - - - - - - - - -