migration to new backend

This commit is contained in:
Sean Morley
2024-07-08 11:44:39 -04:00
parent 28a5d423c2
commit 9abe9fb315
309 changed files with 21476 additions and 24132 deletions

View File

@@ -0,0 +1,24 @@
<script lang="ts">
import CountryCard from '$lib/components/CountryCard.svelte';
import type { Country } from '$lib/types';
import type { PageData } from './$types';
export let data: PageData;
console.log(data);
const countries: Country[] = data.props?.countries || [];
</script>
<h1 class="text-center font-bold text-4xl mb-4">Country List</h1>
<div class="flex flex-wrap gap-4 mr-4 ml-4 justify-center content-center">
{#each countries as country}
<CountryCard countryCode={country.country_code} countryName={country.name} />
<!-- <p>Name: {item.name}, Continent: {item.continent}</p> -->
{/each}
</div>
<svelte:head>
<title>WorldTravel | AdventureLog</title>
<meta name="description" content="Explore the world and add countries to your visited list!" />
</svelte:head>