|
140 | 140 | </div> |
141 | 141 | {/if} |
142 | 142 |
|
143 | | - <!-- Weitere Meetingen als Liste --> |
144 | | - <div style="width: 70%; float: left;"> |
145 | | - <!-- Weitere aktuelle Meetingen (falls vorhanden) --> |
146 | | - {#each currentItems.slice(1) as item} |
147 | | - <div style="background: #000; color: #fff; padding: 8px; margin-bottom: 4px;"> |
148 | | - <div style="font-weight: bold; font-size: 14px;">■ AKTIV: {item.user.join(', ')}</div> |
149 | | - <div>VON {formatTime(item.from)} Uhr BIS {formatTime(item.to)} Uhr</div> |
150 | | - <div>NOCH {calculateRemainingTime(item.to, now)}</div> |
151 | | - </div> |
152 | | - {/each} |
153 | | - |
154 | | - <!-- Zukünftige Meetingen (ohne erste, falls sie im Hero angezeigt wird) --> |
155 | | - {#each currentItems.length > 0 ? futureItems : futureItems.slice(1) as item} |
156 | | - <div style="color: #333; padding: 8px 0; border-bottom: 2px solid #ccc;"> |
157 | | - <div style="font-size: 18px; margin-left: 10px;"> |
158 | | - 📅 <strong>in {calculateMinutesUntil(item.from, now)} min</strong> for {item.duration || |
| 143 | + <!-- Container für Liste und QR Code --> |
| 144 | + <div style="display: flex; width: 100%;"> |
| 145 | + <!-- Weitere Meetingen als Liste --> |
| 146 | + <div style="flex: 1; margin-right: 20px;"> |
| 147 | + <!-- Weitere aktuelle Meetingen (falls vorhanden) --> |
| 148 | + {#each currentItems.slice(1) as item} |
| 149 | + <div style="background: #6b6b6b; color: #fff; padding: 8px; margin-bottom: 4px;"> |
| 150 | + 📅 <strong>UPCOMING in {calculateMinutesUntil(item.from, now)} min</strong> for {item.duration || |
159 | 151 | calculateDuration(item.from, item.to)} |
160 | 152 | | {item.title || 'Meeting'} |
| 153 | + <div style="margin-left: 22px; font-size: 14px;"> |
| 154 | + {formatTime(item.from)} Uhr - {formatTime(item.to)} Uhr | {item.user.join(', ')} |
| 155 | + </div> |
161 | 156 | </div> |
162 | | - <div style="margin-left: 33px; font-size: 14px;"> |
163 | | - {formatTime(item.from)} Uhr - {formatTime(item.to)} Uhr | {item.user.join(', ')} |
164 | | - <br /> |
| 157 | + {/each} |
| 158 | + |
| 159 | + <!-- Zukünftige Meetingen (ohne erste, falls sie im Hero angezeigt wird) --> |
| 160 | + {#each currentItems.length > 0 ? futureItems : futureItems.slice(1) as item} |
| 161 | + <div style="color: #333; padding: 8px 0; border-bottom: 2px solid #ccc;"> |
| 162 | + <div style="font-size: 18px; margin-left: 10px;"> |
| 163 | + 📅 <strong>in {calculateMinutesUntil(item.from, now)} min</strong> for {item.duration || |
| 164 | + calculateDuration(item.from, item.to)} |
| 165 | + | {item.title || 'Meeting'} |
| 166 | + </div> |
| 167 | + <div style="margin-left: 33px; font-size: 14px;"> |
| 168 | + {formatTime(item.from)} Uhr - {formatTime(item.to)} Uhr | {item.user.join(', ')} |
| 169 | + </div> |
165 | 170 | </div> |
166 | | - </div> |
167 | | - {/each} |
| 171 | + {/each} |
168 | 172 |
|
169 | | - <!-- Info wenn aktueller Termin läuft aber keine weiteren Termine anstehen --> |
170 | | - {#if currentItems.length > 0 && futureItems.length === 0} |
171 | | - <div |
172 | | - style="background: #666; color: #fff; padding: 12px; margin-top: 10px; text-align: center; font-size: 18px; font-weight: bold;" |
173 | | - > |
174 | | - FREE after current meeting ends |
175 | | - </div> |
176 | | - {/if} |
177 | | - </div> |
178 | | - <div style="width: 25%; float: left; padding: 20px;"> |
179 | | - <!-- QR Code für Booking --> |
180 | | - {#if qrCodeDataURL} |
181 | | - <div style="text-align:center;float: left; width: 100px;"> |
182 | | - <img src={qrCodeDataURL} alt="Booking QR Code" style=" border: 2px solid #ccc;" /> |
183 | | - <div style="font-size: 10px; color: #666; margin-top: 2px;">BOOK ROOM</div> |
184 | | - </div> |
185 | | - {/if} |
| 173 | + <!-- Info wenn aktueller Termin läuft aber keine weiteren Termine anstehen --> |
| 174 | + {#if currentItems.length > 0 && futureItems.length === 0} |
| 175 | + <div |
| 176 | + style="background: #666; color: #fff; padding: 12px; margin-top: 10px; text-align: center; font-size: 18px; font-weight: bold;" |
| 177 | + > |
| 178 | + FREE after current meeting ends |
| 179 | + </div> |
| 180 | + {/if} |
| 181 | + </div> |
| 182 | + |
| 183 | + <!-- QR Code rechts --> |
| 184 | + <div style="flex-shrink: 0; width: 150px; text-align: center; padding: 20px;"> |
| 185 | + {#if qrCodeDataURL} |
| 186 | + <img |
| 187 | + src={qrCodeDataURL} |
| 188 | + alt="Booking QR Code" |
| 189 | + style="border: 2px solid #ccc; width: 120px; height: 120px;" |
| 190 | + /> |
| 191 | + <div style="font-size: 12px; color: #666; margin-top: 5px; font-weight: bold;"> |
| 192 | + BOOK ROOM |
| 193 | + </div> |
| 194 | + {/if} |
| 195 | + </div> |
186 | 196 | </div> |
187 | 197 | {/if} |
0 commit comments