Skip to content

Commit 948a5e5

Browse files
feat(website): mobile support
1 parent 230a6e9 commit 948a5e5

File tree

25 files changed

+275
-36
lines changed

25 files changed

+275
-36
lines changed

packages/overmind-website/backend/index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
border-radius: 50%;
9191
width: 125px;
9292
height: 125px;
93+
box-shadow: 0 0 0 rgba(206, 206, 206, 0.4);
94+
animation: pulse 2s infinite 0.5s;
9395
}
9496

9597
#overmind-inner-circle {
@@ -113,6 +115,33 @@
113115
height: 25px;
114116
width: 125px;
115117
}
118+
119+
@-webkit-keyframes pulse {
120+
0% {
121+
-webkit-box-shadow: 0 0 0 0 rgba(206, 206, 206, 0.4);
122+
}
123+
70% {
124+
-webkit-box-shadow: 0 0 0 20px rgba(211, 211, 211, 0);
125+
}
126+
100% {
127+
-webkit-box-shadow: 0 0 0 0 rgba(199, 199, 199, 0);
128+
}
129+
}
130+
131+
@keyframes pulse {
132+
0% {
133+
-moz-box-shadow: 0 0 0 0 rgba(201, 201, 201, 0.4);
134+
box-shadow: 0 0 0 0 rgba(196, 196, 196, 0.4);
135+
}
136+
70% {
137+
-moz-box-shadow: 0 0 0 20px rgba(202, 202, 202, 0);
138+
box-shadow: 0 0 0 20px rgba(209, 209, 209, 0);
139+
}
140+
100% {
141+
-moz-box-shadow: 0 0 0 0 rgba(206, 206, 206, 0);
142+
box-shadow: 0 0 0 0 rgba(202, 202, 202, 0);
143+
}
144+
}
116145
</style>
117146
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
118147
<link href="https://fonts.googleapis.com/css?family=Nunito:400,700" rel="stylesheet">

packages/overmind-website/examples/api/app_initialize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import tsAppIndex from '../tsAppIndex'
1+
import { tsAppIndex } from '../templates'
22

33
function createJsCode(view) {
44
return [

packages/overmind-website/examples/guide/getstarted/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import tsAppIndex from '../../tsAppIndex'
1+
import { tsAppIndex } from '../../templates'
22

33
function createJsCode(view) {
44
return [

packages/overmind-website/examples/guide/getstarted/createapp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import tsAppIndex from '../../tsAppIndex'
1+
import { tsAppIndex } from '../../templates'
22

33
function createJsCode(view) {
44
return [

packages/overmind-website/examples/guide/getstarted/devtools.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
import { getPackageWithVersion } from '../../templates'
2+
13
export const js = [
24
{
35
fileName: 'package.json',
46
code: `
57
{
68
"name": "my-app",
79
"scripts": {
8-
"devtools": "npx overmind-devtools@next"
10+
"devtools": "npx ${getPackageWithVersion('overmind-devtools')}"
911
}
1012
}
1113
`,

packages/overmind-website/examples/guide/getstarted/effects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import tsAppIndex from '../../tsAppIndex'
1+
import { tsAppIndex } from '../../templates'
22

33
function createJsCode(view) {
44
return [

packages/overmind-website/examples/guide/getstarted/install.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import { getPackageWithVersion } from '../../templates'
2+
13
export const react = [
24
{
35
code: `
4-
npm install react-overmind
6+
npm install ${getPackageWithVersion('react-overmind')}
57
`,
68
},
79
]
@@ -11,7 +13,7 @@ export const reactTs = react
1113
export const vue = [
1214
{
1315
code: `
14-
npm install vue-overmind
16+
npm install ${getPackageWithVersion('vue-overmind')}
1517
`,
1618
},
1719
]

packages/overmind-website/examples/guide/runningsideeffects/axios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import tsAppIndex from '../../tsAppIndex'
1+
import { tsAppIndex } from '../../templates'
22

33
function createJsCode(view) {
44
return [

packages/overmind-website/examples/tsAppIndex.ts renamed to packages/overmind-website/examples/templates.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
export default (view, config) => `
1+
const getVersion = () => (location.host.split('.')[0] === 'next' ? '@next' : '')
2+
3+
export const tsAppIndex = (view, config) => {
4+
return `
25
import App, { TConnect } from '${view}'
36
${config.trim()}
47
@@ -13,3 +16,6 @@ export type Connect = TConnect<typeof app>
1316
1417
export default app
1518
`
19+
}
20+
21+
export const getPackageWithVersion = (name) => name + getVersion()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Connecting components

0 commit comments

Comments
 (0)