Commit 550a47b7851cb983d15e37eef439970ed125b0b1
extend splash screen open time, add multiple slogans
mix irving committed on 4/10/2018, 11:50:47 PMParent: 94527b097121d2903dc3709ec79709a5804d13c9
Files changed
app/html/app.js | changed |
app/page/splash.js | changed |
translations/en.js | changed |
app/html/app.js | ||
---|---|---|
@@ -51,9 +51,9 @@ | ||
51 | 51 … | |
52 | 52 … | function startApp () { |
53 | 53 … | api.history.sync.push({page: 'splash'}) |
54 | 54 … | |
55 | - const delay = process.env.STARTUP_DELAY || 2000 | |
55 … | + const delay = process.env.STARTUP_DELAY || 3500 | |
56 | 56 … | setTimeout(enterApp, delay) |
57 | 57 … | } |
58 | 58 … | |
59 | 59 … | function enterApp () { |
app/page/splash.js | |||
---|---|---|---|
@@ -29,9 +29,9 @@ | |||
29 | 29 … | h('div.top', [ | |
30 | 30 … | h('img.logoName', { src: assetPath('logo_and_name.png') }) | |
31 | 31 … | ]), | |
32 | 32 … | h('div.bottom', { style }, [ | |
33 | - h('div.about', strings.splash.about), | ||
33 … | + h('div.about', random(strings.splash.about)), | ||
34 | 34 … | h('pre.slogan', strings.splash.slogan) | |
35 | 35 … | ]) | |
36 | 36 … | ]) | |
37 | 37 … | } | |
@@ -39,4 +39,10 @@ | |||
39 | 39 … | ||
40 | 40 … | function assetPath (name) { | |
41 | 41 … | return path.join(__dirname, '../../assets', name) | |
42 | 42 … | } | |
43 … | + | ||
44 … | +function random (arr) { | ||
45 … | + const i = Math.floor(Math.random() * arr.length) | ||
46 … | + return arr[i] | ||
47 … | +} | ||
48 … | + | ||
translations/en.js | ||
---|---|---|
@@ -1,10 +1,16 @@ | ||
1 | 1 … | module.exports = { |
2 | 2 … | splash: { |
3 | - about: `A new era social network for people who have faith in a decentralized world that values openness, equality, and freedom`, | |
4 | - slogan: `Connecting the Unconnected | |
5 | -Reconstructing a trusty social network | |
6 | -` | |
3 … | + about: [ | |
4 … | + 'A social network that values openness, equality, and freedom.', | |
5 … | + 'A new social network for people seeking an equitable world that values the value people create and successfully balances freedom, solidarity, privacy, and openness.', | |
6 … | + "Let's do it right this time. A Web 3.0 social network, connecting the next billion with a decentralized platform built for openness, freedom, and equality.", | |
7 … | + 'An open, equal and free social network.' | |
8 … | + ], | |
9 … | +// slogan: `Connecting the Unconnected | |
10 … | +// Reconstructing a trusty social network | |
11 … | +// ` | |
12 … | + slogan: 'Ticktack: blogging for the decentralized era' | |
7 | 13 … | }, |
8 | 14 … | pluginsOk: { |
9 | 15 … | heading: 'Ticktack running in limited mode', |
10 | 16 … | description: 'Another scuttlebutt app is managing your shared database. Core functionality will work, but you may find there are some features that do not work.', |
Built with git-ssb-web