Skip to content

Instantly share code, notes, and snippets.

@BruceMcKinnon
Created August 4, 2020 00:13
Show Gist options
  • Save BruceMcKinnon/6f0702878f7eab6cd664efbecad9c8d7 to your computer and use it in GitHub Desktop.
Save BruceMcKinnon/6f0702878f7eab6cd664efbecad9c8d7 to your computer and use it in GitHub Desktop.
Simple Landing Page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Coming Soon</title>
<link href="landing.css" rel="stylesheet" type="text/css" >
</head>
<body>
<div class="aligner">
<div class="aligner-item"><h1>Coming Soon</h1></div>
<div class="aligner-item--bottom"><p>Photo by <a href="https://unsplash.com/@5tep5?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Alexander Popov</a> on <a href="https://unsplash.com/s/photos/traffic?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span>
</div>
</body>
</html>
body {
background-color: #ffffff;
background-image: url(alexander-popov-300-unsplash.jpg);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: #191919;
width: 100%;
height: 100vh;
overflow: hidden;
font-family: sans-serif;
margin: 0;
}
.aligner {
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
height: 100vh;
flex-flow: row wrap;
}
.aligner-item {
width: 100%;
text-align: center;
}
.aligner-item--top {
align-self: flex-start;
}
.aligner-item--bottom {
align-self: flex-end;
}
h1, p, a {
font-size: 36px;
color: #191919;
margin: 0;
line-height:120%;
}
p, a {
font-size: 12px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment