-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule.html
130 lines (122 loc) · 5.82 KB
/
schedule.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Schedule for {{ city_name | default('BeforeTipOff') }}</title>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="{{ url_for('static', filename='css/schedule.css') }}" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.3/js/jquery.tablesorter.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/colresizable/1.6.0/colResizable-1.6.min.js" integrity="sha512-pMZ2rgWRGMywzbRAVwGk+auTREN0ldKKjACUSB4cneTgD3kn/6pu//Lxi4l8xSRkY83HENr1vztTnGDySWs0Mg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="/static/js/schedule.js"></script>
</head>
<body>
<header>
<nav class="navbar">
<div class="logo">BeforeTipOff</div>
<div class="menu">
<a href="#" aria-label="Concerts">Sports</a>
<a href="#" aria-label="Sports">Music</a>
<a href="#" aria-label="Arts & Theatre">Arts & Theatre</a>
<a href="#" aria-label="Family Events">Family</a>
</div>
<div class="user-actions">
<a href="#" aria-label="Sign In or Register">Sign In/Register</a>
</div>
</nav>
<div class="search-area">
<form method="post">
<div class="input-group">
<input type="text" name="city_name" placeholder="Enter city name..." id="city-input" aria-label="City Name" />
<button type="submit" id="city-search-btn">Search City</button>
</div>
<div class="input-group date-range-group">
<label for="start-date">Start Date:</label>
<input type="date" name="start_date" id="start-date" aria-label="Start Date" value="{{ start_date }}" />
<label for="end-date">End Date:</label>
<input type="date" name="end_date" id="end-date" aria-label="End Date" />
<button type="submit" id="date-range-search-btn">Filter Date Range</button>
</div>
</form>
</div>
</header>
<div class="page-container">
<aside>
<div class="league-section basketball-leagues">
<h2>Basketball</h2>
<ul>
<li><a href="#">NBA</a></li>
<li><a href="#">EuroLeague</a></li>
<li><a href="#">CBA (China)</a></li>
<li><a href="#">NBL (Australia)</a></li>
<li><a href="#">Basketball Bundesliga (Germany)</a></li>
</ul>
</div>
<div class="league-section soccer-leagues">
<h2>Soccer</h2>
<ul>
<li><a href="#">Premier League (England)</a></li>
<li><a href="#">La Liga (Spain)</a></li>
<li><a href="#">Bundesliga (Germany)</a></li>
<li><a href="#">Serie A (Italy)</a></li>
<li><a href="#">Ligue 1 (France)</a></li>
<li><a href="#">Major League Soccer (USA)</a></li>
</ul>
</div>
</aside>
<main>
<div class="content-container">
<div class="table-container">
{% if events_data %}
<table>
<thead>
<tr>
<th>Date</th>
<th>Start (ET)</th>
<th>Visitor Team</th>
<th>Home Team</th>
<th>Location</th>
<th>Arena</th>
</tr>
</thead>
<tbody>
{% for event in events_data %}
<tr data-event-id="{{ event['EventID'] }}">
<td>{{ event['Date'] | format_date('%m/%d/%Y') }}</td>
<td>{{ event['Start (ET)'] | default('TBD') }}</td>
<td>{{ event['Visitor/Neutral'] }}</td>
<td>{{ event['Home/Neutral'] }}</td>
<td>{{ event['Location'] }}</td>
<td>{{ event['Arena'] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No events found for this city.</p>
{% endif %}
</div>
<div class="sidebar">
<div id="details-wrapper">
<div id="event-details"></div>
<!-- Enhanced additional information text -->
<div id="additional-info" class="info-box">
<p class="info-title">Are you going? We can help!</p>
<ul class="info-list">
<li><i class="fas fa-map-marked-alt"></i> View locations on a map</li>
<li><i class="fas fa-ticket-alt"></i> Get advice on buying tickets</li>
<li><i class="fas fa-after-party"></i> Where to go after the game</li>
<li><i class="fas fa-bus-alt"></i> Transportation directions</li>
<li><i class="fas fa-parking"></i> Where to park and where to stay</li>
</ul>
<button id="more-details-btn" class="info-btn">More Info</button>
</div>
</div>
</div>
</div>
</main>
</div>
</body>
</html>