Hello, In this post, we will be discussing how to create a “Coming soon page template” page in HTML and CSS. In the last post, we created a 30-Second Countdown Timer. Today we are creating a coming soon landing page in HTML and CSS.
“Coming soon page template” in CSS:
As you can see in the image we have to create the “Coming soon page template” using HTML and CSS languages. This page has a unique design and it shows a great design related to the website.
You might like it:
This page is created by websites when the website is in construction mode or not ready. It shows the users that the website is in construction and needs some time. For that website use this technique to create a template and display it on the main page of the website.
Content of “Coming soon page template” :
This page has an image slider and you can change this slider to solid color or place any image instead of it. Then it has a main heading of “we are launching soon”. Below this, it shows the date of coming soon. Then we created an email newsletter. This email newsletter will collect emails from the users. When the website is ready then it will send them a notification that website is ready. Once they will receive a message that the website is ready then they will visit the website due to email or you can also send any news update to your subscriber.
On the top right, there is a menu icon for more info. If you want to learn how to build this type of “Coming soon page template” page then follow this post to the end.
This type of landing page can be created using multiple languages. But for this particular page, we have used only two languages (HTML and CSS). If we need any type of functionality in pages or movement in buttons then we have the option of javascript as well. Javascript helps developers to make their web page dynamic.
How to create a “Coming soon page template”?
To build such type of page we will use 3 steps. In these steps, we will create it from scratch. In the end, we have a product like this.
Download a code editor:
It is the first step to downloading the code editor. A lot of code editors are present in the market but we will use sublime text 3 for this project.
Html source code:
Create an HTML file and name it. Then save the file but use the .html extension at the end of the file name. It will convert your file into an HTML file. It will help the browser and code editor understand the file type. We have provided the HTML code below to use in your HTML file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
<!DOCTYPE html> <html lang="en"> <head> <title>Coming Soon Template - FantacyDesigns</title> <!-- Get Ready Template https://fantacydesigns.com/ --> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="team" content=""> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/vegas.min.css"> <link rel="stylesheet" href="css/font-awesome.min.css"> <!-- MAIN CSS --> <link rel="stylesheet" href="css/templatemo-style.css"> </head> <body> <!-- PRE LOADER --> <section class="preloader"> <div class="spinner"> <span class="spinner-rotate"></span> </div> </section> <!-- GRID LINE --> <section class="grid"> <div class="container"> <div class="row"> <div class="col-md-2 col-sm-2"> <div class="grid-line"></div> </div> <div class="col-md-2 col-sm-2"> <div class="grid-line"></div> </div> <div class="col-md-2 col-sm-2"> <div class="grid-line"></div> </div> <div class="col-md-2 col-sm-2"> <div class="grid-line"></div> </div> <div class="col-md-2 col-sm-2"> <div class="grid-line"></div> </div> </div> </div> </section> <div class="menu-bg"></div> <div class="menu-burger">☰</div> <div class="menu-items"> <div class="container"> <div class="row"> <div class="col-md-offset-2 col-md-4 col-sm-6"> <h1>Navigations</h1> <ul class="menu"> <li><a href="#">Home</a></li> <li><a href="#">Our Studio</a></li> <li><a href="#">Journal</a></li> <li><a href="#">Start a project</a></li> <li><a href="#">Email Us</a></li> </ul> </div> <div class="col-md-4 col-sm-6"> <address> <h1>Our Studio</h1> <p>1234 New Street View, <br> Islamabad, Pakistan</p> </address> </div> <div class="col-md-12 col-sm-12"> <ul class="social-icon"> <li class="line"></li> <li><a href="#" class="fa fa-facebook"></a></li> <li><a href="#" class="fa fa-twitter"></a></li> <li><a href="#" class="fa fa-google"></a></li> <li><a href="#" class="fa fa-instagram"></a></li> </ul> </div> </div> </div> </div> <!-- HOME --> <section id="home"> <div class="overlay"></div> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12"> <div class="home-info"> <h1>We are getting ready <br>to launch new UPDATED/CREATIVE site!</h1> <!-- You can change the date time in init.js file --> <ul class="countdown"> <li> <span class="days">14</span> <h3>Days</h3> </li> <li> <span class="hours">10</span> <h3>hours</h3> </li> <li> <span class="minutes">15</span> <h3>minutes</h3> </li> <li> <span class="seconds">34</span> <h3>seconds</h3> </li> </ul> <div class="subscribe-form"> <form action="" method="get"> <input type="email" name="email" class="form-control" placeholder="Enter your email" required=""> <button type="submit" class="form-control"><i class="fa fa-envelope-o"></i></button> </form> </div> </div> </div> </div> </div> </section> <!-- SCRIPTS --> <script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/vegas.min.js"></script> <script src="js/countdown.js"></script> <script src="js/init.js"></script> <script src="js/custom.js"></script> </body> </html> |
CSS source code:
Again create another file in your code editor. Now use the .css extension at the end of the file name. All the designs of this project have been done in CSS. So, we have provided the code of CSS below. Use this code in your code editor. Then connect both files of HTML and CSS with each other.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 |
/* Get Ready Template http://www.templatemo.com/tm-521-get-ready */ @import url('https://fonts.googleapis.com/css?family=Poppins:300,400'); body { margin: 0; -webkit-perspective: 1000; font-family: 'Poppins', sans-serif; background: #303030; } body, html { height: 100%; width: 100%; overflow-x: hidden; } /*--------------------------------------- TYPOGRAPHY -----------------------------------------*/ h1,h2,h3,h4,h5,h6 { font-weight: 300; line-height: inherit; } h1 { color: #ffffff; font-size: 2em; } h2 { color: #353535; font-size: 2em; } p { color: #757575; font-size: 14px; font-weight: normal; line-height: 24px; } /*--------------------------------------- GENERAL -----------------------------------------*/ html{ -webkit-font-smoothing: antialiased; } a { color: #202020; text-decoration: none !important; } a, input, button, .form-control { -webkit-transition: 0.5s; transition: 0.5s; } a:hover, a:active, a:focus { color: #29ca8e; outline: none; } ::-webkit-scrollbar{ width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { cursor: pointer; background: #202020; } .overlay { background: linear-gradient(to top right, #d2b48c, #000000); opacity: 0.9; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; } .grid { position: fixed; width: 100%; height: 100%; z-index: 1; } .grid-line { height: 300vh; border-right: 1px solid rgba(255,255,255,0.02); } .google-map iframe { border: 0; margin-top: 20px; } .subscribe-form { position: relative; } .subscribe-form .form-control { background: #ffffff; box-shadow: none; border: 0; border-radius: 50px; width: 340px; height: 45px; padding: 6px 30px; } .subscribe-form button[type="submit"] { background: transparent; border: 0; outline: none; } .subscribe-form .fa { cursor: pointer; position: absolute; top: 12px; right: 12px; color: #d2b48c; font-size: 20px; } /*--------------------------------------- PRE LOADER -----------------------------------------*/ .preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; flex-flow: row nowrap; justify-content: center; align-items: center; background: none repeat scroll 0 0 #ffffff; } .spinner { border: 1px solid transparent; border-radius: 3px; position: relative; } .spinner:before { content: ''; box-sizing: border-box; position: absolute; top: 50%; left: 50%; width: 45px; height: 45px; margin-top: -10px; margin-left: -10px; border-radius: 50%; border: 1px solid #575757; border-top-color: #ffffff; animation: spinner .9s linear infinite; } @-webkit-@keyframes spinner { to {transform: rotate(360deg);} } @keyframes spinner { to {transform: rotate(360deg);} } /*--------------------------------------- MENU -----------------------------------------*/ .menu, .menu-bg, .menu-burger { position: fixed; z-index: 222; width: 50px; height: 50px; line-height: 30px; font-size: 25px; text-align: center; border-radius: 100%; right: 25px; top: 25px; } .menu-bg { background: #101010; pointer-events: none; transition: .3s; right: 50px; top: 50px; transform: translate3d(50%, -50%, 0); transform-origin: center center; } .menu-bg.fs { transform: translate3d(50%, -50%, 0); width: 500vw; height: 500vw; } .menu-burger { color: #ffffff; padding-top: 11px; -webkit-user-select: none; cursor: pointer; transition: .4s; transform-origin: center; z-index: 9999; } .menu-burger.fs { transform: rotate(-180deg) translateY(5px); } .menu-items { display: flex; flex-direction: column; justify-content: center; align-content: center; position: absolute; z-index: 9999; width: 100%; height: 100%; opacity: 0; transition: .4s; margin-top: 50px; transform: translateY(-200%); pointer-events: none; } .menu-items ul.menu { position: relative; width: 100%; height: 100%; text-align: left; top: 10px; } .menu-items ul.menu li { display: block; list-style: none; transition: 1s; opacity: 0; margin: 5px 0; } .menu-items ul.menu li a { color: #ffffff; font-size: 18px; position: relative; } .menu-items ul.menu li a:after { content: ""; width: 0; height: 2px; border-radius: 50px; position: absolute; bottom: 13px; transition: 0.5s; margin: 0 auto; display: block; right: 0; left: 0; } .menu-items ul.menu li a:hover:after { content: ""; background: #d2b48c; width: 100%; } .menu-items.fs { transform: translateY(0); pointer-events: auto; opacity: 1; } .menu-items.fs ul li { opacity: 1; } address p { color: #f9f9f9; } /*--------------------------------------- HOME -----------------------------------------*/ #home { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; text-align: center; position: relative; } #home .container { width: 100%; } .home-info { display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; z-index: 2; width: 100%; height: 100vh; } .countdown { text-align: center; margin: 50px 0; padding: 0; } .countdown li { color: #ffffff; list-style: none; display: inline-block; margin: 0 20px; } .countdown span { font-size: 25px; } .countdown h3 { font-size: 14px; text-transform: uppercase; margin: 10px 0; } /*--------------------------------------- SOCIAL ICON -----------------------------------------*/ .social-icon { position: relative; padding: 0; margin: 30px 0 0 0; text-align: center; } .social-icon .line { background: #ffffff; width: 50px; height: 2px; margin-right: 10px; position: relative; bottom: 5px; } .social-icon li { display: inline-block; list-style: none; } .social-icon li a { border-radius: 50px; color: #ffffff; font-size: 15px; width: 35px; height: 35px; line-height: 35px; text-decoration: none; text-align: center; position: relative; margin: 5px 5px 5px 0; } .social-icon li a:hover { background: #d2b48c; color: #ffffff; } /*--------------------------------------- RESPONSIVE STYLES -----------------------------------------*/ @media screen and (max-width: 480px) { .home-info { padding: 0 1em 0 1em; } .countdown li { margin: 0 12px; } address { margin-top: 50px; } } @media screen and (max-width: 360px) { h1 { font-size: 1.50em; } .menu-items { margin: 100px 0; } .countdown span { font-size: 20px; } .countdown h3 { font-size: 12px; } } |
Download source code:
If you are facing any error while creating a connection between both files or miss some lines of code. Then we created a source code file. You can download this source code file from the below button. The source code file is available in a zip file.
Are you still facing any errors? If yes then ask about your problems in the comment section.
Thanks for reading this article.
Download Source CodeClick to Download