Add and delete migration files
This commit is contained in:
20
src/routes/worldtravel/+page.svelte
Normal file
20
src/routes/worldtravel/+page.svelte
Normal file
@@ -0,0 +1,20 @@
|
||||
<script lang="ts">
|
||||
import { goto } from "$app/navigation";
|
||||
import AdventureCard from "$lib/components/AdventureCard.svelte";
|
||||
|
||||
export let data: any;
|
||||
console.log(data.response);
|
||||
|
||||
async function nav(loc: string) {
|
||||
goto(`/worldtravel/${loc}`);
|
||||
}
|
||||
</script>
|
||||
|
||||
<h1>Country List</h1>
|
||||
|
||||
{#each data.response as item}
|
||||
<button class="btn btn-primary" on:click={() => nav(item.country_code)}
|
||||
>{item.name}</button
|
||||
>
|
||||
<!-- <p>Name: {item.name}, Continent: {item.continent}</p> -->
|
||||
{/each}
|
||||
Reference in New Issue
Block a user