Place this as a temporary homepage for visitors to know that your website is under construction.
Created
October 4, 2018 06:01
-
-
Save tlongren/953db8ca282f98270849d118da7891e2 to your computer and use it in GitHub Desktop.
A "Coming Soon" page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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