Commit d7857613 authored by Florent Chehab's avatar Florent Chehab

Updated general display

parent b0ad28a8
......@@ -12,6 +12,7 @@ import MyComponent from '../../MyComponent';
import TextLink from '../../other/TextLink';
import Grid from '@material-ui/core/Grid';
import Divider from '@material-ui/core/Divider';
import PhotoSizeSelectActualIcon from '@material-ui/icons/PhotoSizeSelectActual';
import GenericModule from '../shared/GenericModule';
......@@ -36,15 +37,28 @@ function renderCore(rawModelData, classes, outsideData) {
return (
<div>
<Grid container spacing={16} direction='row'>
<Grid item xs={4}>
<img style={{ width: "100%" }} src={logo} />
<Grid item xs={4} alignItems='center' style={{ display: 'inline-flex' }}>
{
logo != '' ?
<img style={{ width: "100%" }} src={logo} />
:
<PhotoSizeSelectActualIcon style={{ marginLeft: 'auto', marginRight: 'auto', width: '60%', height: '60%' }} />
}
</Grid>
<Grid item xs>
<Typography variant='headline'>{name}</Typography>
<Typography variant='title'>{acronym}</Typography>
<Divider />
<Typography variant='subheading'>{city}, {country}</Typography>
<Typography variant='body1'> Site internet : <TextLink href={website}>{website}</TextLink> </Typography>
<Typography variant='body1'> Site internet&nbsp;:{' '}
{
website != '' ?
<TextLink href={website}>{website}</TextLink>
:
<em>Non connu.</em>
}
</Typography>
</Grid>
</Grid>
<Markdown source={comment} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment