Skip to content

Instantly share code, notes, and snippets.

@tlongren
Created October 4, 2018 06:01
Show Gist options
  • Save tlongren/953db8ca282f98270849d118da7891e2 to your computer and use it in GitHub Desktop.
Save tlongren/953db8ca282f98270849d118da7891e2 to your computer and use it in GitHub Desktop.
A "Coming Soon" page

A "Coming Soon" page

Place this as a temporary homepage for visitors to know that your website is under construction.

A Pen by Ompmega on CodePen.

License.

<div class="container">
<div class="wrapper">
<div class="content">
<div class="item">
<!-- Place your content here to have it be centered vertically and horizontally -->
<h1>COMING SOON</h1>
<p>This website is under construction.</p>
</div>
</div>
</div>
</div>
@import url(https://fonts.googleapis.com/css?family=Montserrat);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
h1 {
margin: 0;
font-family: 'Montserrat', sans-serif;
font-size: 4em;
color: #333;
-webkit-text-shadow: 0 2px 1px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.7);
-moz-text-shadow: 0 2px 1px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.7);
text-shadow: 0 2px 1px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.7);
word-spacing: 16px;
}
p {
font-family: 'Open Sans', sans-serif;
font-size: 1.4em;
font-weight: bold;
color: #222;
text-shadow: 0 0 40px #FFFFFF, 0 0 30px #FFFFFF, 0 0 20px #FFFFFF;
}
.container {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
background: url('');
background-size: cover;
}
.wrapper {
width: 100%;
min-height: 100%;
height: auto;
display: table;
}
.content {
display: table-cell;
vertical-align: middle;
}
.item {
width: auto;
height: auto;
margin: 0 auto;
text-align: center;
padding: 8px;
}
@media only screen and (min-width: 800px) {
h1 {
font-size: 6em;
}
p {
font-size: 1.6em;
}
}
@media only screen and (max-width: 320px) {
h1 {
font-size: 2em;
}
p {
font-size: 1.2em;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment