Clean up app to remove old prerendering bits

This commit is contained in:
Jason Miller
2018-04-17 14:05:50 -04:00
parent 3ba0a5a22a
commit 5936c57a82
5 changed files with 26 additions and 24 deletions

View File

@@ -26,9 +26,14 @@ export default class Home extends Component<Props, State> {
render({ files }: Props, { active }: State) {
return (
<div class={style.home + ' ' + (active ? style.active : '')}>
<div class={style.home}>
{ files && files[0] && (
<img src={files[0].uri} style="width:100%;" />
<img src={files[0].uri} class={style.image} />
) || (
<div class={style.content}>
<h1>Squoosh</h1>
<p>Test home content</p>
</div>
) }
</div>
);

View File

@@ -7,14 +7,15 @@
.home {
padding: 20px;
opacity: 0;
}
.active {
animation: fadeIn 2s forwards ease 1;
.image {
width: 100%;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.content {
max-width: 600px;
margin: 50px auto 0;
font-size: 120%;
text-align: center;
}

View File

@@ -1,3 +1,3 @@
export const home: string;
export const active: string;
export const fadeIn: string;
export const image: string;
export const content: string;