@fortawesome/free-solid-svg-icons APIs
- faTimes
- faSearch
- faPlus
- faBars
- faCheck
- faEnvelope
- fas
- faTrash
- faArrowLeft
- faEdit
- faChevronDown
- faCheckCircle
- faHeart
- faExternalLinkAlt
- faHome
- faSpinner
- faArrowRight
- faEye
- faSignOutAlt
- faUsers
- faTrashAlt
- faTimesCircle
- faMapMarkerAlt
- faUser
- faChevronRight
- faAngleRight
- faCopy
- faExclamationTriangle
- faDownload
- faCog
- faAngleDown
- faUpload
- faLink
- faShoppingCart
- faCogs
- faInfoCircle
- faQuestionCircle
- faMoon
- faStar
- faGlobe
- faUserPlus
- faAngleUp
- faArrowDown
- faPhone
- faPlay
- faPencilAlt
- faCode
- faCalendar
- faSyncAlt
- faArrowUp
- faAngleLeft
- faEllipsisV
- faEyeSlash
- faChevronLeft
- faFile
- faChevronUp
- faClock
- faSun
- faCalendarAlt
- faSync
- faPaperPlane
- faQuestion
- faDollarSign
- faSignInAlt
- faList
- faFilter
- faComment
- faLock
- faUserCircle
- faShoppingBag
- faBell
- faFileAlt
- faBullhorn
- faMinus
- faPaperclip
- faCaretDown
- faHandHoldingUsd
- faHandshake
- faThumbsUp
- faChartPie
- faCodeBranch
- faTh
- faFolder
- faLaptop
- faTag
- faBook
- faCircleNotch
- faWrench
- faHistory
- faBan
- faExclamationCircle
- faPen
- faPause
- faMinusCircle
- faAlignLeft
- faAngleDoubleLeft
- faAngleDoubleRight
- faCalendarDay
- faLaptopCode
- faFire
- faPalette
- faMailBulk
- faRedoAlt
- faSave
- faEraser
- faBriefcase
- faFolderOpen
- faCompass
- faLightbulb
- faBox
- faVideo
- faLocationArrow
- faChartBar
- faExchangeAlt
- faTable
- faTachometerAlt
- faImages
- faShare
- faShareAlt
- faPlusSquare
- faShareSquare
- faVolumeMute
- faVolumeUp
- faFolderPlus
- faImage
- faCalculator
- faDatabase
- faRandom
- faMapPin
- faMapMarker
- faTabletAlt
- faUserFriends
- faAward
- faCalendarCheck
- faCoffee
- faGreaterThan
- faArrowCircleRight
- faFlask
- faStarHalfAlt
- faCompressAlt
- faExpandAlt
- faSortUp
- faSortDown
- faEllipsisH
- faMobileAlt
- faCross
- faShoppingBasket
- faCommentDots
- faBuilding
- faSearchDollar
- faMoneyCheck
- faExclamation
- faCloudDownloadAlt
- faChartLine
- faBookmark
- faMap
- faInbox
- faUnlink
- faUndo
- faPlusCircle
- faPlug
- faTools
- faClipboard
- faThLarge
- faComments
- faRedo
- faAddressBook
- faArrowsAlt
- faMicrochip
- faCubes
- faIdBadge
- faChartArea
- faBolt
- faMedal
- faTrophy
- faUserEdit
- faChalkboardTeacher
- faGraduationCap
- faUserGraduate
- faPercent
- faHandPointer
- faUndoAlt
- faFillDrip
- faFileUpload
- faVirus
- faGlobeAmericas
- faCalendarWeek
- faCalendarTimes
- faPhoneAlt
- faFilePdf
- faClipboardList
- faEnvelopeSquare
- faLessThan
- faGripLinesVertical
- faStepBackward
- faStepForward
- faCamera
- faBellSlash
- faArrowCircleDown
- faHeadSideCough
- faIndustry
- faLongArrowAltRight
- faDrawPolygon
- faMicrophone
- faMicrophoneSlash
- faWindowMinimize
- faWindowMaximize
- faCircle
- faVideoSlash
- faFileDownload
- faCheckSquare
- faServer
- faEquals
- faCreditCard
- faCartPlus
- faSearchPlus
- faPlaneDeparture
- faLanguage
- faInfo
- faRss
- faSnowflake
- faFan
- faThumbsDown
- faStop
- faGamepad
- faArrowAltCircleLeft
- faArrowAltCircleRight
- faAtom
- faCaretSquareLeft
- faCaretSquareRight
- faUserSlash
- faMoneyBill
- faCloudMoon
- faCar
- faHandPaper
- faMoneyBillWaveAlt
- faBorderAll
- faHotel
- faHatCowboySide
- faDog
- faCat
- faShip
- faFrog
- faTrain
- faFaucet
- faArrowAltCircleUp
- faStream
- faArrowsAltV
- faExternalLinkSquareAlt
- faLockOpen
- faClipboardCheck
- faFileSignature
- faMagnet
- faPencilRuler
- faRulerCombined
- faMusic
- faCommentAlt
- faFilm
- faCut
- faChevronCircleDown
- faRssSquare
- faTree
- faPrint
- faStamp
- faEllipsis
- faRefresh
- faForward
- faAdjust
- faScroll
- faRobot
- faCaretRight
- faFileImport
- faSatelliteDish
- faSlidersH
- faHourglassHalf
- faAsterisk
- faBlog
- faSignal
- faRoad
- faSuperscript
- faTags
- faFlagUsa
- faGlobeEurope
- faDesktop
- faArrowCircleLeft
- faPoll
- faFileInvoice
- faMagic
- faAt
- faNetworkWired
- faBookReader
- faDonate
- faInfinity
- faUserNinja
OtherRelated APIs
@fortawesome/free-solid-svg-icons#faHotel JavaScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faHotel.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Street.jsx From monopoly with GNU General Public License v3.0 | 5 votes |
render() {
const street = this.props.street || gameService.getStreet(this.props.position, this.props.game);
const houses = [];
if (street.houses > 0) {
for (let i = 0; i < street.houses; i++) {
houses.push(<div className="house" key={i}><FontAwesomeIcon icon={faHome}/></div>)
}
} else if (street.hotel > 0) {
for (let i = 0; i < street.hotel; i++) {
houses.push(<div className="hotel" key={i}><FontAwesomeIcon icon={faHotel}/></div>)
}
}
const opened = this.state.opened;
let canSend = false, owner = false, canBuyHouse = false;
if (opened) {
const permissions = gameService.allowedToSendDeed(street, this.props.game);
canSend = permissions.canSend;
owner = permissions.owner;
canBuyHouse = gameService.canBuyHouse(street, this.props.game);
}
const mortgageClass = street.mortgaged ? " mortgaged":"";
return (
<div
className={"street board-card grid-area-" + this.props.position + " " + this.props.boardPos + " " + (opened ? "opened" : "")+mortgageClass}
onClick={() => this.setState({opened: true})}>
{opened && <a className="close" onClick={(e) => {
this.setState({opened: false});
e.stopPropagation();
}}><FontAwesomeIcon icon={faTimesCircle}/></a>}
<div className="color" style={{backgroundColor: street.color}}>
{houses}
</div>
<div className="title">{street.title}</div>
<div className="body">
{opened && Object.keys(street.rent).map(k => <div key={k}>{k}: {street.rent[k]}</div>)}
{opened && <div>
<hr/>
Cost:
{Object.keys(street.cost).map(k => <div key={k}>{k}: {street.cost[k]}</div>)}
</div>}
{opened && <Mortgage property={street} isOwner={owner} game={this.props.game} type="regular"/>}
{opened && canBuyHouse && <div className="housing">
<hr />
<div>
Houses: <button onClick={this.removeHouse}>-</button> {street.houses} /
4 <button onClick={this.addHouse}>+</button>
</div>
{(street.houses === 4 || street.hotel === 1) && <div>
Hotel: <button onClick={this.removeHotel}>-</button> {street.hotel} / 1 <button
onClick={this.addHotel}>+</button>
</div>}
</div>}
{opened && <div>
<hr/>
Owned by: {gameService.getPlayerFromId(street.owner).name}
</div>}
{opened && canSend && <div className='send-street'>
<hr/>
Send to:
<select value={this.state.sendTo} onChange={(e) => this.setState({sendTo: e.target.value})}>
<option value="">Select</option>
{this.props.game.players.map(p => <option key={p.id} value={p.id}>{p.name}</option>)}
</select>
<button onClick={this.sendStreet}>Send !</button>
</div>}
</div>
<div className="price">${street.price}</div>
</div>
)
}