diff --git a/mobile-app/app/(tabs)/about.tsx b/mobile-app/app/(tabs)/about.tsx index f4a650e..71d6536 100644 --- a/mobile-app/app/(tabs)/about.tsx +++ b/mobile-app/app/(tabs)/about.tsx @@ -6,6 +6,8 @@ import { Image } from "@/components/ui/image"; import { Center } from "@/components/ui/center"; import DataList from "@/components/data-list"; import { Link, LinkText } from "@/components/ui/link"; +import Credit from "@/components/credit"; +import { Box } from "@/components/ui/box"; export default function AboutScreen() { return ( @@ -49,6 +51,10 @@ export default function AboutScreen() { /> + + + + ); diff --git a/mobile-app/app/(tabs)/index.native.tsx b/mobile-app/app/(tabs)/index.native.tsx index f48487f..a68fad9 100644 --- a/mobile-app/app/(tabs)/index.native.tsx +++ b/mobile-app/app/(tabs)/index.native.tsx @@ -13,12 +13,11 @@ import { $api } from "@/api-client/api"; import { Box } from "@/components/ui/box"; import type { components } from "@/schema/api"; import Search from "@/components/search"; -import { Text } from "@/components/ui/text"; -import { Link, LinkText } from "@/components/ui/link"; import Score from "@/components/score"; import Result from "@/components/result"; import Mode from "@/components/mode"; import Marker from "@/components/marker"; +import Credit from "@/components/credit"; export default function MapsScreen() { const { data: currentLocation, isLoading } = useCurrentLocation(); @@ -373,11 +372,8 @@ export default function MapsScreen() { destination={!!destination} /> - - ©  - - OpenStreetMap contributors - + + diff --git a/mobile-app/components/credit/constants.tsx b/mobile-app/components/credit/constants.tsx new file mode 100644 index 0000000..3d23067 --- /dev/null +++ b/mobile-app/components/credit/constants.tsx @@ -0,0 +1,33 @@ +import { Link, LinkText } from "../ui/link"; +import { Text } from "../ui/text"; +import { Box } from "../ui/box"; + +const SIZE = "xs"; + +export const CREDITS = [ + <> + + ©  + + + OpenStreetMap contributors + + , + + + このアプリケーションは、以下の著作物を改変して利用しています。 + + + 東京都交通局・公共交通オープンデータ協議会、バス停情報 / Bus stop + information、 + + + + クリエイティブ・コモンズ・ライセンス 表示4.0国際 + + + , +]; diff --git a/mobile-app/components/credit/index.tsx b/mobile-app/components/credit/index.tsx new file mode 100644 index 0000000..4fe9e3e --- /dev/null +++ b/mobile-app/components/credit/index.tsx @@ -0,0 +1,13 @@ +import { Box } from "../ui/box"; +import Item from "./item"; +import { CREDITS } from "./constants"; + +export default function Credit() { + return ( + + {CREDITS.map((credit) => ( + {credit} + ))} + + ); +} diff --git a/mobile-app/components/credit/item.tsx b/mobile-app/components/credit/item.tsx new file mode 100644 index 0000000..3a5cb34 --- /dev/null +++ b/mobile-app/components/credit/item.tsx @@ -0,0 +1,10 @@ +import type { ReactNode } from "react"; +import { Box } from "../ui/box"; + +interface Props { + children: ReactNode; +} + +export default function Item({ children }: Props) { + return {children}; +} diff --git a/mobile-app/components/data-list/constants.ts b/mobile-app/components/data-list/constants.ts index df658e4..bd3d6e0 100644 --- a/mobile-app/components/data-list/constants.ts +++ b/mobile-app/components/data-list/constants.ts @@ -18,4 +18,9 @@ export const DATA_LIST: Data[] = [ label: `${openDataSiteName} - 交通量統計表`, link: "https://catalog.data.metro.tokyo.lg.jp/dataset/t000022d0000000035", }, + { + label: + "東京都交通局・公共交通オープンデータ協議会 - バス停情報 / Bus stop information", + link: "https://ckan.odpt.org/dataset/b_busstop-toei/resource/f340278d-aefe-47ea-bc8f-15ebe48c286d", + }, ];