-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #340 from govariantsteam/add_demo_board_to_rules_page
Rules List
- Loading branch information
Showing
8 changed files
with
100 additions
and
20 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 |
---|---|---|
|
@@ -93,7 +93,6 @@ | |
} | ||
} | ||
|
||
/* TODO: Check why this is here, can we remove this? */ | ||
*, | ||
*::before, | ||
*::after { | ||
|
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,7 @@ | ||
export function toUpperCaseFirstLetter(string: string) { | ||
if (string.length === 0) { | ||
return ""; | ||
} | ||
|
||
return string[0].toUpperCase() + string.slice(1); | ||
} |
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,45 @@ | ||
<script setup lang="ts"> | ||
import { toUpperCaseFirstLetter } from "@/utils/format-utils"; | ||
import { getVariantsWithRulesDescription } from "@ogfcommunity/variants-shared"; | ||
import { RouterLink } from "vue-router"; | ||
const variantsWithRulesDescription = getVariantsWithRulesDescription(); | ||
</script> | ||
|
||
<template> | ||
<main> | ||
<h1>Rule Descriptions</h1> | ||
<div class="rule-links-container"> | ||
<RouterLink | ||
v-for="variant in variantsWithRulesDescription" | ||
:key="variant" | ||
class="rules-link" | ||
:to="{ name: 'rules', params: { variant: variant } }" | ||
> | ||
{{ toUpperCaseFirstLetter(variant) }} | ||
</RouterLink> | ||
</div> | ||
</main> | ||
</template> | ||
|
||
<style scoped> | ||
main { | ||
padding: 0 2rem; | ||
} | ||
.rule-links-container { | ||
display: flex; | ||
flex-direction: row; | ||
flex-flow: wrap; | ||
} | ||
.rules-link { | ||
border: 1px solid var(--color-border); | ||
margin: 15px; | ||
text-align: center; | ||
padding: 1rem 2rem; | ||
font-size: large; | ||
background-color: var(--color-background-soft); | ||
&:hover { | ||
background-color: var(--color-background-mute); | ||
} | ||
} | ||
</style> |
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