Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/dotcom_web/components/components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,15 @@ defmodule DotcomWeb.Components do
slot(:title, required: true)
attr(:href, :string, doc: "Optional link to navigate to")
attr(:rest, :global, include: ~w(disabled))
attr(:class, :string, default: "")

@doc """
A stylish link or button with a prominent right caret, containing content.
As a button, can open additional content via a modal.
"""
def descriptive_link(%{href: _} = assigns) do
~H"""
<a href={@href} class="c-descriptive-link">
<a href={@href} class={"c-descriptive-link #{@class}"}>
<.icon type="icon-svg" name="football" class="c-descriptive-link__football-icon" />
<div class="c-descriptive-link__text">
<div class="c-descriptive-link__title">{render_slot(@title)}</div>
Expand Down
7 changes: 7 additions & 0 deletions lib/dotcom_web/templates/schedule/_timetable.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
</div>
</.promo_banner>

<.descriptive_link :if={@route.id == "CR-Foxboro"} href="/destinations/gillette-stadium" class="mb-4">
<:title>Going to a soccer match at Gillette?</:title>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be translatable? I suppose we can do that when the finalized text comes in.

<p class="c-descriptive-link__world-cup">
Read our <span class="underline">Gillette Stadium Guide</span>
</p>
</.descriptive_link>

{DotcomWeb.AlertView.group(
alerts: @banner_alerts,
route: @route,
Expand Down
Loading