templates/modules/auth/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.   <meta charset="UTF-8">
  5.   <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.   <script src="https://www.google.com/recaptcha/api.js?render=6LdO5KEaAAAAAMo8D2jUQU3qHkFYbWBKdGzoDOoA" async defer></script>
  8.   <script src="https://auth.venderes.com/static/_assets/account.js"></script>
  9.   <script>
  10.     const auth = new AccountManager(
  11.       '{{content.data.rp}}',
  12.       [1,2,3],
  13.       '.app-formObject',
  14.       '[data-formInp="{% verbatim %}{{name}}{% endverbatim %}"]',
  15.       'wrong-inp'
  16.     );
  17.     auth.saveRedirectEndpoint('{{content.data.pt}}');
  18.     auth.error_func = () => {PROGRESSBAR(false);};
  19.     function PROGRESSBAR(status) {
  20.       var changeto = 'none';
  21.       if(status){ changeto = ''; }
  22.       document.getElementsByClassName("PROGRESSBAR")[0].style.display = changeto;
  23.     }
  24.   </script>
  25.   <title>Venderes Auth | {{ title }} | venderes.com</title>
  26. </head>
  27. <style>
  28.   @font-face{
  29.     font-family:FoRegular;
  30.     src:url(/auth_assets/fonts/Regular.ttf);
  31.     font-display:swap
  32.   }
  33.   @font-face{
  34.     font-family:FoEBold;
  35.     src:url(/auth_assets/fonts/eBold.ttf);
  36.     font-display:swap
  37.   }
  38.   @font-face{
  39.     font-family:FoBold;
  40.     src:url(/auth_assets/fonts/Bold.ttf);
  41.     font-display:swap
  42.   }
  43.   @font-face{
  44.     font-family:FoMedium;
  45.     src:url(/auth_assets/fonts/Medium.ttf);
  46.     font-display:swap
  47.   }
  48.   @font-face{
  49.     font-family:FoLight;
  50.     src:url(/auth_assets/fonts/Light.ttf);
  51.     font-display:swap
  52.   }
  53.   * { 
  54.     margin: 0;
  55.     padding: 0;
  56.     box-sizing: border-box;
  57.     -webkit-tap-highlight-color: transparent;
  58.     -moz-tap-highlight-color: transparent;
  59.     text-size-adjust: none;
  60.     -webkit-text-size-adjust: none;
  61.     font-family: FoRegular;
  62.   }
  63.   html {
  64.     min-height: 100%;
  65.     height: 100%;
  66.   }
  67.   body {
  68.     background-color: #fcfcfc;
  69.     height: 100%;
  70.   }
  71.   .PROGRESSBAR, .PROGRESSBAR::after {
  72.     height: 5px;
  73.     width: 100%;
  74.     margin: 0;
  75.   }
  76.   .PROGRESSBAR::before {
  77.     content: "";
  78.     width: 100%;
  79.     height: 100%;
  80.     position: fixed;
  81.     background-color: rgba(19, 19, 19, 0.5);
  82.     z-index: -1;
  83.   }
  84.   .PROGRESSBAR {
  85.     background-color: #e8e8e8;
  86.     display: flex;
  87.     position: fixed;
  88.     z-index: 999999999;
  89.     top: 0;
  90.   }
  91.   .PROGRESSBAR::after {
  92.     background-color: #ffbd77;
  93.     content: "";
  94.     animation: progressbar 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  95.   }
  96.   @-webkit-keyframes progressbar {
  97.     0% { margin-left: 0px; margin-right: 100%; }
  98.     50% { margin-left: 25%; margin-right: 0%; }
  99.     100% { margin-left: 100%; margin-right: 0; }
  100.   }
  101.   @keyframes progressbar {
  102.     0% { margin-left: 0px; margin-right: 100%; }
  103.     50% { margin-left: 25%; margin-right: 0%; }
  104.     100% { margin-left: 100%; margin-right: 0; }
  105.   }
  106.   .container {
  107.     width: 100%;
  108.     min-height: 100%;
  109.     display: flex;
  110.   }
  111.   .form-container {
  112.     width: 100%;
  113.     max-width: 600px;
  114.     background-color: transparent;
  115.     flex: none;
  116.     padding:50px;
  117.     display:flex;
  118.     flex-direction: column;
  119.     justify-content: space-between;
  120.   }
  121.   .form-logo, .form-logo-mini {
  122.     height: 30px;
  123.     width: 100%;
  124.     background: var(--logourl) no-repeat center center / contain;
  125.     flex: none;
  126.   }
  127.   .form-logo-mini {
  128.     height: 20px;
  129.   }
  130.   .form-content {
  131.     flex: auto;
  132.     margin:20px 0;
  133.     display: flex;
  134.     flex-direction: column;
  135.     justify-content: center;
  136.   }
  137.   .form-content-title {
  138.     font-family: FoLight;
  139.     font-size: 40px;
  140.     color: #2c2c2c;
  141.     letter-spacing: -1px;
  142.     text-align: center;
  143.     margin:20px 0 40px;
  144.     font-variant: all-petite-caps;
  145.   }
  146.   hr {
  147.     border:none;
  148.     border-top:1px solid #ddd;
  149.   }
  150.   .form-content-inputs-container > * {
  151.     display:block;
  152.   }
  153.   .form-content-inputs-container button {
  154.     margin: 10px 0;
  155.     width: 100%;
  156.     border: none;
  157.     padding: 20px 25px;
  158.     font-size: 18px;
  159.     outline: none;
  160.     border-radius: 22px;
  161.     color: white;
  162.     font-family: FoBold;
  163.     background-repeat: no-repeat;
  164.     background-size: cover;
  165.     background-position: center center;
  166.     background-image: linear-gradient(119deg, #131313, transparent),  url(/auth_assets/authenticate_module/btn-rainbow.png);
  167.     background-color: #101010;
  168.     transition: 0.3s background-color;
  169.     cursor: pointer;
  170.   }
  171.   .form-content-inputs-container button:hover,
  172.   .form-content-inputs-container button:focus {
  173.     background-color: #464646;
  174.   }
  175.   .form-content-inputs-container label {
  176.     display:flex;
  177.     flex-direction: column;
  178.   }
  179.   .form-content-inputs-container label span {
  180.     font-size: 17px;
  181.     font-family: FoMedium;
  182.     color:#2c2c2c;
  183.     padding: 0 11px;
  184.   }
  185.   .form-content-inputs-container label input {
  186.     margin:7px 0 12px;
  187.     background-color: #efefef;
  188.     border:none;
  189.     padding: 15px 30px;
  190.     font-size: 17px;
  191.     outline: none;
  192.     border-radius: 22px;
  193.     transition: 0.3s background-color;
  194.   }
  195.   .inputs-others {
  196.     display: flex;
  197.     gap:10px;
  198.   }
  199.   .inputs-others a {
  200.     width:100%;
  201.   }
  202.   .inputs-others button {
  203.     font-size: 15px;
  204.     background-color: #efefef;
  205.     background-image: none;
  206.     color:black;
  207.   }
  208.   .inputs-others button:hover,
  209.   .inputs-others button:focus {
  210.     background-color: #b9b9b9;
  211.   }
  212.   .outside-container {
  213.     flex: auto;
  214.     background-color: #efefef;
  215.     background-repeat: no-repeat;
  216.     background-size: cover;
  217.     background-position: center center;
  218.     background-image: url(/auth_assets/authenticate_module/login_bg.webp);
  219.   }
  220.   .backto-container {
  221.     position: fixed;
  222.     top:0;
  223.     right: 0;
  224.     margin:20px;
  225.   }
  226.   .backto-container a {
  227.     text-decoration: none;
  228.   }
  229.   .backto-container a div {
  230.     padding: 20px;
  231.     background-color: rgba(255,255,255,0.8);
  232.     transition: 0.3s background-color;
  233.     color: #2c2c2c;
  234.     border-radius: 20px;
  235.     font-family: FoMedium;
  236.     font-variant: all-petite-caps;
  237.   }
  238.   .backto-container a div:hover {
  239.     background-color: white;
  240.   }
  241.   .form-content-inputs-container label input.wrong-inp {
  242.     background-color: #ffece3;
  243.     box-shadow: inset 0 0 0 100px #ffece3;
  244.   }
  245.   .form-content-inputs-container label input.wrong-inp ~ span {
  246.     color: #eb4c00;
  247.     margin-top:-7px;
  248.     margin-bottom: 15px;
  249.     font-family: FoRegular;
  250.   }
  251.   .grecaptcha-badge {
  252.     display: none;
  253.   }
  254.   @media only screen and (max-width: 1050px) {
  255.     .backto-container {
  256.       display: none;
  257.     }
  258.     .outside-container {
  259.       display: none;
  260.     }
  261.     .form-container {
  262.       margin: auto;
  263.     }
  264.   }
  265.   @media only screen and (max-width: 800px) {
  266.     .form-logo {
  267.       display: none;
  268.     }
  269.     .form-container {
  270.       flex-direction: column-reverse;
  271.     }
  272.   }
  273.   @media only screen and (max-width: 550px) {
  274.     .form-container {
  275.       padding: 50px 30px;
  276.     }
  277.   }
  278.   
  279.   @media only screen and (max-height: 660px) {
  280.     .form-logo {
  281.       display: none;
  282.     }
  283.     .form-container {
  284.       flex-direction: column-reverse;
  285.     }
  286.   }
  287.   @media only screen and (max-width: 600px) {
  288.     .inputs-others {
  289.       gap: unset;
  290.       flex-direction: column;
  291.     }
  292.   }
  293.   @media only screen and (max-width: 400px) {
  294.     .form-container {
  295.         padding: 50px 20px;
  296.     }
  297.     .form-content-inputs-container button {
  298.       margin: 5px 0;
  299.       padding: 18px 25px;
  300.       font-size: 16px;
  301.     }
  302.   }
  303. </style>
  304. <body>
  305.   <div class="PROGRESSBAR" style="display:none;"></div>
  306.   <div class="container">
  307.     <div class="form-container">
  308.       <div class="form-logo" style="--logourl: url(/auth_assets/logos/@main.png);"></div>
  309.       <div class="form-content">
  310.         {{ include('/modules/auth/parts/' ~ contentType ~ '.html.twig') }}
  311.       </div>
  312.       <div class="form-logo-mini" style="--logourl: url(https://cdn.pickit.lt/resources/uploads/marketingLogos/grays/{{ content.platformLogo }});"></div>
  313.     </div>
  314.     <div class="outside-container"></div>
  315.     {% if content.backButton.s %}
  316.       <div class="backto-container"><a href="{{ content.backButton.url|raw }}"><div>Grįžti į „{{ content.backButton.name }}“</div></a></div>
  317.     {% endif %}
  318.   </div>
  319. </body>
  320. </html>