Rinze/src/node_modules/components/GameListItem.svelte

16 lines
520 B
Svelte
Raw Normal View History

2021-01-24 18:21:43 +00:00
<script>
2021-01-25 17:05:02 +00:00
import CopyArea from "components/CopyArea.svelte";
2021-01-24 18:21:43 +00:00
export let name, link, gameid, playername;
</script>
2021-01-25 17:05:02 +00:00
<div class="game-item">
<div class="game-item__title">
<p class="game-item__caption"><a href={link}>{name}</a></p>
2021-01-24 18:21:43 +00:00
</div>
2021-01-25 17:05:02 +00:00
<div class="game-item__content">
<p><CopyArea value={playername} /><span class="game-item__icon material-icons">person</span></p>
<p><CopyArea value={gameid} /><span class="game-item__icon material-icons">code</span></p>
2021-01-24 18:21:43 +00:00
</div>
</div>