Skip to content

Commit

Permalink
add ability to link to a particular mascot
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 23, 2024
1 parent 30d68ed commit 81ab6d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/mascots/mascot-list.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul class="unstyled grid {{if (eq @display "small") "sm:grid-2 lg:grid-3" "sm:grid-1 lg:grid-2"}}">
{{#each @mascots as |mascot|}}
<li id={{mascot.id}} data-test-mascot>
<li data-test-mascot>
<Mascots::MascotList::Item
@mascot={{mascot}}
/>
Expand Down
2 changes: 1 addition & 1 deletion app/components/mascots/mascot-list/item.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<figure>
<figure class="mascot-item" id={{@mascot.id}}>
<div class="well well-1/1">
<ResponsiveImage
@src="/images/tomsters/{{@mascot.image}}"
Expand Down
1 change: 1 addition & 0 deletions app/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@import "components/team-list.css";
@import "components/terminal-code.css";
@import "components/callout-banner.css";
@import "components/mascots.css";
@import "legacy/form.css";

@media only percy {
Expand Down
3 changes: 3 additions & 0 deletions app/styles/components/mascots.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.mascot-item:target .well {
border: 2px solid var(--color-brand-40);
}

0 comments on commit 81ab6d7

Please sign in to comment.