best I got right now

This commit is contained in:
Al Duncanson 2018-10-27 16:08:53 -04:00
parent 49eaa2a4f4
commit 7543839985
3 changed files with 16 additions and 10 deletions

View File

@ -17,4 +17,13 @@ body {
#disqus_thread { #disqus_thread {
width: 99% !important; width: 99% !important;
}
.sighting-details {
margin-top: 330px;
}
.sighting-detail-google-map-container > div {
width: calc(100% - 50% - 120px) !important;
height: 50% !important;
} }

View File

@ -1,6 +1,5 @@
import React, { Component, Fragment } from 'react'; import React, { Component, Fragment } from 'react';
import Disqus from 'disqus-react'; import Disqus from 'disqus-react';
import Divider from '@material-ui/core/Divider';
import SightingDetailMap from './SightingDetailMap'; import SightingDetailMap from './SightingDetailMap';
class SightingDetail extends Component { class SightingDetail extends Component {
@ -15,15 +14,13 @@ class SightingDetail extends Component {
return ( return (
<Fragment> <Fragment>
<h1>{`Sighting ${this.props.detail.id}`}</h1>
<Divider/>
<p>{`Type: ${this.props.detail.type}`}</p>
<p>{`Confidence: ${this.props.detail.confidence}`}</p>
<p>{`When: ${this.props.detail.date}, ${this.props.detail.time}`}</p>
<p>{`Where: ${this.props.detail.lat} degrees N, and ${this.props.detail.lng} degrees E`}</p>
<p>{`${this.props.detail.desc}`}</p>
<SightingDetailMap lat={this.props.detail.lat} lng={this.props.detail.lng}/> <SightingDetailMap lat={this.props.detail.lat} lng={this.props.detail.lng}/>
<div className='sighting-details'>
<p>{`Confidence: ${this.props.detail.confidence}`}</p>
<p>{`When: ${this.props.detail.date}, ${this.props.detail.time}`}</p>
<p>{`Where: ${this.props.detail.lat} degrees N, and ${this.props.detail.lng} degrees E`}</p>
<p>{`${this.props.detail.desc}`}</p>
</div>
<Disqus.DiscussionEmbed shortname={disqusShortname} config={disqusConfig} /> <Disqus.DiscussionEmbed shortname={disqusShortname} config={disqusConfig} />
</Fragment> </Fragment>
); );

View File

@ -95,4 +95,4 @@ class ViewSightings extends Component {
} }
} }
export default ViewSightings; export default ViewSightings;