Advertisement
kirya_shkolnik

gm

May 11th, 2022
1,270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 6.60 KB | None | 0 0
  1.  
  2. <div class="wrapper" style="
  3.    position: fixed;
  4.    top: 0;
  5.    left: 0;
  6.    width: 100%;
  7.    height: 100%;
  8. ">
  9. <style>html,
  10. body,
  11. .wrapper {
  12.     height: 100%;
  13. }
  14.  
  15. html,
  16. body {
  17.     padding: 0;
  18.     margin: 0;
  19. }
  20.  
  21. body {
  22.     font: 1rem / 1.516 'Montserrat', Arial, sans-serif;
  23. }
  24.  
  25. .wrapper {
  26.     position: relative;
  27.     background: url(https://source.unsplash.com/vZlTg_McCDo/1920x1080) no-repeat center center/cover;
  28. }
  29.  
  30. .wrapper:before {
  31.     content: '';
  32.     position: absolute;
  33.     top: 0;
  34.     left: 0;
  35.     width: 100%;
  36.     height: 100%;
  37.     background-color: rgba(33, 33, 33, 0.25);
  38. }
  39.  
  40. header,
  41. .content,
  42. footer {
  43.     position: absolute;
  44. }
  45.  
  46. header,
  47. footer {
  48.     width: 100%;
  49. }
  50.  
  51. header {
  52.     top: 0;
  53.     text-align: center;
  54. }
  55.  
  56. .header__logo {
  57.     max-width: 65px;
  58.     fill: #fff;
  59. }
  60.  
  61. .content {
  62.     top: 140px;
  63.     left: 50%;
  64.     text-align: center;
  65.     color: #fff;
  66.     transform: translate(-50%, 0);
  67. }
  68.  
  69. .content h1 {
  70.     margin-top: 0;
  71. }
  72.  
  73. .content form {
  74.     margin: auto;
  75.     display: table;
  76. }
  77.  
  78. .content input {
  79.     float: left;
  80.     font-size: 16px;
  81.     border: 1px solid #fff;
  82. }
  83.  
  84. .content input[type=email] {
  85.     padding: 12px;
  86.     background: #fff;
  87.     border-top-left-radius: 4px;
  88.     border-bottom-left-radius: 4px;
  89. }
  90.  
  91. .content input[type=submit] {
  92.     padding: 12px 24px;
  93.     color: #fff;
  94.     background: transparent;
  95.     border-top-right-radius: 4px;
  96.     border-bottom-right-radius: 4px;
  97.     cursor: pointer;
  98.     transition: all .235s ease-in-out;
  99. }
  100.  
  101. .content input[type=submit]:hover {
  102.     color: #212121;
  103.     background: #fff;
  104. }
  105.  
  106. .countdown {
  107.     margin: auto;
  108.     display: table;
  109.     font-size: 28px;
  110.     font-weight: 500;
  111. }
  112.  
  113. .countdown > div {
  114.     float: left;
  115.     min-width: 80px;
  116. }
  117.  
  118. .countdown span {
  119.     position: relative;
  120.     display: block;
  121.     font-size: 16px;
  122.     text-align: center;
  123. }
  124.  
  125. .countdown span:before {
  126.     content: '';
  127.     position: absolute;
  128.     top: -2px;
  129.     right: 0;
  130.     left: 0;
  131.     margin-right: auto;
  132.     margin-left: auto;
  133.     width: 20px;
  134.     height: 1px;
  135.     background: #fff;
  136. }
  137.  
  138. footer {
  139.     padding-bottom: 12px;
  140.     bottom: 0;
  141. }
  142.  
  143. .footer__links {
  144.     text-align: center;
  145.     list-style-type: none;
  146. }
  147.  
  148. .footer__links li {
  149.     display: inline-block;
  150. }
  151.  
  152. .footer__links li:nth-of-type(n+2) {
  153.     margin-left: 12px;
  154. }
  155.  
  156. .footer__links a {
  157.     padding: 8px 0;
  158.     display: block;
  159.     width: 41px;
  160.     text-align: center;
  161.     color: #fff;
  162.     border: 1px solid;
  163.     border-radius: 50%;
  164.     transition: opacity .235s ease-in-out;
  165. }
  166.  
  167. .footer__links a:hover {
  168.     opacity: .5;
  169. }
  170.  
  171. .footer__links .fa {
  172.     vertical-align: middle;
  173.     font-size: 21px;
  174. }</style>
  175.   <header>
  176.     <img src="https://1i276tlpzsba6c4ef4sj1952-wpengine.netdna-ssl.com/wp-content/uploads/2020/05/Logo-home-wide2-black.png" style="max-width: 300px;">
  177.    
  178.   </header>
  179.  
  180.   <main class="content">
  181.     <h1>COMING SOON!</h1>
  182.  
  183.     <div class="countdown">
  184.       <div class="countdown__days">
  185.         <div class="number">20</div>
  186.         <span class="">Days</span>
  187.       </div>
  188.  
  189.       <div class="countdown__hours">
  190.         <div class="number">0</div>
  191.         <span class="">Hours</span>
  192.       </div>
  193.  
  194.       <div class="countdown__minutes">
  195.         <div class="number">0</div>
  196.         <span class="">Minutes</span>
  197.       </div>
  198.  
  199.       <div class="countdown__seconds">
  200.         <div class="number">0</div>
  201.         <span class="">Seconds</span>
  202.       </div>
  203.     </div>
  204.  
  205.     <p>Our website is under construction. We`ll be here soon<br>with our new awesome site.</p>
  206.  
  207.    
  208.   </main>
  209.  
  210.  
  211.   <div class="carousel-wrapper">
  212.         <div class="carousel">
  213.           <div><img src="https://cdn.shopify.com/s/files/1/0642/5513/1881/t/1/assets/1.jpg?v=1652300346"></div>
  214.           <div><img src="https://cdn.shopify.com/s/files/1/0642/5513/1881/t/1/assets/2.jpg?v=1652300356"></div>
  215.           <div><img src="https://cdn.shopify.com/s/files/1/0642/5513/1881/t/1/assets/3.jpg?v=1652300356"></div>
  216.           <div><img src="https://cdn.shopify.com/s/files/1/0642/5513/1881/t/1/assets/4.jpg?v=1652300356"></div>
  217.           <div><img src="https://cdn.shopify.com/s/files/1/0642/5513/1881/t/1/assets/5.jpg?v=1652300356"></div>
  218.           <div><img src="https://cdn.shopify.com/s/files/1/0642/5513/1881/t/1/assets/6.jpg?v=1652300356"></div>
  219.           <div><img src="https://cdn.shopify.com/s/files/1/0642/5513/1881/t/1/assets/7.jpg?v=1652300356"></div>
  220.           <div><img src="https://cdn.shopify.com/s/files/1/0642/5513/1881/t/1/assets/8.jpg?v=1652300356"></div>
  221.         </div>
  222.   </div>
  223.  
  224.   <style> .carousel{
  225.     width:90%;
  226.     margin:0px auto;
  227.     position: absolute;
  228.     bottom: 10px;
  229.   }
  230.   .slick-slide{
  231.     margin:10px;
  232.   }
  233.   .slick-slide img{
  234.     width:100%;
  235.     border: 2px solid #fff;
  236.   }
  237.     .slick-track{
  238.     display: flex;
  239.     }
  240.     .carousel button{
  241.         display: none !important;
  242.     }
  243.     @media (max-height: 495px){
  244.       .carousel{
  245.         display: none;
  246.       }
  247.     }
  248.   </style>
  249.   <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"> </script>
  250.   <script src="//cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.5.8/slick.min.js"> </script>
  251.   <script>
  252.   $(document).ready(function(){
  253.     $('.carousel').slick({
  254.     slidesToShow: 3,
  255.     dots:false,
  256.     centerMode: true,
  257.     autoplay: true,
  258.     autoplaySpeed: 2500,
  259.     });
  260.   });
  261.   </script>
  262.  
  263.   <script>(() => {
  264.   // Specify the deadline date
  265.   const deadlineDate = new Date("May 31, 2022 23:59:59").getTime();
  266.  
  267.   // Cache all countdown boxes into consts
  268.   const countdownDays = document.querySelector(".countdown__days .number");
  269.   const countdownHours = document.querySelector(".countdown__hours .number");
  270.   const countdownMinutes = document.querySelector(
  271.     ".countdown__minutes .number"
  272.   );
  273.   const countdownSeconds = document.querySelector(
  274.     ".countdown__seconds .number"
  275.   );
  276.  
  277.   // Update the count down every 1 second (1000 milliseconds)
  278.   setInterval(() => {
  279.     // Get current date and time
  280.     const currentDate = new Date().getTime();
  281.  
  282.     // Calculate the distance between current date and time and the deadline date and time
  283.     const distance = deadlineDate - currentDate;
  284.  
  285.     // Calculations the data for remaining days, hours, minutes and seconds
  286.     const days = Math.floor(distance / (1000 * 60 * 60 * 24));
  287.     const hours = Math.floor(
  288.       (distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)
  289.     );
  290.     const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  291.     const seconds = Math.floor((distance % (1000 * 60)) / 1000);
  292.  
  293.     // Insert the result data into individual countdown boxes
  294.     countdownDays.innerHTML = days;
  295.     countdownHours.innerHTML = hours;
  296.     countdownMinutes.innerHTML = minutes;
  297.     countdownSeconds.innerHTML = seconds;
  298.   }, 1000);
  299. })();
  300. </script>
  301. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement