-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(SubwayStatus): show on homepage (#2377)
- Loading branch information
1 parent
e4288d7
commit d6e8243
Showing
8 changed files
with
111 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<div class="m-tabbed-nav" role="navigation"> | ||
<div class="nav m-tabbed-nav__items" role="tablist"> | ||
<div class="m-tabbed-nav__item-container"> | ||
<a | ||
tabindex="0" | ||
class="nav-link m-tabbed-nav__item active" | ||
role="tab" | ||
data-toggle="tab" | ||
data-tab-type="schedules" | ||
aria-controls="schedules-content" | ||
aria-selected="true" | ||
> | ||
<span aria-hidden="true"> | ||
{svg("icon-map-default.svg")} | ||
</span> | ||
<span href="/schedules" class="m-tabbed-nav__icon-text">Schedules</span> | ||
</a> | ||
</div> | ||
<div class="m-tabbed-nav__item-container"> | ||
<a | ||
tabindex="0" | ||
class="nav-link m-tabbed-nav__item" | ||
role="tab" | ||
data-toggle="tab" | ||
data-tab-type="trip-planner" | ||
aria-controls="trip-planner-content" | ||
aria-selected="false" | ||
> | ||
<span aria-hidden="true"> | ||
{svg("icon-trip-planner-default.svg")} | ||
</span> | ||
<span href="/trip-planner" class="m-tabbed-nav__icon-text">Trip Planner</span> | ||
</a> | ||
</div> | ||
<div class="m-tabbed-nav__item-container"> | ||
<a | ||
tabindex="0" | ||
class="nav-link m-tabbed-nav__item" | ||
role="tab" | ||
data-toggle="tab" | ||
data-tab-type="alerts" | ||
aria-controls="alerts-content" | ||
aria-selected="false" | ||
> | ||
<span aria-hidden="true"> | ||
{svg("icon-alerts-default.svg")} | ||
</span> | ||
<span href="/alerts" class="m-tabbed-nav__icon-text">Alerts</span> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="m-tabbed-nav__content"> | ||
<div | ||
role="tabpanel" | ||
id="schedules-content" | ||
class="m-tabbed-nav__content-item active" | ||
data-tab-content-type="schedules" | ||
> | ||
{render(DotcomWeb.PartialView, "_recently_visited.html", | ||
conn: @conn, | ||
routes: Map.get(assigns, :recently_visited, []), | ||
alerts: @alerts, | ||
date_time: @date_time, | ||
header_class: "text-2xl" | ||
)} | ||
<%= unless Enum.empty?(Map.get(assigns, :recently_visited, [])) do %> | ||
<hr /> | ||
<% end %> | ||
<div class="my-6 lg:flex divide-y lg:divide-y-0 lg:divide-x"> | ||
<div class="flex-1 pb-6 lg:pb-0 lg:pe-6 grid gap-4 grid-cols-3 grid-rows-2 justify-items-stretch"> | ||
{shortcut_icons()} | ||
</div> | ||
<div class="pt-6 lg:pt-0 lg:ps-6 basis-2/5"> | ||
<.homepage_subway_status subway_status={@subway_status} /> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
role="tabpanel" | ||
id="trip-planner-content" | ||
class="m-tabbed-nav__content-item" | ||
data-tab-content-type="trip-planner" | ||
> | ||
<div class="m-mode-hub__trip-plan-widget"> | ||
{DotcomWeb.PartialView.render("_trip_planner_widget.html", assigns)} | ||
</div> | ||
</div> | ||
<div | ||
role="tabpanel" | ||
id="alerts-content" | ||
class="m-tabbed-nav__content-item" | ||
data-tab-content-type="alerts" | ||
> | ||
{alerts(@conn.assigns.alerts)} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters