-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split header and footer into separate slots.
- Loading branch information
Showing
14 changed files
with
120 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.footer { | ||
display: flex; | ||
align-items: center; | ||
height: 100%; | ||
padding: 0 48px; | ||
font-family: Inter, sans-serif; | ||
font-size: 48px; | ||
line-height: 62px; | ||
color: white; | ||
background-color: $cool-black-30; | ||
} |
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,12 @@ | ||
.normal-header { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
height: 100%; | ||
padding: 0 48px; | ||
font-family: Inter, sans-serif; | ||
font-size: 48px; | ||
line-height: 62px; | ||
color: $warm-neutral-90; | ||
background-color: $cool-black-15; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react"; | ||
|
||
const Footer = () => { | ||
return ( | ||
<div className="footer"> | ||
For more info and alternate paths: mbta.com/alerts/access or (617) | ||
222-2828 | ||
</div> | ||
); | ||
}; | ||
|
||
export default Footer; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
defmodule Screens.V2.WidgetInstance.Footer do | ||
@moduledoc false | ||
|
||
alias ScreensConfig.Screen | ||
|
||
defstruct screen: nil | ||
|
||
@type t :: %__MODULE__{ | ||
screen: Screen.t() | ||
} | ||
|
||
defimpl Screens.V2.WidgetInstance do | ||
def priority(_instance), do: [1] | ||
|
||
def serialize(_instance), do: %{} | ||
|
||
def slot_names(_instance), do: [:footer] | ||
|
||
def widget_type(_instance), do: :footer | ||
|
||
def valid_candidate?(_instance), do: true | ||
|
||
def audio_serialize(_instance), do: %{} | ||
|
||
def audio_sort_key(_instance), do: [0] | ||
|
||
def audio_valid_candidate?(_instance), do: false | ||
|
||
def audio_view(_instance), do: ScreensWeb.V2.Audio.FooterView | ||
end | ||
end |
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