Stat.vue 761 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. },
  16. text: {
  17. type: String
  18. },
  19. });
  20. </script>
  21. <style scoped lang="scss">
  22. .card {
  23. background: var(--on-primary-color-alt);
  24. color: var(--primary-color-alt);
  25. border-radius: 10px;
  26. width: 36rem;
  27. height: 15rem;
  28. display: flex;
  29. flex-direction: column;
  30. justify-content: center;
  31. align-items: center;
  32. text-align: center;
  33. p:first-child{
  34. font-weight: 600;
  35. font-size: 60px;
  36. line-height: 68px;
  37. text-align: center;
  38. margin-bottom: 0.5rem;
  39. }
  40. @media (max-width: 1240px) {
  41. height: 12rem;
  42. }
  43. }
  44. </style>