From cf9717149f15bc434585249e49d3d94d1db8ff8b Mon Sep 17 00:00:00 2001 From: haerikimmm Date: Tue, 16 Jun 2026 18:40:51 +0900 Subject: [PATCH] style home country picker page with home image and app theme --- src/lib/auth/CountryPicker.svelte | 200 ++++++++++++++---------------- 1 file changed, 91 insertions(+), 109 deletions(-) diff --git a/src/lib/auth/CountryPicker.svelte b/src/lib/auth/CountryPicker.svelte index f4d5aca..754b5bc 100644 --- a/src/lib/auth/CountryPicker.svelte +++ b/src/lib/auth/CountryPicker.svelte @@ -1,93 +1,72 @@
-

Welcome, {profile?.displayName || 'Traveler'}!

-

Select your home country to get started

+ home +

Welcome, {profile?.displayName?.split(' ')[0] || 'Traveler'}!

+

Where do you call home?

-
@@ -96,113 +75,116 @@ .overlay { position: fixed; inset: 0; - background: rgba(15, 23, 42, 0.85); + background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 100; - backdrop-filter: blur(4px); + padding-bottom: 20vh; } .card { - background: #1e2937; - border-radius: 16px; - padding: 40px 36px; text-align: center; - box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); - max-width: 420px; + max-width: 360px; width: 90%; + display: flex; + flex-direction: column; + align-items: center; } - .heading { - font: 700 24px/1.3 sans-serif; - color: #f1f5f9; - margin-bottom: 6px; + .home-img { + width: 200px; + height: 200px; + object-fit: contain; + margin-bottom: 16px; + } + + .title { + font-family: var(--heading); + font-size: 24px; + font-weight: 600; + color: var(--text-h); + letter-spacing: -0.5px; + margin: 0 0 6px; } .subtitle { - font: 400 15px/1.4 sans-serif; - color: #94a3b8; - margin-bottom: 28px; + font-family: var(--sans); + font-size: 14px; + font-weight: 300; + color: var(--text); + margin: 0 0 24px; } .dropdown { position: relative; - margin-bottom: 24px; + width: 100%; + margin-bottom: 16px; text-align: left; } .search-input { width: 100%; - padding: 12px 16px; - border: 1px solid #475569; + padding: 10px 14px; + border: 1px solid var(--border); border-radius: 8px; - background: #0f172a; - color: #f1f5f9; - font: 400 15px/1.4 sans-serif; + background: var(--bg-subtle); + color: var(--text-h); + font-family: var(--sans); + font-size: 14px; + font-weight: 300; outline: none; - transition: border-color 0.2s; - } - - .search-input:focus { - border-color: #3b82f6; - } - - .search-input::placeholder { - color: #64748b; + transition: border-color 0.15s; + box-sizing: border-box; } + .search-input:focus { border-color: var(--accent-border); } + .search-input::placeholder { color: var(--text-sub); } .list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; - max-height: 240px; + max-height: 220px; overflow-y: auto; - background: #0f172a; - border: 1px solid #475569; + background: var(--bg); + border: 1px solid var(--border); border-radius: 8px; list-style: none; z-index: 10; + padding: 4px; + box-shadow: 0 4px 16px rgba(0,0,0,0.1); } .list li { - padding: 10px 16px; + padding: 8px 12px; cursor: pointer; - color: #cbd5e1; - font: 400 14px/1.4 sans-serif; - transition: background 0.15s; + color: var(--text); + font-family: var(--sans); + font-size: 13px; + font-weight: 300; + border-radius: 6px; + transition: background 0.1s; } - .list li:hover, - .list li.selected { - background: #1e3a5f; - color: #f1f5f9; - } - - .no-results { - color: #64748b; - cursor: default; + .list li:hover, .list li.selected { + background: var(--accent-bg); + color: var(--accent); } .continue-btn { width: 100%; - padding: 12px 24px; - border: none; + padding: 11px 24px; + border: 1px solid var(--border); border-radius: 8px; - background: #3b82f6; + background: var(--accent); color: #fff; - font: 600 16px/1.4 sans-serif; + font-family: var(--sans); + font-size: 14px; + font-weight: 500; cursor: pointer; - transition: background 0.2s, opacity 0.2s; - } - - .continue-btn:hover:not(:disabled) { - background: #2563eb; - } - - .continue-btn:disabled { - opacity: 0.4; - cursor: default; + transition: background 0.15s, opacity 0.15s; } + .continue-btn:hover:not(:disabled) { background: var(--accent-dark); } + .continue-btn:disabled { opacity: 0.4; cursor: default; }