- Timestamp:
- 09/07/22 00:49:45 (2 years ago)
- Branches:
- master
- Children:
- f25d07e
- Parents:
- dfd5d87
- Location:
- phonelux-frontend/src/components/GroupedFiltersComponent
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-frontend/src/components/GroupedFiltersComponent/GroupedFiltersComponent.css
rdfd5d87 rdbd4834 1 #filtersDiv{2 background-color: # 91AD7E;1 .grouped-filters-component{ 2 background-color: #a6c9ab; 3 3 display: flex; 4 } 5 6 /* #filtersDiv > div{ 7 margin-left: 30px; 8 } */ 9 10 11 #filtersDiv > div{ 12 margin-left: 30px; 13 } 14 15 #filtersDiv > div:nth-of-type(4){ 16 margin-top: 15px; 17 margin-left: 200px; 4 padding: 20px; 18 5 } 19 6 -
phonelux-frontend/src/components/GroupedFiltersComponent/GroupedFiltersComponent.js
rdfd5d87 rdbd4834 8 8 import FilterPriceComponent from "../FiltersComponents/FilterPriceComponent" 9 9 import SearchFieldComponent from '../FiltersComponents/SearchFieldComponent'; 10 import { Grid } from '@mui/material'; 11 import SortByComponent from '../FiltersComponents/SortByComponent'; 10 12 11 13 export default class GroupedFiltersComponent extends Component { 14 15 constructor(props) { 16 super(props) 17 18 this.state = { 19 20 } 21 } 22 23 24 componentDidMount(){ 25 26 } 27 12 28 render() { 13 29 return ( 14 <div id="filtersDiv"> 15 <FilterSelectComponent/> 16 <FilterSelectComponent/> 17 <FilterPriceComponent/> 18 <SearchFieldComponent/> 30 <> 31 <div className="grouped-filters-component"> 32 <Grid container spacing={5}> 33 34 <Grid className='filterscomponent-grid-item' item xs={6} sm={4} md={3}> 35 <FilterSelectComponent changeHandler={this.props.passFilters} type='shops'/> 36 </Grid> 37 38 <Grid className='filterscomponent-grid-item' item xs={6} sm={4} md={3}> 39 <FilterSelectComponent changeHandler={this.props.passFilters} type='brands'/> 40 </Grid> 41 42 <Grid className='filterscomponent-grid-item' item xs={6} sm={4} md={3}> 43 <FilterPriceComponent changeHandler={this.props.passFilters}/> 44 </Grid> 45 46 <Grid className='filterscomponent-grid-item' item xs={6} sm={4} md={3}> 47 <SearchFieldComponent changeHandler={this.props.passFilters} /> 48 </Grid> 49 </Grid> 19 50 </div> 51 <SortByComponent changeHandler={this.props.passFilters}/> 52 </> 20 53 ) 21 54 } 55 22 56 }
Note:
See TracChangeset
for help on using the changeset viewer.