Dirty markup

This commit is contained in:
He4eT 2021-03-02 02:30:22 +05:00
commit 42015eca8f
3 changed files with 100 additions and 85 deletions

View file

@ -1,3 +1,5 @@
/* Layout */
html, body { html, body {
margin: 0; margin: 0;
height: 100%; height: 100%;
@ -52,8 +54,18 @@ a:focus {
background-color: hsl(0, 0%, 0%, 0.1); background-color: hsl(0, 0%, 0%, 0.1);
} }
a:hover {
border-width: 3px;
}
ul {
list-style: square;
}
/* Dirty views */ /* Dirty views */
/* Home */
.app > main.home { .app > main.home {
padding: var(--inner-padding); padding: var(--inner-padding);
max-height: unset; max-height: unset;
@ -76,17 +88,14 @@ a:focus {
cursor: pointer; cursor: pointer;
} }
.home details > ul {
border-left: 4px solid currentColor;
}
.home .play label { .home .play label {
display: block; display: inline-block;
margin-bottom: 16px; margin-bottom: 16px;
width: 100%;
max-width: 400px;
} }
.home .play input { .home .play input {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
max-width: 400px;
} }

View file

@ -69,6 +69,7 @@
--outer-padding: 8px; --outer-padding: 8px;
--inner-padding: 8px; --inner-padding: 8px;
--border-width: 2px; --border-width: 2px;
--input-box-margin: 8px;
} }
.solarized-light, .solarized-light,

View file

@ -24,28 +24,22 @@ export default function ({ themeEngine }) {
ifplayer ifplayer
</h1> </h1>
<section>
<p> <p>
Interactive Fiction interpreter Interactive Fiction interpreter
that runs right in your browser. that runs right in your browser.
<br /> <br/>
Powered by <a Source code can be found in this <a
target="_blank"
href="https://github.com/He4eT/emglken">
Emglken
</a> and <a
target="_blank"
href="https://github.com/He4eT/cheap-glkote">
cheap-glkote
</a>.
</p>
<p>
Source code can be found here: <a
target="_blank" target="_blank"
href="https://github.com/He4eT/ifplayer"> href="https://github.com/He4eT/ifplayer">
ifplayer repository
</a>. </a>.
</p> </p>
</section>
<hr /> <hr />
<section>
<h3> <h3>
Interface theme Interface theme
</h3> </h3>
@ -57,20 +51,32 @@ export default function ({ themeEngine }) {
<small> <small>
Themes without borders Themes without borders
are better suited for small screens. are better suited for small screens.
</small><br /> </small>
<br />
<small> <small>
Double-click on the input field during the game Double-click on the input field during the game
to enter full-screen mode. to enter full-screen mode.
</small> </small>
</p> </p>
</section>
<hr /> <hr />
<section>
<h3> <h3>
Play a game from the list Play a game from the list
</h3> </h3>
<p> <p>
<Link href='/top100'>IFDB Top 100 games</Link> <Link href='/top100'>
IFDB Top 100 games
</Link>
</p> </p>
</section>
<hr /> <hr />
<section>
<h3> <h3>
Play the game from a file Play the game from a file
</h3> </h3>
@ -88,24 +94,23 @@ export default function ({ themeEngine }) {
</p> </p>
<p className='play'> <p className='play'>
<label> <label>
<div> Local file: <br />
Local file:
</div>
<FileSelector {...{ <FileSelector {...{
setTargetName, setTargetName,
setTargetUrl setTargetUrl
}} /> }} />
</label> </label>
<br />
<label> <label>
<div> Direct link: <br />
Direct link:
</div>
<URLSelector {...{ <URLSelector {...{
setTargetName, setTargetName,
setTargetUrl setTargetUrl
}} /> }} />
</label> </label>
</p> </p>
</section>
{ targetUrl { targetUrl
? playButton(targetName, targetUrl, themeEngine.currentTheme) ? playButton(targetName, targetUrl, themeEngine.currentTheme)
: null } : null }