countdown.page.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ion-content {
  2. --background: linear-gradient(135deg, var(--ion-color-primary) 0%, var(--ion-color-secondary) 100%);
  3. }
  4. .countdown-container {
  5. display: flex;
  6. flex-direction: column;
  7. align-items: center;
  8. justify-content: center;
  9. height: 100%;
  10. text-align: center;
  11. color: white;
  12. .activity-icon {
  13. font-size: 64px;
  14. margin-bottom: 24px;
  15. padding: 20px;
  16. border-radius: 50%;
  17. background: rgba(255, 255, 255, 0.1);
  18. backdrop-filter: blur(10px);
  19. }
  20. h2 {
  21. font-size: 24px;
  22. font-weight: 500;
  23. margin-bottom: 40px;
  24. text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  25. }
  26. .timer {
  27. background: rgba(255, 255, 255, 0.1);
  28. backdrop-filter: blur(10px);
  29. border-radius: 20px;
  30. padding: 32px;
  31. margin: 32px 0;
  32. width: 80%;
  33. max-width: 300px;
  34. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  35. h1 {
  36. font-size: 72px;
  37. font-weight: bold;
  38. margin-bottom: 24px;
  39. font-family: 'SF Mono', 'Courier New', monospace;
  40. text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  41. }
  42. }
  43. .control-buttons {
  44. display: flex;
  45. gap: 24px;
  46. margin-top: 40px;
  47. ion-button {
  48. --background: rgba(255, 255, 255, 0.1);
  49. --background-hover: rgba(255, 255, 255, 0.2);
  50. --background-activated: rgba(255, 255, 255, 0.15);
  51. --border-radius: 50%;
  52. --padding-start: 0;
  53. --padding-end: 0;
  54. width: 64px;
  55. height: 64px;
  56. margin: 0;
  57. ion-icon {
  58. font-size: 28px;
  59. }
  60. &::part(native) {
  61. border-radius: 50%;
  62. }
  63. }
  64. }
  65. }
  66. ion-progress-bar {
  67. height: 8px;
  68. border-radius: 4px;
  69. --buffer-background: rgba(255, 255, 255, 0.2);
  70. --progress-background: rgba(255, 255, 255, 0.8);
  71. overflow: hidden;
  72. }
  73. ion-header ion-toolbar {
  74. --background: transparent;
  75. --border-width: 0;
  76. ion-title {
  77. color: white;
  78. font-weight: 500;
  79. }
  80. ion-button {
  81. --color: white;
  82. }
  83. }
  84. @keyframes pulse {
  85. 0% {
  86. transform: scale(1);
  87. }
  88. 50% {
  89. transform: scale(1.05);
  90. }
  91. 100% {
  92. transform: scale(1);
  93. }
  94. }
  95. .timer h1 {
  96. animation: pulse 2s infinite ease-in-out;
  97. }
  98. @media (max-width: 360px) {
  99. .countdown-container {
  100. .activity-icon {
  101. font-size: 48px;
  102. }
  103. .timer h1 {
  104. font-size: 56px;
  105. }
  106. .control-buttons ion-button {
  107. width: 56px;
  108. height: 56px;
  109. }
  110. }
  111. }