forked from seanpdoyle/select-your-own-seat
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explain the map's symbols with a legend
For comparison [see this commit][commit] Nothing exciting here. The ergonomics is similar to the Stimulus version. [commit]: seanpdoyle@e234aba
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from 'react' | ||
|
||
export default class extends React.Component { | ||
render() { | ||
return ( | ||
<div className="syos-frame__legend" aria-hidden="true"> | ||
<p className="syos-u-margin-bottom-3 syos-u-font-weight-bold"> | ||
Legend | ||
</p> | ||
|
||
<ul className="syos-block-stack"> | ||
<li className="syos-block-stack__item"> | ||
<svg | ||
width="16px" | ||
height="16px" | ||
viewBox="0 0 16 16" | ||
xmlns="http://www.w3.org/2000/svg" | ||
aria-hidden="true" | ||
> | ||
<use | ||
width="16px" | ||
height="16px" | ||
xlinkHref="#seat-icon-unselected" | ||
> | ||
</use> | ||
</svg> | ||
|
||
Available | ||
</li> | ||
|
||
<li className="syos-block-stack__item"> | ||
<svg | ||
width="16px" | ||
height="16px" | ||
viewBox="0 0 16 16" | ||
xmlns="http://www.w3.org/2000/svg" | ||
aria-hidden="true" | ||
> | ||
<use | ||
width="16px" | ||
height="16px" | ||
xlinkHref="#seat-icon-selected" | ||
> | ||
</use> | ||
</svg> | ||
|
||
Selected | ||
</li> | ||
</ul> | ||
</div> | ||
) | ||
} | ||
} |
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