From f6efab44475e7f8f43247cd482a827c0e3860a42 Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Sun, 17 Nov 2019 20:44:12 +0700 Subject: [PATCH] Add breadcrumb --- client/App.jsx | 2 + client/Home.jsx | 47 +++++++++++++---------- client/layouts/breadcrumb/Cover.jsx | 22 +++++++++++ client/layouts/breadcrumb/Details.jsx | 55 +++++++++++++++++++++++++++ 4 files changed, 106 insertions(+), 20 deletions(-) create mode 100644 client/layouts/breadcrumb/Cover.jsx create mode 100644 client/layouts/breadcrumb/Details.jsx diff --git a/client/App.jsx b/client/App.jsx index 974d1d8..30eefaa 100644 --- a/client/App.jsx +++ b/client/App.jsx @@ -3,6 +3,7 @@ import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import Home from './Home'; import Badge from './layouts/badge/Details'; +import Breadcrumb from './layouts/breadcrumb/Details'; import ButtonWithIcon from './layouts/button-with-icon/Details'; import Card from './layouts/card/Details'; import Centering from './layouts/centering/Details'; @@ -29,6 +30,7 @@ const App = () => { + diff --git a/client/Home.jsx b/client/Home.jsx index 2012f13..6c1b3e9 100644 --- a/client/Home.jsx +++ b/client/Home.jsx @@ -2,6 +2,7 @@ import React from 'react'; import { Link } from 'react-router-dom'; import BadgeCover from './layouts/badge/Cover'; +import BreadcrumbCover from './layouts/breadcrumb/Cover'; import ButtonWithIconCover from './layouts/button-with-icon/Cover'; import CardCover from './layouts/card/Cover'; import CenterCover from './layouts/centering/Cover'; @@ -50,31 +51,31 @@ const Home = () => {
-

Holy grail

+

Holy grail

-

Sidebar

+

Sidebar

-

Split screen

+

Split screen

-

Sticky footer

+

Sticky footer

-

Sticky header

+

Sticky header

@@ -85,91 +86,97 @@ const Home = () => {
-

Badge

+

Badge

+ +
+
+ + +

Breadcrumb

-

Button with icon

+

Button with icon

-

Card

+

Card

-

Centering

+

Centering

-

Fixed at corner

+

Fixed at corner

-

Input addon

+

Input addon

-

Media object

+

Media object

-

Menu

+

Menu

-

Modal

+

Modal

-

Notification

+

Notification

-

Pagination

+

Pagination

-

Previous next buttons

+

Previous next buttons

-

Progress bar

+

Progress bar

-

Same height columns

+

Same height columns

-

Stepper input

+

Stepper input

diff --git a/client/layouts/breadcrumb/Cover.jsx b/client/layouts/breadcrumb/Cover.jsx new file mode 100644 index 0000000..f1b9a99 --- /dev/null +++ b/client/layouts/breadcrumb/Cover.jsx @@ -0,0 +1,22 @@ +import React from 'react'; + +import Frame from '../../placeholders/Frame'; +import Rectangle from '../../placeholders/Rectangle'; + +const Cover = () => { + return ( + +
+
+
+
/
+
+
/
+
+
+
+ + ); +}; + +export default Cover; diff --git a/client/layouts/breadcrumb/Details.jsx b/client/layouts/breadcrumb/Details.jsx new file mode 100644 index 0000000..abdff4b --- /dev/null +++ b/client/layouts/breadcrumb/Details.jsx @@ -0,0 +1,55 @@ +import React from 'react'; + +import DetailsLayout from '../../DetailsLayout'; +import BrowserFrame from '../../placeholders/BrowserFrame'; +import Rectangle from '../../placeholders/Rectangle'; +import SampleCode from '../../SampleCode'; +import useDocumentTitle from '../../hooks/useDocumentTitle'; + +const Details = () => { + useDocumentTitle('CSS Layout ∙ Breadcrumb'); + + return ( + +

Breadcrumb

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