diff --git a/client/components/CoverCard.tsx b/client/components/CoverCard.tsx index f765464..abe74bc 100644 --- a/client/components/CoverCard.tsx +++ b/client/components/CoverCard.tsx @@ -18,7 +18,7 @@ const CoverCard: React.FC = ({ pattern }) => { return ( = ({ title, children }) => { return ( -
- -
-
+
- .home + Home -
~
+ / - .explore + Explore + / +

{title}

-
-

- {title} -

+
+ +
+
{children}
diff --git a/client/layouts/Footer.tsx b/client/layouts/Footer.tsx index 2174d6c..51f2358 100644 --- a/client/layouts/Footer.tsx +++ b/client/layouts/Footer.tsx @@ -23,10 +23,10 @@ const Footer: React.FC<{}> = () => {
= () => { style={{ marginLeft: 'auto', textDecoration: 'none' }} target="_blank" > - github.com/phuoc-ng/csslayout + phuoc-ng/csslayout
;
diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index 536c47a..ff3f419 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -24,7 +24,7 @@ const ExplorePage = () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
You can use a close button to remove a chip.
diff --git a/client/patterns/circular-navigation/Details.tsx b/client/patterns/circular-navigation/Details.tsx index 258aec5..fb89932 100644 --- a/client/patterns/circular-navigation/Details.tsx +++ b/client/patterns/circular-navigation/Details.tsx @@ -53,7 +53,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
This pattern is also known as off-canvas.
diff --git a/client/patterns/drop-area/Details.tsx b/client/patterns/drop-area/Details.tsx index 2dd135e..ed99560 100644 --- a/client/patterns/drop-area/Details.tsx +++ b/client/patterns/drop-area/Details.tsx @@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= () => { -
+
Move the mouse over the button to see the dropdown.
diff --git a/client/patterns/fading-long-section/Details.tsx b/client/patterns/fading-long-section/Details.tsx index e16e9be..fe83d23 100644 --- a/client/patterns/fading-long-section/Details.tsx +++ b/client/patterns/fading-long-section/Details.tsx @@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => { -
+
Fading a long section to indicate there is more content.
diff --git a/client/patterns/feature-comparison/Details.tsx b/client/patterns/feature-comparison/Details.tsx index a5107eb..3715a48 100644 --- a/client/patterns/feature-comparison/Details.tsx +++ b/client/patterns/feature-comparison/Details.tsx @@ -21,7 +21,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= () => { -
+
diff --git a/client/patterns/fixed-at-side/Details.tsx b/client/patterns/fixed-at-side/Details.tsx index 6f4765c..1b3e69a 100644 --- a/client/patterns/fixed-at-side/Details.tsx +++ b/client/patterns/fixed-at-side/Details.tsx @@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
Type something in the input to see how the label is shown up.
diff --git a/client/patterns/full-background/Details.tsx b/client/patterns/full-background/Details.tsx index 82e415b..cc9af0f 100644 --- a/client/patterns/full-background/Details.tsx +++ b/client/patterns/full-background/Details.tsx @@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
To center the content, you also can use other technique demonstrated in the Centering pattern. diff --git a/client/patterns/input-addon/Details.tsx b/client/patterns/input-addon/Details.tsx index ace7778..0f5541b 100644 --- a/client/patterns/input-addon/Details.tsx +++ b/client/patterns/input-addon/Details.tsx @@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
We use the native kbd tag to display the keyboard shortcut.
diff --git a/client/patterns/lined-paper/Details.tsx b/client/patterns/lined-paper/Details.tsx index bda06a2..396b724 100644 --- a/client/patterns/lined-paper/Details.tsx +++ b/client/patterns/lined-paper/Details.tsx @@ -16,7 +16,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= () => { -
+
Move the mouse over the seccond navigation item to see the mega menu.
diff --git a/client/patterns/menu/Details.tsx b/client/patterns/menu/Details.tsx index ebad8f7..3b3c78b 100644 --- a/client/patterns/menu/Details.tsx +++ b/client/patterns/menu/Details.tsx @@ -22,7 +22,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
You can use the close button to represent the button for closing the modal. diff --git a/client/patterns/nested-dropdowns/Details.tsx b/client/patterns/nested-dropdowns/Details.tsx index b23e408..36fc2e8 100644 --- a/client/patterns/nested-dropdowns/Details.tsx +++ b/client/patterns/nested-dropdowns/Details.tsx @@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => { -
+
Hover on the Patterns → Navigation to see the sub dropdowns.
diff --git a/client/patterns/notification/Details.tsx b/client/patterns/notification/Details.tsx index 1cac74c..c625c90 100644 --- a/client/patterns/notification/Details.tsx +++ b/client/patterns/notification/Details.tsx @@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => { -
+
You can use the close button to represent the button for closing the notification. diff --git a/client/patterns/overlay-play-button/Details.tsx b/client/patterns/overlay-play-button/Details.tsx index 6443d32..8272354 100644 --- a/client/patterns/overlay-play-button/Details.tsx +++ b/client/patterns/overlay-play-button/Details.tsx @@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
You can add a ribbon to indicate the most popular option. diff --git a/client/patterns/progress-bar/Details.tsx b/client/patterns/progress-bar/Details.tsx index 9382e3a..9ce6cde 100644 --- a/client/patterns/progress-bar/Details.tsx +++ b/client/patterns/progress-bar/Details.tsx @@ -22,7 +22,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
You can move the mouse over each squares located at the corners and the middle of sides to see the cursors which indicate the associated side can be resized. diff --git a/client/patterns/ribbon/Details.tsx b/client/patterns/ribbon/Details.tsx index bcab4f5..b014f46 100644 --- a/client/patterns/ribbon/Details.tsx +++ b/client/patterns/ribbon/Details.tsx @@ -19,7 +19,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
Try to scroll the main content!
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
diff --git a/client/patterns/stacked-cards/Details.tsx b/client/patterns/stacked-cards/Details.tsx index 3c05937..fe3ecf9 100644 --- a/client/patterns/stacked-cards/Details.tsx +++ b/client/patterns/stacked-cards/Details.tsx @@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
= () => { -
+
The footer always sticks to the bottom if the main content is short.
diff --git a/client/patterns/sticky-header/Details.tsx b/client/patterns/sticky-header/Details.tsx index 093ba25..1546960 100644 --- a/client/patterns/sticky-header/Details.tsx +++ b/client/patterns/sticky-header/Details.tsx @@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => { -
+
Try to scroll the main content to see the header sticks to the top of page.
diff --git a/client/patterns/sticky-sections/Details.tsx b/client/patterns/sticky-sections/Details.tsx index 32f2371..cc1a62e 100644 --- a/client/patterns/sticky-sections/Details.tsx +++ b/client/patterns/sticky-sections/Details.tsx @@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => { -
+
Try to scroll the main content to see each section sticks to the top of page.
diff --git a/client/patterns/sticky-table-column/Details.tsx b/client/patterns/sticky-table-column/Details.tsx index a4349b5..2a8eae9 100644 --- a/client/patterns/sticky-table-column/Details.tsx +++ b/client/patterns/sticky-table-column/Details.tsx @@ -22,7 +22,7 @@ const Details: React.FC<{}> = () => { -
+
Try to scroll the main content of table horizontally to see the first column sticks to the left.
diff --git a/client/patterns/sticky-table-headers/Details.tsx b/client/patterns/sticky-table-headers/Details.tsx index 6cf83e1..8ec128e 100644 --- a/client/patterns/sticky-table-headers/Details.tsx +++ b/client/patterns/sticky-table-headers/Details.tsx @@ -20,7 +20,7 @@ const Details: React.FC<{}> = () => { -
+
Try to scroll the main content of table to see the header sticks to the top.
diff --git a/client/patterns/switch/Details.tsx b/client/patterns/switch/Details.tsx index 1ec7564..314071f 100644 --- a/client/patterns/switch/Details.tsx +++ b/client/patterns/switch/Details.tsx @@ -21,7 +21,7 @@ const Details: React.FC<{}> = () => { -
+
The checkbox is placed inside a label. So when clicking on the label, the checkbox will be checked even though it's hidden. diff --git a/client/patterns/tab/Details.tsx b/client/patterns/tab/Details.tsx index 68f82e7..e05fd2f 100644 --- a/client/patterns/tab/Details.tsx +++ b/client/patterns/tab/Details.tsx @@ -43,7 +43,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { content="css border radius, css teardrop, css water drop shape, css water droplet" /> -
+
= () => { -
+
= () => { -
+
= () => { -
+
Move the mouser over the main element to see the tooltip.
diff --git a/client/patterns/triangle-buttons/Details.tsx b/client/patterns/triangle-buttons/Details.tsx index fb5396a..3ed8967 100644 --- a/client/patterns/triangle-buttons/Details.tsx +++ b/client/patterns/triangle-buttons/Details.tsx @@ -18,7 +18,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
You can click the button to choose a file.
diff --git a/client/patterns/validation-icon/Details.tsx b/client/patterns/validation-icon/Details.tsx index ecbaa57..bd355a0 100644 --- a/client/patterns/validation-icon/Details.tsx +++ b/client/patterns/validation-icon/Details.tsx @@ -16,7 +16,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
In this pattern, the video is displayed in the background.
diff --git a/client/patterns/watermark/Details.tsx b/client/patterns/watermark/Details.tsx index 85a1665..a650d38 100644 --- a/client/patterns/watermark/Details.tsx +++ b/client/patterns/watermark/Details.tsx @@ -17,7 +17,7 @@ const Details: React.FC<{}> = () => { -
+
= () => { -
+
= ({ content, source }) => { return (