Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.