Fill up tags.json with initial tags

This commit is contained in:
Kalle
2022-07-28 23:25:23 +03:00
parent 0ac3ad9c2b
commit 5383becfcb
4 changed files with 45 additions and 3 deletions

View File

@@ -7,7 +7,8 @@ Calendar
- [x] Add badges to the seed
- [x] Implement badge prizes
- [x] Implement tags
- [ ] Add initial tags.json
- [x] Add initial tags.json
- [ ] Add tags to the seed
- [ ] Page to add a new event
- [ ] Different fields to submit depending on if future date or past date
- [ ] Edit page (add winners this way)

View File

@@ -11,7 +11,7 @@ export function Tags({ tags }: { tags: Array<CalendarEventTag> }) {
<ul className="calendar__event__tags">
{tags.map((tag) => (
<li key={tag} style={{ backgroundColor: allTags[tag].color }}>
{t(`tag.${tag}`)}
{t(`tag.name.${tag}`)}
</li>
))}
</ul>

View File

@@ -1,5 +1,29 @@
{
"BADGE_PRIZE": {
"color": "#FDFD96"
},
"SPECIAL": {
"color": "#CE93D8"
},
"ART": {
"color": "#C158F6"
},
"MONEY": {
"color": "#96F29D"
},
"REGION": {
"color": "#FF8C8C"
},
"LOW": {
"color": "#BBDEFB"
},
"COUNT": {
"color": "#62E8F5"
},
"LAN": {
"color": "#FFF"
},
"QUALIFIER": {
"color": "#FFC0CB"
}
}

View File

@@ -1,3 +1,20 @@
{
"tag.BADGE_PRIZE": "Badge prize"
"tag.name.BADGE_PRIZE": "Badge prize",
"tag.name.SPECIAL": "Special rules",
"tag.name.ART": "Art prizes",
"tag.name.MONEY": "Money prizes",
"tag.name.REGION": "Region locked",
"tag.name.LOW": "Skill cap",
"tag.name.COUNT": "Entry limit",
"tag.name.LAN": "LAN",
"tag.name.QUALIFIER": "Qualifier",
"tag.desc.BADGE_PRIZE": "Winner of this event gets a sendou.ink badge.",
"tag.desc.SPECIAL": "Ruleset that differ from the standard e.g. limited what weapons can be used.",
"tag.desc.ART": "You can win art by playing in this tournament.",
"tag.desc.MONEY": "You can win money by playing in this tournament.",
"tag.desc.REGION": "Limited who can play in this event based on location.",
"tag.desc.LOW": "Who can play in this event is limited by skill.",
"tag.desc.COUNT": "Only limited amount of teams can register.",
"tag.desc.LAN": "This event is played locally.",
"tag.desc.QUALIFIER": "This tournament is a qualifier for another event."
}