|
| 1 | +/* Import Screenly Design System */ |
| 2 | +@import '@screenly/edge-apps/styles'; |
| 3 | + |
| 4 | +@font-face { |
| 5 | + font-family: 'Inria Sans'; |
| 6 | + src: url('/static/fonts/InriaSans-Bold.ttf') format('truetype'); |
| 7 | + font-weight: 700; |
| 8 | + font-style: normal; |
| 9 | + font-display: swap; |
| 10 | +} |
| 11 | + |
| 12 | +@font-face { |
| 13 | + font-family: 'Inria Sans'; |
| 14 | + src: url('/static/fonts/InriaSans-Regular.ttf') format('truetype'); |
| 15 | + font-weight: 400; |
| 16 | + font-style: normal; |
| 17 | + font-display: swap; |
| 18 | +} |
| 19 | + |
| 20 | +:root { |
| 21 | + --theme-color-primary: #ac1fff; |
| 22 | +} |
| 23 | + |
| 24 | +* { |
| 25 | + box-sizing: border-box; |
| 26 | +} |
| 27 | + |
| 28 | +body { |
| 29 | + margin: 0; |
| 30 | + padding: 0; |
| 31 | + overflow: hidden; |
| 32 | + color: white; |
| 33 | + font-family: 'Inter', system-ui, sans-serif; |
| 34 | + background: url('/static/images/bg.webp') no-repeat center center; |
| 35 | + background-size: cover; |
| 36 | + text-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.25); |
| 37 | +} |
| 38 | + |
| 39 | +body::before { |
| 40 | + content: ''; |
| 41 | + position: fixed; |
| 42 | + inset: 0; |
| 43 | + z-index: var(--z-index-backdrop); |
| 44 | + pointer-events: none; |
| 45 | + background: rgba(0, 0, 0, 0.2); |
| 46 | + backdrop-filter: blur(7px); |
| 47 | +} |
| 48 | + |
| 49 | +auto-scaler { |
| 50 | + position: relative; |
| 51 | + z-index: var(--z-index-content); |
| 52 | +} |
| 53 | + |
| 54 | +#app { |
| 55 | + width: 100%; |
| 56 | + height: 100%; |
| 57 | +} |
| 58 | + |
| 59 | +.content { |
| 60 | + display: flex; |
| 61 | + justify-content: center; |
| 62 | + align-items: center; |
| 63 | + height: calc(100% - 5rem); |
| 64 | +} |
| 65 | + |
| 66 | +.timer-section { |
| 67 | + display: flex; |
| 68 | + flex-direction: column; |
| 69 | + align-items: center; |
| 70 | + gap: 2rem; |
| 71 | +} |
| 72 | + |
| 73 | +.date-text { |
| 74 | + font-family: 'Inter', system-ui, sans-serif; |
| 75 | + font-size: 2.8125rem; |
| 76 | + font-weight: 400; |
| 77 | + color: white; |
| 78 | + letter-spacing: -0.1125rem; |
| 79 | + text-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.25); |
| 80 | +} |
| 81 | + |
| 82 | +.timer-card { |
| 83 | + position: relative; |
| 84 | + display: flex; |
| 85 | + justify-content: center; |
| 86 | + align-items: center; |
| 87 | + width: 41.25rem; |
| 88 | + height: 41.25rem; |
| 89 | + border-radius: 1.5rem; |
| 90 | + border: 0.047rem solid rgba(255, 255, 255, 0.1); |
| 91 | + background: |
| 92 | + linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), |
| 93 | + linear-gradient(90deg, rgba(68, 68, 68, 0.4), rgba(68, 68, 68, 0.4)), |
| 94 | + linear-gradient( |
| 95 | + 135deg, |
| 96 | + rgba(255, 255, 255, 0.08) 0%, |
| 97 | + rgba(255, 255, 255, 0.02) 100% |
| 98 | + ); |
| 99 | + box-shadow: |
| 100 | + 0 0.84rem 2.52rem 0 rgba(0, 0, 0, 0.15), |
| 101 | + 0 0.047rem 0 0 rgba(255, 255, 255, 0.15) inset, |
| 102 | + 0 -0.047rem 0 0 rgba(255, 255, 255, 0.05) inset; |
| 103 | +} |
| 104 | + |
| 105 | +.progress-ring-container { |
| 106 | + position: absolute; |
| 107 | + inset: 0; |
| 108 | + display: flex; |
| 109 | + justify-content: center; |
| 110 | + align-items: center; |
| 111 | +} |
| 112 | + |
| 113 | +.progress-ring-container svg { |
| 114 | + width: 73%; |
| 115 | + height: 73%; |
| 116 | +} |
| 117 | + |
| 118 | +.timer-display { |
| 119 | + position: relative; |
| 120 | + display: flex; |
| 121 | + flex-direction: column; |
| 122 | + align-items: center; |
| 123 | + gap: 0.5rem; |
| 124 | + z-index: 1; |
| 125 | +} |
| 126 | + |
| 127 | +.timer-digits { |
| 128 | + font-family: 'Inria Sans', sans-serif; |
| 129 | + font-weight: 700; |
| 130 | + font-size: 5.8rem; |
| 131 | + line-height: 1; |
| 132 | + letter-spacing: 0.15rem; |
| 133 | + color: white; |
| 134 | + font-variant-numeric: tabular-nums; |
| 135 | +} |
| 136 | + |
| 137 | +.timer-digits .accent { |
| 138 | + color: var(--theme-color-primary); |
| 139 | +} |
| 140 | + |
| 141 | +.timer-total { |
| 142 | + font-family: 'Inria Sans', sans-serif; |
| 143 | + font-weight: 400; |
| 144 | + font-size: 1.7rem; |
| 145 | + color: rgba(255, 255, 255, 0.7); |
| 146 | +} |
| 147 | + |
| 148 | +@media (orientation: portrait) { |
| 149 | + #app { |
| 150 | + display: flex; |
| 151 | + flex-direction: column; |
| 152 | + height: 100%; |
| 153 | + } |
| 154 | + |
| 155 | + .content { |
| 156 | + flex: 1; |
| 157 | + height: auto; |
| 158 | + } |
| 159 | + |
| 160 | + .timer-card { |
| 161 | + width: 36rem; |
| 162 | + height: 36rem; |
| 163 | + } |
| 164 | + |
| 165 | + .timer-digits { |
| 166 | + font-size: 5rem; |
| 167 | + } |
| 168 | + |
| 169 | + .date-text { |
| 170 | + font-size: 2.4rem; |
| 171 | + } |
| 172 | +} |
0 commit comments