Deploy static to gh-pages

This commit is contained in:
hazam 2020-01-03 21:45:06 +05:00
parent b18a0efe2c
commit 7d9cc2ac56
2 changed files with 50 additions and 1 deletions

47
docs/index.html Normal file
View File

@ -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>

View File

@ -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%",