index.pug 1.1 KB

123456789101112131415161718192021222324252627
  1. ModalWindow(
  2. :isVisible="isVisible"
  3. @update:isVisible="$emit('update:isVisible', $event)"
  4. :title="title"
  5. :showFooter="false"
  6. :contentClass="'max-w-md'"
  7. )
  8. template([body])
  9. div(class="success-content text-center")
  10. div(class="success-icon mb-4")
  11. svg(
  12. class="w-16 h-16 mx-auto text-green-500"
  13. fill="none"
  14. stroke="currentColor"
  15. viewBox="0 0 24 24"
  16. )
  17. path(
  18. stroke-linecap="round"
  19. stroke-linejoin="round"
  20. stroke-width="2"
  21. d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
  22. )
  23. p(class="text-gray-600 dark:text-gray-400 mb-6 leading-relaxed") {{ content }}
  24. button(
  25. @click="$emit('update:isVisible', false)"
  26. class="bg-accent text-white px-6 py-3 rounded-lg font-medium hover:bg-yellow-600 transition-colors w-full"
  27. ) Понятно