35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
|
<!DOCTYPE html>
|
||
|
<html lang="ja">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Schedule</title>
|
||
|
<link rel="stylesheet" href="/css/schedule.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="schedule-container">
|
||
|
<% Object.keys(groupedSchedules).forEach(date => { %>
|
||
|
<div class="date-header">
|
||
|
<%= dayjs(date).tz("Asia/Tokyo").format("YYYY年MM月DD日 (ddd)") %>
|
||
|
</div>
|
||
|
<div class="banners">
|
||
|
<% groupedSchedules[date].forEach(schedule => { %>
|
||
|
<a href="https://www.youtube.com/watch?v=<%= schedule.video_id %>" class="banner" target="_blank">
|
||
|
<div class="thumbnail">
|
||
|
<img src="<%= schedule.thumbnail_url || '/default-thumbnail.jpg' %>" alt="Thumbnail">
|
||
|
</div>
|
||
|
<div class="details">
|
||
|
<div class="time-channel">
|
||
|
<span class="time"><%= dayjs(schedule.start_time).tz("Asia/Tokyo").format("HH:mm") %></span>
|
||
|
<span class="channel-name">/ <%= schedule.Channel.name %></span>
|
||
|
</div>
|
||
|
<div class="title"><%= schedule.title %></div>
|
||
|
</div>
|
||
|
</a>
|
||
|
<% }) %>
|
||
|
</div>
|
||
|
<% }) %>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|