From 7d9cc2ac563dbcfd423fbe76b6cef7235133f027 Mon Sep 17 00:00:00 2001
From: hazam <hazam@yandex-team.ru>
Date: Fri, 3 Jan 2020 21:45:06 +0500
Subject: [PATCH] Deploy static to gh-pages

---
 docs/index.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 package.json    |  4 +++-
 2 files changed, 50 insertions(+), 1 deletion(-)
 create mode 100644 docs/index.html

diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 00000000..e55513cd
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
+    <title>Excalidraw</title>
+    <style>
+      :root {
+        --bg-color: #eee;
+        --text-color: black;
+      }
+
+      html {
+        height: 100%;
+        background: var(--bg-color);
+        color: var(--text-color);
+        font-family: sans-serif;
+      }
+
+      body {
+        margin: 0;
+        height: 100%;
+        display: flex;
+        align-items: center;
+        justify-content: center;
+      }
+
+      .title {
+        font-size: 4em;
+        text-transform: uppercase;
+      }
+
+      @media (prefers-color-scheme: dark) {
+        body {
+          --bg-color: #333;
+          --text-color: white;
+        }
+      }
+    </style>
+  </head>
+  <body>
+    <h1 class="title">
+      excalidraw
+    </h1>
+  </body>
+</html>
diff --git a/package.json b/package.json
index 6652567b..ba9ea43d 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
   "devDependencies": {
     "@types/react": "16.9.17",
     "@types/react-dom": "16.9.4",
+    "gh-pages": "2.1.1",
     "husky": "3.1.0",
     "lint-staged": "9.5.0",
     "prettier": "1.19.1",
@@ -23,7 +24,8 @@
     "start": "react-scripts start",
     "build": "react-scripts build",
     "test": "react-scripts test --env=jsdom",
-    "eject": "react-scripts eject"
+    "eject": "react-scripts eject",
+    "deploy": "gh-pages -d docs"
   },
   "browserslist": [
     ">0.2%",