Skip to content

Instantly share code, notes, and snippets.

@parsafatehi
Created January 15, 2022 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parsafatehi/b196a30440c8b42bb7671b7bcc787f62 to your computer and use it in GitHub Desktop.
Save parsafatehi/b196a30440c8b42bb7671b7bcc787f62 to your computer and use it in GitHub Desktop.
Coming soon
<div class="container">
<div class="wrapper">
<div class="content">
<h1 style="text-transform: uppercase;">Website under construction</h1>
<p style="display: none;">An Awsome site is under construction.</p>
<!-- <a href="#" class="btn1">Subscribe</a> -->
<a href="index.html" class="btn2">Back to Home</a>
</div> <!-- content ends -->
</div> <!-- wrapper ends -->
</div> <!-- container ends -->
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700");
* {
font-family: "Open Sans", sans-serif;
font-weight: 400;
}
body {
margin: 0;
padding: 0;
font-size: 16px;
}
img {
max-width: 100%;
}
.container {
height: 100vh;
width: 100%;
// background-image:url("");
background-size: cover;
background-position: 50% 0%;
/*overflow: hidden;*/
}
.wrapper {
width: 100%;
height: 100%;
opacity: 0.7;
background: linear-gradient(
-55deg,
transparent 25%,
#16181e 25%,
#16181e 75%,
transparent 75%,
transparent 100%
);
/*background: linear-gradient(-210deg, transparent 0%, #16181E 0%, #16181E 70%, transparent 50%, transparent 100%);*/
transition: all 0.5s cubic-bezier(0.67, 0, 0.3, 1) 1s;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.content {
/*transform:rotate(50deg);*/
padding: 1rem;
color: rgba(255, 255, 255, 1);
}
.content h1 {
font-size: 2rem;
color: rgba(255, 255, 255, 1);
font-weight: bold;
}
.content p {
font-size: 1.1rem;
color: rgba(255, 255, 255, 1);
}
.content a {
color: rgba(255, 255, 255, 1);
display: inline-block;
padding: 2.1% 4%;
overflow: hidden;
border-radius: 3px;
text-decoration: none;
}
.btn1 {
border: 1px solid rgba(255, 255, 255, 1);
transition: 0.2s ease-in-out;
border-radius: 3px;
}
.btn1:hover {
border: 1px solid rgba(255, 255, 255, 1);
background-color: rgba(255, 255, 255, 1);
color: black;
transition: 0.2s ease-in-out;
border-radius: 3px;
}
.btn2 {
margin-left: 3%;
background: linear-gradient(to right, #252aff 0%, #25ffed 100%);
border-image: linear-gradient(to bottom right, #252aff 0%, #25ffed 100%);
border-image-slice: 1;
border-width: 1px;
border-style: solid;
transition: 0.2s ease-in-out;
border-radius: 3px;
}
.btn2:hover {
background: none;
border-image: linear-gradient(to bottom right, #252aff 0%, #25ffed 100%);
border-image-slice: 1;
border-width: 1px;
border-style: solid;
transition: 0.2s ease-in-out;
border-radius: 3px;
}
@media screen and (max-width: 355px) {
.content {
/*transform:rotate(50deg);*/
padding: 1rem 1.4rem;
}
.content h1 {
font-size: 2.5rem;
/*margin: 5px 0px;*/
/*line-height: 1.2;*/
}
.wrapper {
background: linear-gradient(
-210deg,
transparent 0%,
#16181e 0%,
#16181e 70%,
transparent 50%,
transparent 100%
);
transition: all 0.5s cubic-bezier(0.67, 0, 0.3, 1) 1s;
display: flex;
justify-content: center;
align-items: flex-start;
text-align: left;
}
}
@media screen and (min-width: 356px) and (max-width: 650px) {
.content {
/*transform:rotate(50deg);*/
padding: 1rem 1.4rem;
}
.wrapper {
background: linear-gradient(
-210deg,
transparent 0%,
#16181e 0%,
#16181e 70%,
transparent 50%,
transparent 100%
);
transition: all 0.5s cubic-bezier(0.67, 0, 0.3, 1) 1s;
display: flex;
justify-content: center;
align-items: flex-start;
text-align: left;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment