diff --git a/contents/_includes/patterns/modal.njk b/contents/_includes/patterns/modal.njk
new file mode 100644
index 0000000..b9ac5c9
--- /dev/null
+++ b/contents/_includes/patterns/modal.njk
@@ -0,0 +1,5 @@
+
+
{% rectangle %}
+
{% lines "hor", 8 %}
+
+
\ No newline at end of file
diff --git a/contents/index.njk b/contents/index.njk
index 4247086..b4a3f34 100644
--- a/contents/index.njk
+++ b/contents/index.njk
@@ -72,6 +72,7 @@ eleventyExcludeFromCollections: true
Feedback
+ {% pattern "Modal" %}{% include "patterns/modal.njk" %}{% endpattern %}
{% pattern "Popover arrow" %}{% include "patterns/popover-arrow.njk" %}{% endpattern %}
{% pattern "Presence indicator" %}{% include "patterns/presence-indicator.njk" %}{% endpattern %}
{% pattern "Progress bar" %}{% include "patterns/progress-bar.njk" %}{% endpattern %}
diff --git a/contents/modal.md b/contents/modal.md
new file mode 100644
index 0000000..bedc992
--- /dev/null
+++ b/contents/modal.md
@@ -0,0 +1,59 @@
+---
+layout: layouts/post.njk
+title: Modal
+description: Create a modal with CSS flexbox
+keywords: css dialog, css flexbox, css modal
+---
+
+## HTML
+
+```html
+
+
+
+
+ ...
+
+ ...
+
+
+
+ ...
+
+
+
+
+```
+
+## CSS
+
+```css
+.modal {
+ /* Border */
+ border: 1px solid #d1d5db;
+ border-radius: 0.25rem;
+}
+
+.modal__header {
+ display: flex;
+ justify-content: space-between;
+
+ /* Border */
+ border-bottom: 1px solid #d1d5db;
+}
+
+.modal__footer {
+ display: flex;
+ /* Push the buttons to the right */
+ justify-content: flex-end;
+
+ /* Border */
+ border-top: 1px solid #d1d5db;
+}
+```
+
+{% demo %}
+{% include "patterns/modal.njk" %}
+{% enddemo %}
diff --git a/pages/modal/index.tsx b/pages/modal/index.tsx
deleted file mode 100644
index 80e4243..0000000
--- a/pages/modal/index.tsx
+++ /dev/null
@@ -1,132 +0,0 @@
-import * as React from 'react';
-import Head from 'next/head';
-import Link from 'next/link';
-
-import { Pattern } from '../../constants/Pattern';
-import { PatternLayout } from '../../layouts/PatternLayout';
-import Block from '../../placeholders/Block';
-import BrowserFrame from '../../placeholders/BrowserFrame';
-import Circle from '../../placeholders/Circle';
-import Rectangle from '../../placeholders/Rectangle';
-
-const Details: React.FC<{}> = () => {
- return (
-
-
-
-
-
-
-
-
- You can use the{' '}
-
- close button
- {' '}
- to represent the button for closing the modal.
-