Skip to content

Instantly share code, notes, and snippets.

@Andrew67
Created May 24, 2020 22:34
Show Gist options
  • Save Andrew67/004c20ffe0af65ad509f78c76ed82874 to your computer and use it in GitHub Desktop.
Save Andrew67/004c20ffe0af65ad509f78c76ed82874 to your computer and use it in GitHub Desktop.
iOS splash screen template for use with pwa-asset-generator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iOS Splash</title>
<style>
html, body {
height: 100vh;
margin: 0;
padding: 0;
}
body {
background: #1976d2;
display: flex;
align-items: center;
justify-content: center;
}
img {
width: 256px;
}
@media(min-width: 1000px) {
img {
width: 384px;
}
}
</style>
</head>
<body>
<!--
npm install --global pwa-asset-generator
brew install pngquant
pwa-asset-generator ios-splash.html ./src/img --splash-only --portrait-only --scrape false --type png
pngquant ./src/img/apple-splash-*
-->
<img src="src/img/icon-512.png" alt="">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment