Remove TODOs, and set favicon.
This commit is contained in:
parent
49695dd393
commit
62ae230f70
@ -2,14 +2,14 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
<link rel="icon" href="https://static.xinu.tv/favicon/gallery.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#000000" />
|
<meta name="theme-color" content="#000000" />
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="Web site created using create-react-app"
|
content="Web site created using create-react-app"
|
||||||
/>
|
/>
|
||||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
<link rel="apple-touch-icon" href="https://static.xinu.tv/favicon/gallery.png" />
|
||||||
<!--
|
<!--
|
||||||
manifest.json provides metadata used when your web app is installed on a
|
manifest.json provides metadata used when your web app is installed on a
|
||||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||||
|
|||||||
@ -3,19 +3,8 @@
|
|||||||
"name": "Create React App Sample",
|
"name": "Create React App Sample",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "favicon.ico",
|
"src": "https://static.xinu.tv/favicon/gallery.png",
|
||||||
"sizes": "64x64 32x32 24x24 16x16",
|
"type": "image/png"
|
||||||
"type": "image/x-icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "logo192.png",
|
|
||||||
"type": "image/png",
|
|
||||||
"sizes": "192x192"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "logo512.png",
|
|
||||||
"type": "image/png",
|
|
||||||
"sizes": "512x512"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"start_url": ".",
|
"start_url": ".",
|
||||||
|
|||||||
@ -67,7 +67,6 @@ type AlbumProps = {
|
|||||||
};
|
};
|
||||||
type AlbumState = {
|
type AlbumState = {
|
||||||
error: any;
|
error: any;
|
||||||
// TODO(wathiede): define a MediaItem type.
|
|
||||||
mediaItems: Array<MediaItem> | null;
|
mediaItems: Array<MediaItem> | null;
|
||||||
idx: number;
|
idx: number;
|
||||||
showUI: boolean;
|
showUI: boolean;
|
||||||
@ -111,7 +110,6 @@ class Album extends React.Component<AlbumProps, AlbumState> {
|
|||||||
render() {
|
render() {
|
||||||
// TODO(wathiede): fade transition.
|
// TODO(wathiede): fade transition.
|
||||||
// TODO(wathiede): pair-up portrait orientation images.
|
// TODO(wathiede): pair-up portrait orientation images.
|
||||||
// TODO(wathiede): fetch an image that maintains the originals aspect ratio
|
|
||||||
let w = window.innerWidth * window.devicePixelRatio;
|
let w = window.innerWidth * window.devicePixelRatio;
|
||||||
let h = window.innerHeight * window.devicePixelRatio;
|
let h = window.innerHeight * window.devicePixelRatio;
|
||||||
let ratio = w/h;
|
let ratio = w/h;
|
||||||
@ -194,7 +192,6 @@ class Album extends React.Component<AlbumProps, AlbumState> {
|
|||||||
};
|
};
|
||||||
let ui;
|
let ui;
|
||||||
if (showUI) {
|
if (showUI) {
|
||||||
// TODO(wathiede): set image as background of the div in the style.
|
|
||||||
ui = <div id="ui">
|
ui = <div id="ui">
|
||||||
<div
|
<div
|
||||||
style={leftPrefetchStyle}
|
style={leftPrefetchStyle}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user