-
Notifications
You must be signed in to change notification settings - Fork 97
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
1 parent
68e35b8
commit bfc73b9
Showing
5 changed files
with
109 additions
and
2 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
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,8 @@ | ||
ul { | ||
list-style: none; | ||
padding: 0; | ||
} | ||
|
||
li img { | ||
width: 1.9em; | ||
} |
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,56 @@ | ||
import styled from 'styled-components' | ||
import { useTranslation } from 'react-i18next' | ||
import Widget from 'src/shared/Widget' | ||
import { Space, Typography } from 'antd' | ||
|
||
import './PublicAppeal.scss' | ||
const { Title } = Typography | ||
const pageName = 'publicAppealPage' | ||
const PublicAppeal = () => { | ||
const { t } = useTranslation() | ||
const tasks = t(`${pageName}.tasks`, { returnObjects: true }) | ||
|
||
return ( | ||
<PublicAppealStyle> | ||
<Space direction="vertical" size="middle"> | ||
<Title className="page-title" level={3}> | ||
{t(`${pageName}.title`)} | ||
</Title> | ||
{tasks.map((task, i) => ( | ||
<Task title={task.title} description={task.description} index={i} key={i} /> | ||
))} | ||
</Space> | ||
</PublicAppealStyle> | ||
) | ||
} | ||
|
||
type TaskDetails = { | ||
index: number | ||
title: string | ||
description: string | ||
} | ||
|
||
const Task = ({ index, title, description }: TaskDetails) => { | ||
return ( | ||
<Widget key={index}> | ||
<h2 className="public">{title}</h2> | ||
<p>{description}</p> | ||
<a href="https://open-bus-stride-api.hasadna.org.il/docs">Open Bus Stride API</a> | ||
</Widget> | ||
) | ||
} | ||
|
||
const PublicAppealStyle = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
padding: 0 1rem; | ||
& .public-appeal-center-container { | ||
width: 100%; | ||
max-width: 770px; | ||
& h1 { | ||
font-size: 2em; | ||
} | ||
} | ||
` | ||
|
||
export default PublicAppeal |
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