git ssb

2+

mixmix / ticktack



Commit 550a47b7851cb983d15e37eef439970ed125b0b1

extend splash screen open time, add multiple slogans

mix irving committed on 4/10/2018, 11:50:47 PM
Parent: 94527b097121d2903dc3709ec79709a5804d13c9

Files changed

app/html/app.jschanged
app/page/splash.jschanged
translations/en.jschanged
app/html/app.jsView
@@ -51,9 +51,9 @@
5151
5252 function startApp () {
5353 api.history.sync.push({page: 'splash'})
5454
55- const delay = process.env.STARTUP_DELAY || 2000
55 + const delay = process.env.STARTUP_DELAY || 3500
5656 setTimeout(enterApp, delay)
5757 }
5858
5959 function enterApp () {
app/page/splash.jsView
@@ -29,9 +29,9 @@
2929 h('div.top', [
3030 h('img.logoName', { src: assetPath('logo_and_name.png') })
3131 ]),
3232 h('div.bottom', { style }, [
33- h('div.about', strings.splash.about),
33 + h('div.about', random(strings.splash.about)),
3434 h('pre.slogan', strings.splash.slogan)
3535 ])
3636 ])
3737 }
@@ -39,4 +39,10 @@
3939
4040 function assetPath (name) {
4141 return path.join(__dirname, '../../assets', name)
4242 }
43 +
44 +function random (arr) {
45 + const i = Math.floor(Math.random() * arr.length)
46 + return arr[i]
47 +}
48 +
translations/en.jsView
@@ -1,10 +1,16 @@
11 module.exports = {
22 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'
713 },
814 pluginsOk: {
915 heading: 'Ticktack running in limited mode',
1016 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