NotStartedTip.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="not-started-overlay" @click="$emit('close')">
  3. <div class="not-started-card" @click.stop>
  4. <div class="icon-wrap">
  5. <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
  6. stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  7. <circle cx="12" cy="12" r="10" />
  8. <line x1="8" y1="12" x2="16" y2="12" />
  9. </svg>
  10. </div>
  11. <p class="name">{{ studentName }}</p>
  12. <p class="msg">{{ lang.ssSpkNotStartedMsg }}</p>
  13. <button class="ack-btn" @click="$emit('close')">{{ lang.ssSpkNotStartedAck }}</button>
  14. </div>
  15. </div>
  16. </template>
  17. <script lang="ts" setup>
  18. import { lang } from '@/main'
  19. defineProps<{ studentName: string }>()
  20. defineEmits<{ close: [] }>()
  21. </script>
  22. <style lang="scss" scoped>
  23. .not-started-overlay {
  24. position: fixed; inset: 0;
  25. background: rgba(0,0,0,.3);
  26. display: flex; align-items: center; justify-content: center;
  27. z-index: 50;
  28. }
  29. .not-started-card {
  30. background: #fff;
  31. border-radius: 16px;
  32. padding: 24px 32px;
  33. max-width: 280px;
  34. text-align: center;
  35. box-shadow: 0 20px 25px rgba(0,0,0,.1);
  36. }
  37. .icon-wrap {
  38. width: 40px; height: 40px;
  39. border-radius: 50%;
  40. background: #f3f4f6;
  41. color: #9ca3af;
  42. display: flex; align-items: center; justify-content: center;
  43. margin: 0 auto 12px;
  44. }
  45. .name {
  46. font-size: 14px; font-weight: 500; color: #111827;
  47. margin: 0 0 4px;
  48. }
  49. .msg {
  50. font-size: 12px; color: #6b7280;
  51. margin: 0 0 20px;
  52. }
  53. .ack-btn {
  54. width: 100%;
  55. padding: 8px 0;
  56. font-size: 14px; font-weight: 500;
  57. color: #374151;
  58. background: #f3f4f6;
  59. border: none;
  60. border-radius: 8px;
  61. cursor: pointer;
  62. transition: background .15s;
  63. &:hover { background: #e5e7eb; }
  64. }
  65. </style>