|
|
|
@@ -1,9 +1,114 @@ |
|
|
|
import React from 'react' |
|
|
|
import React, { useState } from "react"; |
|
|
|
import PropType from "prop-types"; |
|
|
|
import Box from "@mui/material/Box"; |
|
|
|
import Drawer from "@mui/material/Drawer"; |
|
|
|
import FormGroup from "@mui/material/FormGroup"; |
|
|
|
import FormControlLabel from "@mui/material/FormControlLabel"; |
|
|
|
import Checkbox from "@mui/material/Checkbox"; |
|
|
|
import Slider from "@mui/material/Slider"; |
|
|
|
import filterIcon from "../../assets/images/filter_vector.png"; |
|
|
|
import x from "../../assets/images/x.png"; |
|
|
|
|
|
|
|
const AdFilters = ({ open, handleClose }) => { |
|
|
|
const [value, setValue] = useState([0, 10]); |
|
|
|
|
|
|
|
const handleSliderChange = (_, newValue) => { |
|
|
|
setValue(newValue); |
|
|
|
}; |
|
|
|
|
|
|
|
const list = () => ( |
|
|
|
<Box |
|
|
|
sx={{ |
|
|
|
width: 360, |
|
|
|
height: "100%", |
|
|
|
borderRadius: "18px 0 0 18px", |
|
|
|
padding: "36px", |
|
|
|
}} |
|
|
|
role="presentation" |
|
|
|
// onClick={handleClose} |
|
|
|
onKeyDown={handleClose} |
|
|
|
> |
|
|
|
<div> |
|
|
|
<div className="ad-filters-header-container"> |
|
|
|
<div className="ad-filters-header"> |
|
|
|
<img src={filterIcon} alt="filter_icon" /> |
|
|
|
<h3>Filteri</h3> |
|
|
|
<p> |
|
|
|
<sub>| Oglasi</sub> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-header-close" onClick={handleClose}> |
|
|
|
<img src={x} alt="x" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-experience"> |
|
|
|
<div className="ad-filters-sub-title"> |
|
|
|
<p>Godine iskustva</p> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-experience-slider"> |
|
|
|
<Slider |
|
|
|
getAriaLabel={() => "Temperature range"} |
|
|
|
value={value} |
|
|
|
onChange={handleSliderChange} |
|
|
|
valueLabelDisplay="auto" |
|
|
|
max={20} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-technologies"> |
|
|
|
<div className="ad-filters-sub-title"> |
|
|
|
<p>Tehnologije</p> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-technologies-checkboxes"> |
|
|
|
<FormGroup> |
|
|
|
<FormControlLabel control={<Checkbox />} label="HTML/CSS" /> |
|
|
|
<FormControlLabel control={<Checkbox />} label="Vanilla JS" /> |
|
|
|
<FormControlLabel control={<Checkbox />} label="React" /> |
|
|
|
<FormControlLabel control={<Checkbox />} label="Angular" /> |
|
|
|
<FormControlLabel control={<Checkbox />} label="SQL" /> |
|
|
|
<FormControlLabel control={<Checkbox />} label="Node.js" /> |
|
|
|
<FormControlLabel control={<Checkbox />} label="PHP" /> |
|
|
|
<FormControlLabel control={<Checkbox />} label="Git" /> |
|
|
|
</FormGroup> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-technologies"> |
|
|
|
<div className="ad-filters-sub-title"> |
|
|
|
<p>Tip zaposlenja</p> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-employment-type"> |
|
|
|
<button className="c-btn c-btn--primary-outlined">Intership</button> |
|
|
|
<button className="c-btn c-btn--primary">Posao</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-technologies"> |
|
|
|
<div className="ad-filters-sub-title"> |
|
|
|
<p>Radno vreme</p> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-employment-type"> |
|
|
|
<button className="c-btn c-btn--primary-outlined">Part-time</button> |
|
|
|
<button className="c-btn c-btn--primary-outlined">Full-time</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="ad-filters-search"> |
|
|
|
<button className="c-btn c-btn--primary">Pretrazi</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</Box> |
|
|
|
); |
|
|
|
|
|
|
|
const AdFilters = () => { |
|
|
|
return ( |
|
|
|
<div>AdFilter</div> |
|
|
|
) |
|
|
|
} |
|
|
|
<div> |
|
|
|
<Drawer anchor="right" open={open} onClose={handleClose}> |
|
|
|
{list()} |
|
|
|
</Drawer> |
|
|
|
</div> |
|
|
|
); |
|
|
|
}; |
|
|
|
|
|
|
|
AdFilters.propTypes = { |
|
|
|
open: PropType.any, |
|
|
|
handleClose: PropType.func, |
|
|
|
}; |
|
|
|
|
|
|
|
export default AdFilters |
|
|
|
export default AdFilters; |