diff --git a/client/App.jsx b/client/App.jsx index 709fd87..1e95923 100644 --- a/client/App.jsx +++ b/client/App.jsx @@ -2,6 +2,7 @@ import React from 'react'; 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 Sidebar from './layouts/Sidebar'; import StickyFooter from './layouts/StickyFooter'; @@ -12,6 +13,7 @@ const App = () => { + diff --git a/client/Home.jsx b/client/Home.jsx index 9deaeea..7659b39 100644 --- a/client/Home.jsx +++ b/client/Home.jsx @@ -1,6 +1,7 @@ import React from 'react'; import { Link } from 'react-router-dom'; +import BadgeCover from './covers/BadgeCover'; import CenterCover from './covers/CenterCover'; import SidebarCover from './covers/SidebarCover'; import StickyFooterCover from './covers/StickyFooterCover'; @@ -54,6 +55,12 @@ const Home = () => {

Patterns

+
+ + +

Badge

+ +
diff --git a/client/covers/BadgeCover.jsx b/client/covers/BadgeCover.jsx new file mode 100644 index 0000000..314fd61 --- /dev/null +++ b/client/covers/BadgeCover.jsx @@ -0,0 +1,17 @@ +import React from 'react'; + +import Frame from '../placeholders/Frame'; + +const BadgeCover = () => { + return ( + +
+
+ 1 +
+
+ + ); +}; + +export default BadgeCover; diff --git a/client/layouts/Badge.jsx b/client/layouts/Badge.jsx new file mode 100644 index 0000000..acf45f8 --- /dev/null +++ b/client/layouts/Badge.jsx @@ -0,0 +1,53 @@ +import React from 'react'; + +import DetailsLayout from '../DetailsLayout'; +import BrowserFrame from '../placeholders/BrowserFrame'; +import Dot from '../placeholders/Dot'; +import Rectangle from '../placeholders/Rectangle'; +import SampleCode from '../SampleCode'; +import useDocumentTitle from '../useDocumentTitle'; + +const Badge = () => { + useDocumentTitle('CSS Layout ∙ Badge'); + + return ( + +

Badge

+ +
+ 1 +
+
+ } + source={ + + 1 +
+`} +/> + } + /> + + ); +}; + +export default Badge;