basic.component.html 3.73 KB
Newer Older
Ooh-Ao committed
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
<!-- ========== MAIN CONTENT ========== -->
<main id="content" class="w-full max-w-md mx-auto p-6">
  <a routerLink="/dashboard/sales" class="header-logo">
    <img
      src="./assets/img/brand-logos/desktop-logo.png"
      alt="logo"
      class="mx-auto block dark:hidden"
    />
    <img
      src="./assets/img/brand-logos/desktop-dark.png"
      alt="logo"
      class="mx-auto hidden dark:block"
    />
  </a>
  <div class="mt-7 bg-white rounded-sm shadow-sm dark:bg-bgdark">
    <div class="p-4 sm:p-7">
      <div class="text-center">
        <h1 class="block text-2xl font-bold text-gray-800 dark:text-white">
          Two Step Verification
        </h1>
        <p class="mt-3 text-sm text-gray-600 dark:text-white/70">
          Please enter the 4 digit code sent to ********25
        </p>
      </div>

      <div class="mt-5">
        <!-- Form -->
        <form>
          <div class="grid gap-y-4">
            <div class="grid grid-cols-4 gap-4 max-w-[15rem] mx-auto">
              <!-- Form Group -->
              <input
                #oneInput
                type="text"
                class="text-center py-2 px-3 block w-full border-gray-200 rounded-sm text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70"
                required
                id="one"
                maxlength="1"
                (keyup)="onDigitInput($event, twoInput)"
              />
              <!-- End Form Group -->
              <!-- Form Group -->
              <input
                #twoInput
                type="text"
                class="text-center py-2 px-3 block w-full border-gray-200 rounded-sm text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70"
                required
                id="two"
                maxlength="1"
                (keyup)="onDigitInput($event, threeInput)"
              />
              <!-- End Form Group -->
              <!-- Form Group -->
              <input
                #threeInput
                type="text"
                class="text-center py-2 px-3 block w-full border-gray-200 rounded-sm text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70"
                required
                id="three"
                maxlength="1"
                (keyup)="onDigitInput($event, fourInput)"
              />
              <!-- End Form Group -->
              <!-- Form Group -->
              <input
                #fourInput
                type="text"
                class="text-center py-2 px-3 block w-full border-gray-200 rounded-sm text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70"
                required
                id="four"
                maxlength="1"
              />
              <!-- End Form Group -->
            </div>
            <button
              type="submit"
              class="mt-4 w-full py-2 px-3 inline-flex justify-center items-center gap-2 rounded-sm border border-transparent font-semibold bg-primary text-white hover:bg-primary focus:outline-none focus:ring-0 focus:ring-primary focus:ring-offset-0 transition-all text-sm dark:focus:ring-offset-white/10"
            >
              Confirm
            </button>

            <p class="text-center text-xs text-gray-600 dark:text-white/70">
              Didn't received any code ?
              <a
                class="text-primary decoration-2 hover:underline font-medium"
                routerLink="/forgotpassword/basic"
              >
                Resend
              </a>
            </p>
          </div>
        </form>
        <!-- End Form -->
      </div>
    </div>
  </div>
</main>
<!-- ========== END MAIN CONTENT ========== -->