react-icons/ai#AiFillHome JavaScript Examples

The following examples show how to use react-icons/ai#AiFillHome. 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: MapMarker.js    From airdnd-frontend with MIT License 5 votes vote down vote up
MapMarker = ({
  theme,
  store,
  isOpen,
  isHovered,
  marker,
  dateDiff,
  clickMarker,
}) => {
  const { location, price, isBookmarked } = marker;
  return (
    <Marker
      position={{ lat: +location.lat, lng: +location.lng }}
      icon={{
        scale: 0,
        path: '',
      }}
    >
      <OverlayView
        key={Math.random()}
        position={{ lat: +location.lat, lng: +location.lng }}
        mapPaneName={OverlayView.OVERLAY_MOUSE_TARGET}
        getPixelPositionOffset={getPixelPositionOffset}
      >
        {dateDiff ? (
          <PriceMarker
            btnType="oval"
            isOpen={isOpen}
            isHovered={isHovered}
            theme={theme}
            onClick={clickMarker}
          >
            <span>
              ₩<Strong> {price.toLocaleString()} </Strong>
            </span>
            {isBookmarked && (
              <Heart
                size="smaller"
                bgColor={isOpen || isHovered ? 'white' : 'main'}
                stroke={isOpen || isHovered ? 'black' : 'white'}
                theme={theme}
              />
            )}
          </PriceMarker>
        ) : (
          <HomeMarker
            btnType="circle"
            isOpen={isOpen}
            isHovered={isHovered}
            theme={theme}
            onClick={clickMarker}
          >
            <AiFillHome />
            {isBookmarked && (
              <MiniHeart
                size="smaller"
                bgColor={isOpen || isHovered ? 'white' : 'main'}
                stroke={isOpen || isHovered ? 'black' : 'white'}
                theme={theme}
              />
            )}
          </HomeMarker>
        )}
      </OverlayView>
      {isOpen && (
        <InfoBox
          className="InfoBox"
          options={{ closeBoxURL: '', enableEventPropagation: true }}
        >
          <HomePopupContainer
            home={marker}
            store={store}
            dateDiff={dateDiff}
            theme={theme}
          />
        </InfoBox>
      )}
    </Marker>
  );
}
Example #2
Source File: Navbar.js    From react-wall-app with MIT License 5 votes vote down vote up
Navbar = () => {
  return (
    <nav className="bg-purple-800">
      <div className="max-w-7xl mx-auto px-2 sm:px-6 lg:px-8">
        <div className="relative flex items-center justify-between h-16">
          <div className="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start">
            <div className="sm:block">
              <div className="flex space-x-4">
                <div
                  className="bg-gray-900 text-white hover:bg-gray-700 px-3 py-2 rounded-md text-md font-medium flex flex-row items-center"
                  aria-current="page"
                >
                  <Link href="/">
                    <a>
                      <span className="inline-flex pr-2">
                        <AiFillHome />
                      </span>
                      Home
                    </a>
                  </Link>
                </div>
                <div
                  className="bg-gray-900 text-white hover:bg-gray-700 px-3 py-2 rounded-md text-md font-medium flex flex-row items-center"
                  aria-current="page"
                >
                  <Link href="/hotwalls">
                    <a>
                      <span className="inline-flex pr-2">
                        <AiFillFire />
                      </span>
                      Hot
                    </a>
                  </Link>
                </div>

                <div className="bg-gray-900 text-white hover:bg-gray-700 px-3 py-2 rounded-md text-md font-medium flex flex-row items-center">
                  <Link href="/newwalls">
                    <a>
                      <span className="inline-flex pr-2">
                        <BiPolygon />
                      </span>
                      New
                    </a>
                  </Link>
                </div>
              </div>
            </div>
          </div>
          <div className="absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0">
            <div className="ml-3 relative">
              <div className="hidden md:block bg-gray-900 text-white hover:bg-gray-700 px-3 py-2 rounded-md text-md font-medium flex flex-row items-center">
                <Link href="/about">
                  <a>About</a>
                </Link>
              </div>
            </div>
          </div>
        </div>
      </div>
    </nav>
  );
}
Example #3
Source File: MsgDetailAirbnbSupportTeamBox.js    From airdnd-frontend with MIT License 4 votes vote down vote up
MsgDetailAirbnbSupportTeamBox = ({
  isCanceled,
  onClickOpenModal,
  onClickOpenFlagModal,
}) => {
  return (
    <MsgDetailAstWrapper>
      <MsgDetailAstOuterWrapper>
        <MsgDetailAstInnerWrapper>
          <MsgDetailAstTitle>에어비엔비 지원</MsgDetailAstTitle>
        </MsgDetailAstInnerWrapper>
        <a
          href="https://www.airbnb.co.kr/help/home"
          rel="noopener noreferrer"
          target="_blank"
        >
          <StButton>
            <MsgDetailAstButtonWrapper>
              <MsgDetailAstButtonInnerWrapper>
                <MdHelp />
                <MsgDetailAstButtonText>도움말 센터</MsgDetailAstButtonText>
              </MsgDetailAstButtonInnerWrapper>
              <MdKeyboardArrowRight />
            </MsgDetailAstButtonWrapper>
          </StButton>
        </a>
        <a
          href="https://www.airbnb.co.kr/resolutions"
          rel="noopener noreferrer"
          target="_blank"
        >
          <StButton>
            <MsgDetailAstButtonWrapper>
              <MsgDetailAstButtonInnerWrapper>
                <AiFillHome />
                <MsgDetailAstButtonText>해결 센터</MsgDetailAstButtonText>
              </MsgDetailAstButtonInnerWrapper>
              <MdKeyboardArrowRight />
            </MsgDetailAstButtonWrapper>
          </StButton>
        </a>
        {isCanceled ? (
          <StButton onClick={onClickOpenFlagModal}>
            <MsgDetailAstButtonWrapper>
              <MsgDetailAstButtonInnerWrapper>
                <MdFlag />
                <MsgDetailAstButtonText>호스트 신고하기</MsgDetailAstButtonText>
              </MsgDetailAstButtonInnerWrapper>
              <MdKeyboardArrowRight />
            </MsgDetailAstButtonWrapper>
          </StButton>
        ) : (
          <>
            <a href="tel:+8210-6415-4738">
              <StButton>
                <MsgDetailAstButtonWrapper>
                  <MsgDetailAstButtonInnerWrapper>
                    <MdPhoneIphone />
                    <MsgDetailAstButtonText>
                      호스트에게 전화하기
                    </MsgDetailAstButtonText>
                  </MsgDetailAstButtonInnerWrapper>
                  <MdKeyboardArrowRight />
                </MsgDetailAstButtonWrapper>
              </StButton>
            </a>
            <StButton onClick={onClickOpenModal}>
              <MsgDetailAstButtonWrapper>
                <MsgDetailAstButtonInnerWrapper>
                  <MdPhoneIphone />
                  <MsgDetailAstButtonText>
                    출장자를 위한 고객 지원팀에 연락하기
                  </MsgDetailAstButtonText>
                </MsgDetailAstButtonInnerWrapper>
                <MdKeyboardArrowRight />
              </MsgDetailAstButtonWrapper>
            </StButton>
          </>
        )}
      </MsgDetailAstOuterWrapper>
    </MsgDetailAstWrapper>
  );
}