Improving image open time (#185)

* Moving intro into its own component

* Tidying JSX, and allowing image to render before first compression. Fixes #164.
This commit is contained in:
Jake Archibald
2018-10-11 14:05:18 +01:00
committed by GitHub
parent a1f0b81dff
commit 64acc08cd7
4 changed files with 97 additions and 73 deletions

View File

@@ -11,39 +11,6 @@ Note: These styles are temporary. They will be replaced before going live.
overflow: hidden;
contain: strict;
display: flex;
justify-content: flex-end;
&.horizontal {
justify-content: space-between;
align-items: flex-end;
}
&.vertical {
flex-direction: column;
}
}
.welcome {
margin: auto;
text-align: center;
h1 {
font-weight: inherit;
font-size: 150%;
text-align: center;
}
input {
display: inline-block;
width: 16em;
padding: 10px;
margin: 0 auto;
-webkit-appearance: none;
border: 1px solid var(--button-fg);
background: rgba(var(--button-fg-color), 0.1);
border-radius: 3px;
cursor: pointer;
}
}
:global {
@@ -87,3 +54,18 @@ Note: These styles are temporary. They will be replaced before going live.
}
}
}
.option-pair {
display: flex;
justify-content: flex-end;
width: 100%;
&.horizontal {
justify-content: space-between;
align-items: flex-end;
}
&.vertical {
flex-direction: column;
}
}