Skip to content

Commit

Permalink
add highlights layout definition for container layout
Browse files Browse the repository at this point in the history
  • Loading branch information
cemms1 committed May 28, 2024
1 parent 003b76f commit 7cfd5c2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/slices/FixedContainers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class FixedContainers(val config: ApplicationConfiguration) {

val showcase = slices(ShowcaseSingleStories)
val thrasher = slices(Fluid).copy(customCssClasses = Set("fc-container--thrasher"))
val highlights = slices(QuarterQuarterQuarterQuarter)
val highlights = slices(Highlights)
val video = slices(TTT).copy(customCssClasses = Set("fc-container--video"))

val all: Map[String, ContainerDefinition] = Map(
Expand Down
41 changes: 41 additions & 0 deletions app/slices/Slice.scala
Original file line number Diff line number Diff line change
Expand Up @@ -903,3 +903,44 @@ case object ShowcaseSingleStories extends Slice {
),
)
}


/*
* The Highlights layout is used to display select features above the title piece for apps and web
*
* .___________.___________.___________.
* | | | |
* | | | |
* |_#########_|_#########_|_#########_|
* |_#########_|_#########_|_#########_|
* |_#########_|_#########_|_#########_|
* `-----------------------------------'
*/
case object Highlights extends Slice {
val layout = SliceLayout(
// cssClassName = "t-t-t",
columns = Seq(
SingleItem(
colSpan = 1,
ItemClasses(
mobile = Half,
tablet = Third
)
),
SingleItem(
colSpan = 1,
ItemClasses(
mobile = Half,
tablet = Third
)
),
SingleItem(
colSpan = 1,
ItemClasses(
mobile = Half,
tablet = Third
)
)
)
)
}

0 comments on commit 7cfd5c2

Please sign in to comment.