Stat.vue 864 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <div class="card">
  3. <p>
  4. {{ props.number }}
  5. </p>
  6. <p>
  7. {{ props.text }}
  8. </p>
  9. </div>
  10. </template>
  11. <script setup lang="ts">
  12. const props = defineProps({
  13. number: {
  14. type: String,
  15. required: true,
  16. },
  17. text: {
  18. type: String,
  19. required: true,
  20. },
  21. })
  22. </script>
  23. <style scoped lang="scss">
  24. .card {
  25. background: var(--on-primary-color-alt);
  26. color: var(--primary-color-alt);
  27. border-radius: 10px;
  28. width: 36rem;
  29. height: 15rem;
  30. display: flex;
  31. flex-direction: column;
  32. justify-content: center;
  33. align-items: center;
  34. text-align: center;
  35. p:first-child {
  36. font-weight: 600;
  37. font-size: 60px;
  38. line-height: 68px;
  39. text-align: center;
  40. margin-bottom: 0.5rem;
  41. @media (max-width: 1600px) {
  42. font-size: 48px;
  43. }
  44. }
  45. @media (max-width: 1240px) {
  46. height: 12rem;
  47. }
  48. }
  49. </style>