Extract styles for views

This commit is contained in:
He4eT 2021-03-02 16:33:17 +05:00
commit e44831db08
6 changed files with 53 additions and 57 deletions

View file

@ -9,6 +9,8 @@ import ThemeSelector from '~/src/components/ThemeSelector'
import { buildPlayLinkHref } from '~/src/utils/utils.routing'
import '~/src/style/views/HomeView.css'
const playButton = (name, url, theme) => (
<Link href={buildPlayLinkHref(url, theme)}>
Play "{name}"
@ -44,11 +46,9 @@ export default function ({ themeEngine }) {
Interface theme
</h3>
<p>
<ThemeSelector {...{
themeEngine
}} />
</p>
<ThemeSelector {...{
themeEngine
}} />
<p>
<small>
@ -97,7 +97,7 @@ export default function ({ themeEngine }) {
</details>
</p>
<p className='play'>
<p>
<label>
Local file: <br />
<FileSelector {...{
@ -107,7 +107,7 @@ export default function ({ themeEngine }) {
</label>
</p>
<p className='play'>
<p>
<label>
Direct link: <br />
<URLSelector {...{