Improve compression settings, Inferno credits

This commit is contained in:
Corentin Risselin 2020-07-20 21:13:32 +09:00
commit 8ade0ee633
6 changed files with 38 additions and 9 deletions

View file

@ -3,6 +3,7 @@
"company_name": "AYO inc.",
"address_one_line": "Tokyo Itabashi Akatsukashinmachi 3-chōme-33-3",
"email_contact": "contact@ayo.tokyo",
"inferno_credit": "Website built with ",
"flow1": "From repetitive tasks done by human",
"flow2": "With the help of data gathered",
"flow3": "To automated systems"

View file

@ -3,6 +3,7 @@
"company_name": "AYO\u200b合同会社",
"address_one_line": "東京\u200b都板橋区\u200b赤塚新町\u200b三丁目号",
"email_contact": "contact@ayo.tokyo",
"inferno_credit": "Website built with ",
"flow1": "人によって\u200b繰り返される\u200b作業",
"flow2": "収集された\u200bデータ\u200bの助け\u200bによって",
"flow3": "システム\u200bを自動化するため"

View file

@ -3,6 +3,11 @@
box-sizing: border-box;
}
a, a:visited
{
color: inherit;
}
body
{
background-color: var(--main-bg-color);
@ -62,17 +67,26 @@ body
}
}
footer
footer > section
{
display: flex;
justify-content: center;
align-items: center;
margin: 0 10px;
}
footer .legal div
{
padding: 10px;
}
footer > div
footer .credit
{
font-size: 0.8rem;
}
footer > section > div
{
margin: 0 10px;
word-break: keep-all;
}

View file

@ -1,5 +1,5 @@
`use strict`
import { Component } from 'inferno'
import { Component, version } from 'inferno'
import { connect } from 'inferno-redux'
import { changeTheme, fetchLang } from './actions'
@ -78,9 +78,19 @@ class MainComponent extends Component
</div>
</div>
<footer>
<section className="legal">
<div>{this.props.strings.company_name}</div>
<div>{this.props.strings.address_one_line}</div>
<div>{this.props.strings.email_contact}</div>
</section>
<section className="credit">
<div>
{this.props.strings.inferno_credit}
<a target="_blank" rel="noopener noreferrer" href="https://infernojs.org/">
{`Inferno ` + version}
</a>
</div>
</section>
</footer>
</main>)
}

View file

@ -33,6 +33,7 @@ module.exports = Object.assign(
}),
new CopyPlugin([
{from: 'index.html'},
{from: 'robot.txt'},
{from: 'src/lang', to: 'lang'},
{from: 'assets/public', to: 'assets'}
]),
@ -40,7 +41,8 @@ module.exports = Object.assign(
{
filename: "[path].gz[query]",
algorithm: "gzip",
test: /\.js/
test: [/\.js/, /^assets\.*/],
threshold: 1000
})
],
// webpack-dev-server configuration

View file

@ -29,7 +29,8 @@ module.exports = Object.assign(
{
filename: "[path].gz[query]",
algorithm: "gzip",
test: [/\.js/, /^assets\.*/]
test: [/\.js/, /^assets\.*/],
threshold: 1000
})
]
}