This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor voor consistentie en redesign
- Loading branch information
Thijs
authored
Jun 8, 2021
1 parent
6d5c42d
commit 373e432
Showing
39 changed files
with
709 additions
and
553 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
VITE_API_URL=https://acc-jungle-gym-api.herokuapp.com | ||
VITE_STRAPI_API_URL=https://jungle-gym-cms.herokuapp.com | ||
VITE_API_URL=https://acc-jungle-gym-api.herokuapp.com |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,66 @@ | ||
<script lang="ts"> | ||
import type { Game } from '$lib/games'; | ||
import CardLabel from '$lib/shared/Label/CardLabel.svelte'; | ||
import OfflineLabel from '$lib/shared/Label/OfflineLabel.svelte'; | ||
import { formatTargetGroups } from '$lib/Utils/formatTargetGroups'; | ||
export let game: Game; | ||
const targetGroupString = formatTargetGroups(game.targetGroup); | ||
</script> | ||
|
||
<article> | ||
<h1>{game.name}</h1> | ||
{#if game.offline} | ||
<OfflineLabel /> | ||
{/if} | ||
<ul> | ||
<li><CardLabel label={targetGroupString} icon={undefined} /></li> | ||
<li><CardLabel label={game.category} icon={undefined} /></li> | ||
<li><CardLabel label={`Min. ${game.minimumPlayers} `} icon="group" /></li> | ||
</ul> | ||
</article> | ||
|
||
<style> | ||
article { | ||
background-color: var(--color-white); | ||
border-radius: 1.5em; | ||
padding: 1em; | ||
justify-content: space-between; | ||
box-shadow: 0px 2px 4px 2px rgba(21, 45, 21, 0.1); | ||
/* filter: drop-shadow(0 0.2em 0.2em hsl(92, 30%, 64%)) alternatief shadow */ | ||
} | ||
ul { | ||
display: flex; | ||
flex-wrap: wrap; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
min-height: 3em; | ||
} | ||
ul li { | ||
margin: 2px; | ||
} | ||
article h1 { | ||
display: flex; | ||
justify-content: space-between; | ||
margin: 0; | ||
line-height: 1em; | ||
font-size: 1em; | ||
min-height: 2em; | ||
} | ||
article h1::after { | ||
content: ''; | ||
background: url('$lib/assets/icons/GameCard/cardArrow.svg') no-repeat top center; | ||
background-size: 0.5em; | ||
width: 0.5em; | ||
} | ||
ul { | ||
margin-top: 1em; | ||
} | ||
</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
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
// export const BASE_API_URL = import.meta.env.VITE_API_URL; | ||
export const BASE_API_URL = import.meta.env.VITE_STRAPI_API_URL; | ||
export const BASE_API_URL = import.meta.env.VITE_API_URL; |
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
File renamed without changes.
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
Oops, something went wrong.