Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ class App extends Component {
return (
<div className="app">
<h1>Hello World!</h1>
<Instructions />
<Instructions
shouldDisplayImage={true}
items={['apple', 'banana', 'clementine', 'dragonfruit', 'bl']}
/>
</div>
)
}
Expand Down
23 changes: 18 additions & 5 deletions src/components/Instructions.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,24 @@ class Instructions extends Component {
return (
<div className="instructions">
Follow the instructions on the README to get started!
<img
className="instructions__logo"
src="https://uiuc.hack4impact.org/img/colored-logo.png"
alt="h4i logo"
/>
{this.props.shouldDisplayImage && (
<img
className="instructions__logo"
src="https://uiuc.hack4impact.org/img/colored-logo.png"
alt="h4i logo"
/>
)}
{this.props.items.map((item, index) => (
<ul key={index}>
{item.length >= 3 && (
<li>
{this.props.items.indexOf(item) % 2 === 1
? item.toUpperCase()
: item}
</li>
)}
</ul>
))}
</div>
)
}
Expand Down