templates/home.html.twig line 1

Open in your IDE?
  1. <html>
  2. <head>
  3.     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
  4.     <style>
  5.         .page-holder {
  6.             min-height: 100vh;
  7.         }
  8.         #timer {
  9.             width: 60%;
  10.             margin: 0 auto; }
  11.         #timer {
  12.             /* background: rgba(0, 0, 0, 0.5); */
  13.             /* border: 1px solid rgb(255,255, 255); */
  14.             width: 90%; }
  15.         #timer .time {
  16.             width: 25%;
  17.             font-size: 40px;
  18.             font-weight: 500;
  19.             border-left: 3px solid rgba(0, 0, 0, 0.3);
  20.             color: #fff;
  21.             margin-bottom: 0; }
  22.         @media (max-width: 991.98px) {
  23.             #timer .time {
  24.                 font-size: 30px; } }
  25.         #timer .time:first-child {
  26.             border-left: transparent; }
  27.         #timer .time span {
  28.             font-size: 12px;
  29.             display: block;
  30.             color: #fff;
  31.             letter-spacing: 2px;
  32.             text-transform: uppercase; }
  33.         .text-center {
  34.             text-align: center !important;
  35.         }
  36.         .d-flex {
  37.             padding: 15px;
  38.             margin: auto;
  39.             display: -webkit-box !important;
  40.             display: -ms-flexbox !important;
  41.             display: flex !important;
  42.         }
  43.         .bg-cover {
  44.             background-size: cover !important;
  45.         }
  46.         .vertical-center {
  47.             min-height: 100%;  /* Fallback for browsers do NOT support vh unit */
  48.             min-height: 100vh; /* These two lines are counted as one :-)       */
  49.             display: flex;
  50.             align-items: center;
  51.         }
  52.         .bg-text {
  53.             background-color: rgb(0,0,0); /* Fallback color */
  54.             background-color: rgba(0,0,0, 0.4); /* Black w/opacity/see-through */
  55.             color: white;
  56.             font-weight: bold;
  57.             border: 3px solid #f1f1f1;
  58.             position: absolute;
  59.             top: 50%;
  60.             left: 50%;
  61.             transform: translate(-50%, -50%);
  62.             z-index: 2;
  63.             width: 80%;
  64.             padding: 20px;
  65.             text-align: center;
  66.         }
  67.     </style>
  68. </head>
  69. <body>
  70. <div style="background: url(water.jpg)" class="page-holder bg-cover">
  71. <img src='logo.png' style="margin-top: 15px;margin-left:15px;" />
  72.     <div class="bg-text" style="border-radius: 25px;">
  73.         <div id="timer">
  74.             <div class="d-flex">
  75.                 <div class="time" id="days">{{ devices }}<span>Devices Installed</span></div>
  76.                 <div class="time pl-3" id="hours">{{ alarms }}<span>Alarms Prevented</span></div>
  77.                 <div class="time pl-3" id="minutes">{{ tracked }}<span>m3 Water tracked</span></div>
  78.                 <div class="time pl-3" id="minutes">&nbsp;<span><a href="https://portal.h2o.fi" class="btn btn-secondary" style="border-radius:25px;color: #fff; ">See How... manage.h2o.fi</a>    </span></div>
  79.             </div></div>
  80.     </div>
  81. </div>
  82. </body>
  83. </html>