diff --git a/client/App.jsx b/client/App.jsx index 5403ca4..48af5e8 100644 --- a/client/App.jsx +++ b/client/App.jsx @@ -31,6 +31,7 @@ const App = () => { + diff --git a/client/Home.jsx b/client/Home.jsx index f9cd4a3..4f9ab21 100644 --- a/client/Home.jsx +++ b/client/Home.jsx @@ -46,7 +46,7 @@ const Home = () => {
-

Layouts

+

Layouts

@@ -58,7 +58,7 @@ const Home = () => {
-

Patterns

+

Patterns

@@ -80,6 +80,7 @@ const Home = () => { + diff --git a/client/layouts/Footer.jsx b/client/layouts/Footer.jsx index f9eabc0..45bac41 100644 --- a/client/layouts/Footer.jsx +++ b/client/layouts/Footer.jsx @@ -4,7 +4,7 @@ const Footer = () => { return (
-

PRODUCTS

+

Products

  • @@ -26,7 +26,7 @@ const Footer = () => {
-

ABOUT

+

About

© 2019 Nguyen Huu Phuoc and contributors
diff --git a/client/patterns/radio-switch/Cover.jsx b/client/patterns/radio-switch/Cover.jsx new file mode 100644 index 0000000..f845219 --- /dev/null +++ b/client/patterns/radio-switch/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/patterns/radio-switch/Details.jsx b/client/patterns/radio-switch/Details.jsx new file mode 100644 index 0000000..de5ef3d --- /dev/null +++ b/client/patterns/radio-switch/Details.jsx @@ -0,0 +1,85 @@ +import React, { useState } from 'react'; + +import DetailsLayout from '../../layouts/DetailsLayout'; +import BrowserFrame from '../../placeholders/BrowserFrame'; +import Rectangle from '../../placeholders/Rectangle'; +import SampleCode from '../../SampleCode'; + +const Details = () => { + const [isFirstChecked, setFirstChecked] = useState(false); + const toggle = () => setFirstChecked(c => !c); + + return ( + +
+ +
+
+
+

Use cases

+ +
+
+ + +
+
+
+ + ); +}; + +export default Details; diff --git a/sitemap.xml b/sitemap.xml index 6bc992a..8d515ca 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -23,6 +23,7 @@ https://csslayout.io/pricing-table https://csslayout.io/progress-bar https://csslayout.io/questions-and-answers + https://csslayout.io/radio-switch https://csslayout.io/same-height-columns https://csslayout.io/search-box https://csslayout.io/separator