Skip to content

Commit

Permalink
chore: deploy to coldemo, responsive improve, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
fritx committed Apr 18, 2020
1 parent 29bba49 commit 61d76ea
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# gallery.code
# Coldemo Gallery & Playground

Visit: https://fritx.github.io/gallery.code/
Visit: https://coldemo.github.io/

**Todo**

- [ ] vscode tsconfig src/\* alias (being reverted by npm-run-dev)
- [ ] antd4, safe js exec sandbox - see pureproxy
- [ ] storage list, reset btn, gh deploy
- [ ] storage list, reset btn, sandboxNode, batch-screenshot, responsive-improve
- [ ] lang ts/tsx/vue/py/rb/java
- [x] gh-pages, lang js/jsx, react/vue, umd-hack
- [x] code read from url, storybook cards
- [x] web worker for babel transform
- [x] react-drag-sizing, gentleSpin
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"typescript": "3.5.2"
},
"scripts": {
"deploy": "npm run build && gh-pages -d ./build",
"deploy": "npm run build && gh-pages -d ./build -b master -r https://github.com/coldemo/coldemo.github.io",
"dev": "npm start",
"start": "react-scripts start",
"build": "react-scripts build",
Expand Down
Binary file modified public/code/hello-world.jsx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function AppRouter() {
<Router>
<Switch>
<Route path="/" exact component={Gallery} />
<Route path="/playground/:file" component={Playground} />
<Route path="/playground/:file?" component={Playground} />
<Route path="*">
<Redirect to="/" />
</Route>
Expand Down
12 changes: 12 additions & 0 deletions src/gallery/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@
}
}

@media (max-width: 450px) {
.ant-card-body {
padding: 12px;
}
.ant-card-meta-title {
font-size: 12px;
}
.page-gallery .ant-card-cover {
height: 120px;
}
}

.page-gallery .ant-spin-nested-loading,
.page-gallery .ant-spin-container {
position: static;
Expand Down

0 comments on commit 61d76ea

Please sign in to comment.