1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-04 20:55:19 +02:00

Update entrypoint

This commit is contained in:
Sean Morley 2024-09-11 09:31:25 -04:00
parent 9ba5b25ab5
commit bd6d60d24d
5 changed files with 10 additions and 11 deletions

View file

@ -21,7 +21,7 @@
</figure>
<div class="card-body">
<h2 class="card-title overflow-ellipsis">{country.name}</h2>
<div class="badge badge-primary">{continentCodeToString(country.continent)}</div>
<div class="badge badge-primary">{country.subregion}</div>
<div class="card-actions justify-end">
<!-- <button class="btn btn-info" on:click={moreInfo}>More Info</button> -->
<button class="btn btn-primary" on:click={nav}>Open</button>

View file

@ -39,15 +39,16 @@ export type Country = {
id: number;
name: string;
country_code: string;
continent: string;
subregion: string;
flag_url: string;
};
export type Region = {
id: number;
name: string;
name_en?: string;
country: number;
latitude: number;
longitude: number;
};
export type VisitedRegion = {