mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-04 20:55:19 +02:00
Update entrypoint
This commit is contained in:
parent
9ba5b25ab5
commit
bd6d60d24d
5 changed files with 10 additions and 11 deletions
|
@ -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>
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue