public/themes/karen/security/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fa-IR" dir="rtl">
  3. <head>
  4.     <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
  5.     {% block seo %}{% endblock %}
  6.     {% set css = [
  7.         'base-assets/themes/karen/styles/app.css',
  8.         'base-assets/themes/karen/swiper/swiper.css',
  9.     ] %}
  10.     {% for url  in css %}
  11.         <link rel="stylesheet" href="{{ url('app_cdn_path' , {'path' : url})|replaceUrl('http://', 'https://') }}">
  12.     {% endfor %}
  13.     <script src="{{ url('app_cdn_path' , {'path' : 'base-assets/themes/default/js/vendor/jquery-3.4.1.min.js'})|replaceUrl('http://', 'https://') }}"></script>
  14.     {% block stylesheets %}{% endblock %}
  15.     <script type="text/javascript">
  16.         if (
  17.             localStorage.theme === "dark" ||
  18.             (!("theme" in localStorage) &&
  19.                 window.matchMedia("(prefers-color-scheme: dark)").matches)
  20.         ) {
  21.             document.documentElement.classList.add("dark");
  22.         } else {
  23.             document.documentElement.classList.remove("dark");
  24.         }
  25.     </script>
  26. </head>
  27. <body>
  28. <svg class="hidden">
  29.     <symbol id="moon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6">
  30.         <path fill-rule="evenodd"
  31.               d="M9.528 1.718a.75.75 0 0 1 .162.819A8.97 8.97 0 0 0 9 6a9 9 0 0 0 9 9 8.97 8.97 0 0 0 3.463-.69.75.75 0 0 1 .981.98 10.503 10.503 0 0 1-9.694 6.46c-5.799 0-10.5-4.7-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 0 1 .818.162Z"
  32.               clip-rule="evenodd" />
  33.     </symbol>
  34.     <symbol id="sun" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6">
  35.         <path
  36.                 d="M12 2.25a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-1.5 0V3a.75.75 0 0 1 .75-.75ZM7.5 12a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM18.894 6.166a.75.75 0 0 0-1.06-1.06l-1.591 1.59a.75.75 0 1 0 1.06 1.061l1.591-1.59ZM21.75 12a.75.75 0 0 1-.75.75h-2.25a.75.75 0 0 1 0-1.5H21a.75.75 0 0 1 .75.75ZM17.834 18.894a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 1 0-1.061 1.06l1.59 1.591ZM12 18a.75.75 0 0 1 .75.75V21a.75.75 0 0 1-1.5 0v-2.25A.75.75 0 0 1 12 18ZM7.758 17.303a.75.75 0 0 0-1.061-1.06l-1.591 1.59a.75.75 0 0 0 1.06 1.061l1.591-1.59ZM6 12a.75.75 0 0 1-.75.75H3a.75.75 0 0 1 0-1.5h2.25A.75.75 0 0 1 6 12ZM6.697 7.757a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 0 0-1.061 1.06l1.59 1.591Z" />
  37.     </symbol>
  38. </svg>
  39. <section class="relative flex items-center justify-center min-h-screen w-full">
  40.     <!-- background -->
  41.     <div class="pointer-events-none absolute inset-0 flex w-screen items-center justify-center overflow-hidden
  42.   [mask-image:radial-gradient(circle_at_center,rgba(255,255,255,1)_0%,rgba(255,255,255,0)_85%)]">
  43.         <svg
  44.                 class="absolute left-0 top-0 h-full w-full stroke-black/10 stroke-[2]
  45.     [mask-image:radial-gradient(circle_at_center,rgba(255,255,255,1)_20%,rgba(255,255,255,0)_95%)] dark:stroke-white/10">
  46.             <rect width="100%" height="100%" stroke-width="0" fill="url(#grid-pattern)"></rect>
  47.             <defs>
  48.                 <pattern id="grid-pattern" viewBox="0 0 64 64" width="60" height="60" patternUnits="userSpaceOnUse">
  49.                     <path d="M64 0H0V64" fill="none"></path>
  50.                 </pattern>
  51.             </defs>
  52.         </svg>
  53.     </div>
  54.     <div class="relative w-[27rem] mx-5 flex flex-col justify-center py-12 px-4 md:px-8 bg-white dark:bg-gray-800 shadow-md rounded-xl">
  55.         <div class="flex items-center justify-center">
  56.             <button class="toggle-theme absolute left-2 top-2 flex-center p-1.5 rounded-full text-gray-300">
  57.                 <svg class="inline-block dark:hidden size-5">
  58.                     <use href="#moon" />
  59.                 </svg>
  60.                 <svg class="hidden dark:inline size-5">
  61.                     <use href="#sun" />
  62.                 </svg>
  63.             </button>
  64.             <a href="index.html" class="flex flex-col text-center">
  65.           <span class="font-MorabbaMedium text-4xl flex items-center">
  66.             <span class="text-blue-500">
  67.                               {{ getSettings('general_info_siteName') }}
  68.             </span>
  69.           </span>
  70.             </a>
  71.         </div>
  72.         <div class="mt-10 sm:mx-auto sm:w-full sm:max-w-sm">
  73.             {% block body %}{% endblock %}
  74.         </div>
  75.     </div>
  76. </section>
  77. {% set jss = [
  78.     'base-assets/themes/karen/swiper/swiper.js',
  79.     'base-assets/themes/karen/scripts/app.js',
  80.     'base-assets/themes/karen/scripts/slider.js',
  81. ] %}
  82. {% for url in jss %}
  83.     <script src="{{ url('app_cdn_path' , {'path' : url})|replaceUrl('http://', 'https://') }}"></script>
  84. {% endfor %}
  85. {% block javascripts %}{% endblock %}
  86. </body>
  87. </html>