-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
134 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
webapp/src/components/ParcelAttributes/ParcelAttributes.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.ParcelAttributes { | ||
display: flex; | ||
flex-direction: row nowrap; | ||
align-items: center; | ||
} | ||
|
||
.ParcelAttributes:after { | ||
display: none; | ||
} | ||
|
||
.ParcelAttributes .coords { | ||
padding: 2px 9px 2px 7px; | ||
margin-right: 6px; | ||
font-size: 11px; | ||
border: 1px solid var(--gray); | ||
color: var(--text); | ||
border-radius: 4px; | ||
} | ||
|
||
.ParcelAttributes .coords .marker.icon { | ||
font-size: 12px; | ||
margin-right: 3px; | ||
line-height: 0.9; | ||
} | ||
|
||
.ParcelAttributes:hover .coords { | ||
color: var(--red); | ||
border-color: var(--red); | ||
} |
27 changes: 27 additions & 0 deletions
27
webapp/src/components/ParcelAttributes/ParcelAttributes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react' | ||
import { Link } from 'react-router-dom' | ||
import { parcelType } from 'components/types' | ||
import ParcelTags from 'components/ParcelTags/ParcelTags' | ||
import Icon from 'components/Icon' | ||
import './ParcelAttributes.css' | ||
import { locations } from 'locations' | ||
|
||
export default class ParcelAttributes extends React.PureComponent { | ||
static propTypes = { | ||
parcel: parcelType | ||
} | ||
render() { | ||
const { parcel } = this.props | ||
return ( | ||
<Link to={locations.parcelDetail(parcel.x, parcel.y)}> | ||
<div className="ParcelAttributes"> | ||
<div className="coords"> | ||
<Icon name="marker" /> | ||
<span className="coord">{parcel.id}</span> | ||
</div> | ||
<ParcelTags parcel={parcel} size="small" /> | ||
</div> | ||
</Link> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import ParcelAttributes from './ParcelAttributes' | ||
export default ParcelAttributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters