Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sharadbhat committed Dec 5, 2022
1 parent 5b9e988 commit f0e0e2e
Showing 1 changed file with 54 additions and 4 deletions.
58 changes: 54 additions & 4 deletions src/pages/ProcessBook/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ import './styles.css'

const ProcessBook = () => {
const [selectedBox, setselectedBox] = useState('processBook')

const renderText = () => {
switch (selectedBox) {
case 'proposal':
return renderProposalText()
case 'processBook':
return renderProcessBookText()
case 'feedback':
return renderFeedbackText()
default:
return renderProcessBookText()
}
}

return (
<Center>
<div className='process-book-container'>
Expand All @@ -29,17 +43,53 @@ const ProcessBook = () => {
value: 'processBook',
label: 'Process Book'
},
{
value: 'feedback',
label: 'Design Feedback'
}
]} />
</Center>
{selectedBox === 'processBook'
? renderProcessBookText()
: renderProposalText()
}
{renderText()}
</div>
</Center>
)
}

const renderFeedbackText = () => {
return (
<>
<div className='process-book-proposal-header'>
<div style={{ width: 110 }} />
<div>
<h1>Design Feedback</h1>
</div>
<Button
style={{ width: 110 }}
variant={'filled'}
color='gray'
component='a'
target={'_blank'}
href='https://raw.githubusercontent.com/sharadbhat/Formula-1-VRD/main/docs/Design Feedback.pdf'
>
Download
</Button>
</div>
<h3>Feedback</h3>
<div className='process-book-pl-50'>
<List>
<List.Item>Change location grid to a list of scrollable locations next to the map.</List.Item>
<List.Item>Highlight the ending result of a driver in a race.</List.Item>
<List.Item>Indicate pitstop laps to better understand overtakes.</List.Item>
<List.Item>Show driver names next to starting or finishing positions on the line chart.</List.Item>
<List.Item>On the map, show track layout and details on hover.</List.Item>
<List.Item>Synchronize interactions between track list and map.</List.Item>
<List.Item>Include icons on the map instead of circles (country flag, track logo, etc.)</List.Item>
</List>
</div>
</>
)
}

const renderProcessBookText = () => {
return (
<>
Expand Down

0 comments on commit f0e0e2e

Please sign in to comment.