Skip to content

Commit

Permalink
Concept: flags on SE and LT squares
Browse files Browse the repository at this point in the history
This is kind of cool but maybe too busy, even with the flag taking up
only half the square.
  • Loading branch information
dgmstuart committed Apr 25, 2024
1 parent 7c93928 commit 24f924a
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 3 deletions.
28 changes: 28 additions & 0 deletions src/components/Cell.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,31 @@
background-image: linear-gradient(135deg, rgba(255,206,0, .8), rgba(255,206,0, .8) 12px, transparent 15px, transparent);
}

.Cell.flag {
position: relative;
}

.Cell.flag::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.Cell.flag.stamped::before {
background-image: none;
}

.Cell.flag-lt::before {
background-image: url(/bingo-frontend/src/images/lt.svg);
}

.Cell.flag-se::before {
background-image: url(/bingo-frontend/src/images/se.svg);
}
9 changes: 6 additions & 3 deletions src/data/teamLindy.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,12 @@
"title": "Who is that?",
"words": [
{ "word": "Mixed-nationality team" },
{ "word": "All-Swedish Team" },
{ "word": "A Swede not in Sweden" },
{ "word": "A Lithuanian not in Lithuania" },
{ "word": "All-Swedish Team", "cssClasses": ["flag", "flag-se"] },
{ "word": "A Swede not in Sweden", "cssClasses": ["flag", "flag-se"] },
{
"word": "A Lithuanian not in Lithuania",
"cssClasses": ["flag", "flag-lt"]
},
{
"word": "Somebody you have personally taken class from",
"description": "or that you will take class from at this event!"
Expand Down
62 changes: 62 additions & 0 deletions src/images/lt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions src/images/se.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 24f924a

Please sign in to comment.