boredgame/src/routes/+page.svelte

52 lines
1.1 KiB
Svelte
Raw Normal View History

2022-01-28 05:27:12 +00:00
<script lang="ts">
2023-09-12 17:56:58 +00:00
// import TextSearch from '$lib/components/search/textSearch/index.svelte';
2022-09-29 22:22:01 +00:00
import RandomSearch from '$lib/components/search/random/index.svelte';
2023-09-12 17:56:58 +00:00
// import Random from '$lib/components/random/index.svelte';
2022-09-29 22:22:01 +00:00
export let data;
export let formData;
console.log('formData', formData);
2022-01-28 05:27:12 +00:00
</script>
<svelte:head>
2022-09-29 22:22:01 +00:00
<title>Bored Game | Home</title>
2022-01-28 05:27:12 +00:00
</svelte:head>
<h1>Search Boardgames!</h1>
<div class="game-search">
2022-09-29 22:22:01 +00:00
<section>
<p style="margin: 1rem 0;">
Input your requirements to search for board games that match your criteria.
</p>
2022-09-29 22:22:01 +00:00
<p>Or pick a random game!</p>
<div class="random-buttons">
2023-05-21 05:18:04 +00:00
<RandomSearch data={data.form} />
2023-09-12 17:56:58 +00:00
<!-- <Random /> -->
2022-09-29 22:22:01 +00:00
</div>
</section>
<!-- <TextSearch showButton advancedSearch data={data.form} /> -->
</div>
<style lang="scss">
2022-09-29 22:22:01 +00:00
.game-search {
display: grid;
gap: 2rem;
section {
display: grid;
gap: 1rem;
}
}
.random-buttons {
display: flex;
place-content: space-between;
place-items: center;
@media (max-width: 650px) {
display: grid;
grid-template-columns: 1fr 1fr;
}
}
2022-01-28 05:27:12 +00:00
</style>