forked from CyberAgentHack/web-speed-hackathon-2024
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
147 additions
and
74 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
workspaces/app/src/foundation/components/CompanyDialogContent.tsx
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 @@ | ||
import { useId } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import { COMPANY } from '../constants/Company'; | ||
import { Color, Space, Typography } from '../styles/variables'; | ||
|
||
import { Spacer } from './Spacer'; | ||
import { Text } from './Text'; | ||
|
||
const _Content = styled.section` | ||
white-space: pre-line; | ||
`; | ||
export default function CompanyDialogContent() { | ||
const companyDialogA11yId = useId(); | ||
|
||
return ( | ||
<_Content aria-labelledby={companyDialogA11yId} role="dialog"> | ||
<Text as="h2" color={Color.MONO_100} id={companyDialogA11yId} typography={Typography.NORMAL16}> | ||
運営会社 | ||
</Text> | ||
<Spacer height={Space * 1} /> | ||
<Text as="p" color={Color.MONO_100} typography={Typography.NORMAL12}> | ||
{COMPANY} | ||
</Text> | ||
</_Content> | ||
); | ||
} |
27 changes: 27 additions & 0 deletions
27
workspaces/app/src/foundation/components/ContactDialogContent.tsx
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 @@ | ||
import { useId } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import { CONTACT } from '../constants/Contact'; | ||
import { Color, Space, Typography } from '../styles/variables'; | ||
|
||
import { Spacer } from './Spacer'; | ||
import { Text } from './Text'; | ||
|
||
const _Content = styled.section` | ||
white-space: pre-line; | ||
`; | ||
export default function ContactDialogContent() { | ||
const contactDialogA11yId = useId(); | ||
|
||
return ( | ||
<_Content aria-labelledby={contactDialogA11yId} role="dialog"> | ||
<Text as="h2" color={Color.MONO_100} id={contactDialogA11yId} typography={Typography.NORMAL16}> | ||
お問い合わせ | ||
</Text> | ||
<Spacer height={Space * 1} /> | ||
<Text as="p" color={Color.MONO_100} typography={Typography.NORMAL12}> | ||
{CONTACT} | ||
</Text> | ||
</_Content> | ||
); | ||
} |
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
27 changes: 27 additions & 0 deletions
27
workspaces/app/src/foundation/components/OverviewDialogContent.tsx
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 @@ | ||
import { useId } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import { OVERVIEW } from '../constants/Overview'; | ||
import { Color, Space, Typography } from '../styles/variables'; | ||
|
||
import { Spacer } from './Spacer'; | ||
import { Text } from './Text'; | ||
|
||
const _Content = styled.section` | ||
white-space: pre-line; | ||
`; | ||
export default function OverviewDialogContent() { | ||
const overviewDialogA11yId = useId(); | ||
|
||
return ( | ||
<_Content aria-labelledby={overviewDialogA11yId} role="dialog"> | ||
<Text as="h2" color={Color.MONO_100} id={overviewDialogA11yId} typography={Typography.NORMAL16}> | ||
Cyber TOONとは | ||
</Text> | ||
<Spacer height={Space * 1} /> | ||
<Text as="p" color={Color.MONO_100} typography={Typography.NORMAL12}> | ||
{OVERVIEW} | ||
</Text> | ||
</_Content> | ||
); | ||
} |
27 changes: 27 additions & 0 deletions
27
workspaces/app/src/foundation/components/QuestionDialogContent.tsx
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 @@ | ||
import { useId } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import { QUESTION } from '../constants/Question'; | ||
import { Color, Space, Typography } from '../styles/variables'; | ||
|
||
import { Spacer } from './Spacer'; | ||
import { Text } from './Text'; | ||
|
||
const _Content = styled.section` | ||
white-space: pre-line; | ||
`; | ||
export default function QuestionDialogContent() { | ||
const questionDialogA11yId = useId(); | ||
|
||
return ( | ||
<_Content aria-labelledby={questionDialogA11yId} role="dialog"> | ||
<Text as="h2" color={Color.MONO_100} id={questionDialogA11yId} typography={Typography.NORMAL16}> | ||
Q&A | ||
</Text> | ||
<Spacer height={Space * 1} /> | ||
<Text as="p" color={Color.MONO_100} typography={Typography.NORMAL12}> | ||
{QUESTION} | ||
</Text> | ||
</_Content> | ||
); | ||
} |
27 changes: 27 additions & 0 deletions
27
workspaces/app/src/foundation/components/TermDialogContent.tsx
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 @@ | ||
import { useId } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import { TERM } from '../constants/Term'; | ||
import { Color, Space, Typography } from '../styles/variables'; | ||
|
||
import { Spacer } from './Spacer'; | ||
import { Text } from './Text'; | ||
|
||
const _Content = styled.section` | ||
white-space: pre-line; | ||
`; | ||
export default function TermDialogContent() { | ||
const termDialogA11yId = useId(); | ||
|
||
return ( | ||
<_Content aria-labelledby={termDialogA11yId} role="dialog"> | ||
<Text as="h2" color={Color.MONO_100} id={termDialogA11yId} typography={Typography.NORMAL16}> | ||
利用規約 | ||
</Text> | ||
<Spacer height={Space * 1} /> | ||
<Text as="p" color={Color.MONO_100} typography={Typography.NORMAL12}> | ||
{TERM} | ||
</Text> | ||
</_Content> | ||
); | ||
} |