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">
2021-01-25 19:05:46 +00:00
<p><span class="game-item__icon material-icons">person</span><CopyArea value={playername} /></p>
<p><span class="game-item__icon material-icons">code</span><CopyArea value={gameid} /></p>
2021-01-24 18:21:43 +00:00
</div>
</div>