-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from syakoo/feat/td119-separate-privacy-policy…
…-and-terms Feat/td119 separate privacy policy and terms
- Loading branch information
Showing
12 changed files
with
253 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import type { Metadata } from "next"; | ||
|
||
import { HeaderFooterTemplate } from "@/components/HeaderFooterTemplate"; | ||
import { formatPageTitle } from "@/config/pageTitle"; | ||
import { Col, Container, Spacer } from "@/design-system/layout"; | ||
import { H2, H3, P } from "@/design-system/ui"; | ||
import { List } from "@/design-system/ui/List"; | ||
|
||
export const metadata: Metadata = { | ||
title: formatPageTitle("Privacy Policy"), | ||
robots: { | ||
index: false, | ||
}, | ||
openGraph: { | ||
type: "website", | ||
images: "/logo.png", | ||
url: `/privacy-policy`, | ||
}, | ||
}; | ||
|
||
const PrivacyPolicyPage = () => { | ||
return ( | ||
<HeaderFooterTemplate> | ||
<Container as="main" center paddingX="200" paddingY="400" size="100"> | ||
<H2>Terms of Use</H2> | ||
<P color="secondary" size="50"> | ||
Last Updated: 2024/08/31 | ||
</P> | ||
<Spacer y="300" /> | ||
|
||
<Col gap="300"> | ||
<section> | ||
<H3>1. サービスの利用</H3> | ||
<Spacer y="100" /> | ||
<P> | ||
本サイトを利用するにあたり、ユーザーは以下の事項に同意するものとします: | ||
</P> | ||
<List> | ||
<List.Item>本サイトの利用は自己責任で行うこと</List.Item> | ||
<List.Item>不正アクセスや不正利用を行わないこと</List.Item> | ||
<List.Item>他のユーザーの権利を侵害しないこと</List.Item> | ||
</List> | ||
</section> | ||
<section> | ||
<H3>2. 禁止事項</H3> | ||
<Spacer y="100" /> | ||
<P>ユーザーは以下の行為を行ってはいけません:</P> | ||
<List> | ||
<List.Item>違法行為や公序良俗に反する行為</List.Item> | ||
<List.Item>サービスの運営を妨害する行為</List.Item> | ||
</List> | ||
</section> | ||
<section> | ||
<H3>3. 免責事項</H3> | ||
<Spacer y="100" /> | ||
<P> | ||
当ブログからのリンクやバナーなどで移動したサイトで提供される情報、 | ||
サービス等について一切の責任を負いません。 | ||
</P> | ||
<P> | ||
また当ブログのコンテンツ・情報について、 | ||
できる限り正確な情報を提供するように努めておりますが、 | ||
正確性や安全性を保証するものではありません。情報が古くなっていることもございます。 | ||
当サイトに掲載された内容によって生じた損害等の一切の責任を負いかねますのでご了承ください。 | ||
</P> | ||
</section> | ||
<section> | ||
<H3>4. 著作権・肖像権</H3> | ||
<Spacer y="100" /> | ||
<P> | ||
当サイトの記事について、著作権は放棄しておりません。当サイトに存在する、文章・画像・動画等の著作物の情報を無断転載することを禁止します。 | ||
</P> | ||
<P> | ||
また、当サイトは著作権の侵害を目的とするものではありません。使用している版権物の知的所有権はそれぞれの著作者・団体に帰属しております。著作権や肖像権に関して問題がありましたら御連絡下さい。著作権所有者様からの警告及び修正・撤去のご連絡があった場合は迅速に対処または削除致します。 | ||
</P> | ||
</section> | ||
<section> | ||
<H3>5. 利用規約の変更</H3> | ||
<Spacer y="100" /> | ||
<P> | ||
当サイトは、本利用規約の内容を適宜見直し、その改善に努めます。本利用規約は、事前の予告なく変更することがあります。本利用規約の変更は、当サイトに掲載された時点で有効になるものとします。 | ||
</P> | ||
</section> | ||
<section> | ||
<H3>6. 準拠法と管轄裁判所</H3> | ||
<Spacer y="100" /> | ||
<P>本規約の解釈および適用は、日本法に準拠するものとします。</P> | ||
</section> | ||
</Col> | ||
</Container> | ||
</HeaderFooterTemplate> | ||
); | ||
}; | ||
|
||
export default PrivacyPolicyPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
|
||
import { theme } from "@/design-system/theme.css"; | ||
|
||
export const listStyles = { | ||
root: style({ | ||
listStyleType: "disc", | ||
marginLeft: theme.space[300], | ||
marginBlock: theme.space[100], | ||
lineHeight: 1.8, | ||
}), | ||
item: style({ | ||
"::marker": { | ||
color: theme.color.text.secondary, | ||
}, | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import { List } from "."; | ||
|
||
const meta = { | ||
component: List, | ||
parameters: { | ||
layout: "fullscreen", | ||
testLevel: "snapshot", | ||
}, | ||
tags: ["autodocs"], | ||
} satisfies Meta<typeof List>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
export const Sample: Story = { | ||
args: { | ||
children: <div>children</div>, | ||
}, | ||
render: (args) => ( | ||
<List {...args}> | ||
<List.Item>List.Item</List.Item> | ||
<List.Item>List.Item</List.Item> | ||
<List.Item>List.Item</List.Item> | ||
</List> | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { testStories } from "@/test/testStories"; | ||
|
||
import * as stories from "./List.stories"; | ||
|
||
describe("List", () => { | ||
testStories(stories); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { listStyles } from "./List.css"; | ||
|
||
type ListProps = { | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const List: React.FC<ListProps> = ({ children }) => { | ||
return <ul className={listStyles.root}>{children}</ul>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { listStyles } from "./List.css"; | ||
|
||
type ListItemProps = { | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const ListItem: React.FC<ListItemProps> = ({ children }) => { | ||
return <li className={listStyles.item}>{children}</li>; | ||
}; |
27 changes: 27 additions & 0 deletions
27
src/design-system/ui/List/__snapshots__/List.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`List スナップショット Sample 1`] = ` | ||
<body> | ||
<div> | ||
<ul | ||
class="List_listStyles_root__1mkigv60" | ||
> | ||
<li | ||
class="List_listStyles_item__1mkigv61" | ||
> | ||
List.Item | ||
</li> | ||
<li | ||
class="List_listStyles_item__1mkigv61" | ||
> | ||
List.Item | ||
</li> | ||
<li | ||
class="List_listStyles_item__1mkigv61" | ||
> | ||
List.Item | ||
</li> | ||
</ul> | ||
</div> | ||
</body> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { List } from "./List"; | ||
import { ListItem } from "./ListItem"; | ||
|
||
export type ListWithItem = typeof List & { | ||
Item: typeof ListItem; | ||
}; | ||
|
||
const ListWithItem = List as ListWithItem; | ||
ListWithItem.Item = ListItem; | ||
|
||
export { ListWithItem as List }; |