Skip to content
Snippets Groups Projects
Commit 7e6f4c27 authored by Loïc Poullain's avatar Loïc Poullain
Browse files

Add empty dotation cards

parent ce5a6155
No related branches found
No related tags found
1 merge request!47Ajouter l'UX des résultats de la page dotation
Showing with 142 additions and 1 deletion
.container {
height: calc(100% - 31px);
overflow-y: scroll;
margin: -12px -12px 0 -12px;
}
.container > * {
width: 100% !important;
margin: 0px!important;
}
@media screen and (max-width: 1427px) {
.container {
height: calc(100% - 72px);
}
}
\ No newline at end of file
import Grid from "@material-ui/core/Grid";
import { PureComponent } from "react";
import { CommuneSearch } from "./commune-search";
import { CommuneStrateDetails } from "./commune-strate-details";
import { CommuneSummary } from "./commune-summary";
import { CommuneType } from "./commune-type";
import styles from "./Results.module.scss";
export class Results extends PureComponent {
render() {
return (
<div />
<div className={styles.container}>
<Grid container spacing={24}>
<Grid item lg={4} md={6} sm={6} xl={3} xs={12}>
<CommuneSummary />
</Grid>
<Grid item lg={8} md={12} sm={6} xl={6} xs={12}>
<CommuneStrateDetails />
</Grid>
</Grid>
<Grid container spacing={24}>
<Grid item lg={4} md={6} sm={6} xl={3} xs={12}>
<CommuneType
departement="Isère"
name="Vaujany"
/>
</Grid>
<Grid item lg={4} md={6} sm={6} xl={3} xs={12}>
<CommuneType
departement="Quasquara"
name="Corse-du-sud"
/>
</Grid>
<Grid item lg={4} md={6} sm={6} xl={3} xs={12}>
<CommuneSearch />
</Grid>
</Grid>
</div>
);
}
}
import { PureComponent } from "react";
import { Card } from "../../../card";
export class CommuneSearch extends PureComponent {
render() {
return (
<Card
content1={(
<div>
Barre de recherche
</div>
)}
title="Ajouter une nouvelle commune"
/>
);
}
}
export { CommuneSearch } from "./CommuneSearch";
import { PureComponent } from "react";
import { Card } from "../../../card";
export class CommuneStrateDetails extends PureComponent {
render() {
return (
<Card
content1={(
<div>
Tableau des communes par strate
</div>
)}
subTitle="par taille de commune"
title="Impact sur les communes"
/>
);
}
}
export { CommuneStrateDetails } from "./CommuneStrateDetails";
import { PureComponent } from "react";
import { Card } from "../../../card";
export class CommuneSummary extends PureComponent {
render() {
return (
<Card
content1={(
<div>
Résultats globaux
</div>
)}
title="Nombre de communes éligibles"
/>
);
}
}
export { CommuneSummary } from "./CommuneSummary";
import { PureComponent } from "react";
import { Card } from "../../../card";
// TODO: use the future state interface "Commune" from "types."
interface Props {
name: string;
departement: string;
}
export class CommuneType extends PureComponent<Props> {
render() {
const { departement, name } = this.props;
return (
<Card
content1={(
<div>
Descriptif de la commune
</div>
)}
content2={(
<div>
Résultat
</div>
)}
subTitle={departement}
title={name}
onClose={() => {}}
onEdit={() => {}}
/>
);
}
}
export { CommuneType } from "./CommuneType";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment