1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 05:05:17 +02:00

Fix profile stats

This commit is contained in:
Sean Morley 2024-10-09 14:48:59 -04:00
parent 7621c55896
commit 5b7aaa6aad
2 changed files with 6 additions and 27 deletions

View file

@ -3,10 +3,9 @@
let stats: {
country_count: number;
planned_count: number;
total_regions: number;
trips_count: number;
visited_count: number;
adventure_count: number;
visited_region_count: number;
total_countries: number;
} | null;
@ -19,16 +18,6 @@
console.log(stats);
</script>
<!--
// v0 by Vercel.
// https://v0.dev/t/EtPnDdQYcbn
-->
<!--
// v0 by Vercel.
// https://v0.dev/t/DYwTru570WN
-->
{#if data.user.profile_pic}
<div class="avatar flex items-center justify-center">
<div class="w-24 rounded">
@ -65,17 +54,10 @@
<div class="flex justify-center items-center">
<div class="stats stats-vertical lg:stats-horizontal shadow bg-base-200">
<div class="stat">
<div class="stat-title">Completed Adventures</div>
<div class="stat-value text-center">{stats.visited_count}</div>
<div class="stat-title">Adventures</div>
<div class="stat-value text-center">{stats.adventure_count}</div>
<!-- <div class="stat-desc">Jan 1st - Feb 1st</div> -->
</div>
<div class="stat">
<div class="stat-title">Planned Adventures</div>
<div class="stat-value text-center">{stats.planned_count}</div>
<!-- <div class="stat-desc">↗︎ 400 (22%)</div> -->
</div>
<div class="stat">
<div class="stat-title">Collections</div>
<div class="stat-value text-center">{stats.trips_count}</div>