Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/web/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
@tailwind utilities;

body {
@apply bg-gray-50 text-gray-900;
@apply text-gray-900;
background-color: #f9fafb;
}
1 change: 0 additions & 1 deletion apps/web/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.svg" type="image/svg+xml" />
<link rel="manifest" href="/manifest.webmanifest" />
<meta name="theme-color" content="#4f46e5" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
import "../app.css";
</script>

<div class="min-h-screen bg-gray-50">
<div class="min-h-screen">
<slot />
</div>
1 change: 1 addition & 0 deletions apps/web/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@

<svelte:head>
<title>たびたび - 旅のしおり</title>
<meta name="theme-color" content="#f9fafb" />
</svelte:head>

<div
Expand Down
10 changes: 10 additions & 0 deletions apps/web/src/routes/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@
let { data } = $props();

let ItineraryView = $derived(data.theme.components.ItineraryView);
let backgroundColor = $derived(
data.theme.ui.customColors?.background || "#f9fafb",
);
let themeColor = $derived(data.theme.ui.customColors?.primary || "#4f46e5");

onMount(() => {
auth.updateAccessTime(data.itinerary.id, data.itinerary.title);
document.body.style.backgroundColor = backgroundColor;

return () => {
document.body.style.backgroundColor = "";
};
});

async function handleUpdateItinerary(updateData: {
Expand Down Expand Up @@ -84,6 +93,7 @@

<svelte:head>
<title>{data.itinerary.title} - たびたび</title>
<meta name="theme-color" content={backgroundColor} />
</svelte:head>

<ItineraryView
Expand Down
4 changes: 2 additions & 2 deletions apps/web/static/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"short_name": "たびたび",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#4f46e5",
"background_color": "#f9fafb",
"theme_color": "#f9fafb",
"lang": "ja-JP",
"icons": [
{
Expand Down