forked from b00tc4mp/isdi-parttime-202309
-
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.
- Loading branch information
Showing
9 changed files
with
65 additions
and
14 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
staff/belen-ivars/project/app/src/components/ComplexityLevelFilter.jsx
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Dropable from "./Dropable" | ||
import OptionsFilters from "./OptionsFilters" | ||
|
||
export default function ComplexityLevelFilter() { | ||
const options = ['very easy', 'easy', 'medium', 'complex', 'very complex'] | ||
return <Dropable title="Complexity level" options={options} /> | ||
return <OptionsFilters title="Complexity level" options={options} /> | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Dropable from "./Dropable" | ||
import OptionsFilters from "./OptionsFilters" | ||
|
||
export default function DietFilter() { | ||
const options = ['glutenfree', 'vegetarian', 'vegan', 'omnivorous'] | ||
return <Dropable title="Diet type" options={options} /> | ||
return <OptionsFilters title="Diet type" options={options} /> | ||
} |
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,22 @@ | ||
import { useState } from "react" | ||
|
||
import React, { useState } from 'react'; | ||
|
||
function Dropdown() { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
return ( | ||
<div> | ||
<button onClick={() => setIsOpen(!isOpen)}>Toggle Dropdown</button> | ||
{isOpen && ( | ||
<div> | ||
<p>Option A</p> | ||
<p>Option B</p> | ||
<p>Option C</p> | ||
</div> | ||
)} | ||
</div> | ||
); | ||
} | ||
|
||
export default Dropdown; |
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
4 changes: 2 additions & 2 deletions
4
staff/belen-ivars/project/app/src/components/MethodFilter.jsx
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Dropable from "./Dropable" | ||
import OptionsFilters from "./OptionsFilters" | ||
|
||
export default function MethodFilter() { | ||
const options = ['steamed', 'oven', 'microwave', 'grill', 'fresh'] | ||
return <Dropable title="Method" options={options} /> | ||
return <OptionsFilters title="Method" options={options} /> | ||
} |
25 changes: 25 additions & 0 deletions
25
staff/belen-ivars/project/app/src/components/OptionsFilters.jsx
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,25 @@ | ||
import { Container, Label } from "../library" | ||
|
||
export default function OptionsFilters({ options, title }) { | ||
|
||
return ( | ||
<Container> | ||
<span><u>{title}</u></span> | ||
<ul id="checklist"> | ||
{ | ||
options.map((o, index) => ( | ||
|
||
<li key={index}> | ||
|
||
<input | ||
type="checkbox" | ||
value={o} | ||
/> | ||
<Label>{o}</Label> | ||
</li> | ||
)) | ||
} | ||
</ul> | ||
</Container> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Dropable from "./Dropable" | ||
import OptionsFilters from "./OptionsFilters" | ||
|
||
export default function TimeFilter() { | ||
const options = ['0 - 15 min', '15 - 30 min', '30-1 h', '+ 1h'] | ||
return <Dropable title="Time filter" options={options} /> | ||
return <OptionsFilters title="Time filter" options={options} /> | ||
} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export default function Profile() { | ||
export default function Profile({ name, email }) { | ||
|
||
|
||
|
||
} |