diff --git a/client/App.jsx b/client/App.jsx index c11643c..5af7e79 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/Details'; import ButtonWithIcon from './layouts/button-with-icon/Details'; +import Card from './layouts/card/Details'; import Centering from './layouts/centering/Details'; import FixedAtCorner from './layouts/fixed-at-corner/Details'; import HolyGrail from './layouts/holy-grail/Details'; @@ -26,6 +27,7 @@ const App = () => { + diff --git a/client/Home.jsx b/client/Home.jsx index 07132c3..3475bd0 100644 --- a/client/Home.jsx +++ b/client/Home.jsx @@ -3,6 +3,7 @@ import { Link } from 'react-router-dom'; import BadgeCover from './layouts/badge/Cover'; import ButtonWithIconCover from './layouts/button-with-icon/Cover'; +import CardCover from './layouts/card/Cover'; import CenterCover from './layouts/centering/Cover'; import FixedAtCornerCover from './layouts/fixed-at-corner/Cover'; import HolyGrailCover from './layouts/holy-grail/Cover'; @@ -90,6 +91,12 @@ const Home = () => {

Button with icon

+
+ + +

Card

+ +
diff --git a/client/layouts/card/Cover.jsx b/client/layouts/card/Cover.jsx new file mode 100644 index 0000000..c85e38c --- /dev/null +++ b/client/layouts/card/Cover.jsx @@ -0,0 +1,28 @@ +import React from 'react'; + +import Frame from '../../placeholders/Frame'; +import Line from '../../placeholders/Line'; +import Rectangle from '../../placeholders/Rectangle'; + +const Cover = () => { + return ( + +
+
+ +
+
+
+
+
+
+
+ +
+
+
+ + ); +}; + +export default Cover; diff --git a/client/layouts/card/Details.jsx b/client/layouts/card/Details.jsx new file mode 100644 index 0000000..84287a4 --- /dev/null +++ b/client/layouts/card/Details.jsx @@ -0,0 +1,63 @@ +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 '../../hooks/useDocumentTitle'; + +const Details = () => { + useDocumentTitle('CSS Layout ∙ Card'); + + return ( + +

Card

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