Add 404 image

This commit is contained in:
Tanner Collin 2020-01-11 06:57:08 +00:00
parent 946c70d776
commit 5f486695ba
5 changed files with 9 additions and 2 deletions

BIN
webclient/public/404.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

View File

@ -91,7 +91,7 @@ function MemberInfo(props) {
<Grid.Column width={6}>
<img
className='photo-medium'
src={member.photo_medium ? staticUrl + '/' + member.photo_medium : 'nophoto.png'} size='small'
src={member.photo_medium ? staticUrl + '/' + member.photo_medium : '/nophoto.png'} size='small'
/>
</Grid.Column>

View File

@ -65,7 +65,7 @@ export function Members(props) {
<Table.Cell>
<img
className='photo-small'
src={x.photo_small ? staticUrl + '/' + x.photo_small : 'nophoto.png'}
src={x.photo_small ? staticUrl + '/' + x.photo_small : '/nophoto.png'}
/>
</Table.Cell>
<Table.Cell>{x.preferred_name} {x.last_name}</Table.Cell>

View File

@ -21,6 +21,8 @@ export function NotFound() {
<Message.Header style={{ padding: 0 }}>The page you requested can't be found!</Message.Header>
<p>Visit our <Link to='/'>home page</Link> if you are lost.</p>
</Message>
<img className='photo-404' src='/404.jpg' />
</Container>
);
};

View File

@ -39,3 +39,8 @@ body {
max-width: 150px;
max-height: 1500px;
}
.photo-404 {
max-width: 100%;
height: auto;
}