react-icons/md#MdOutlineHome TypeScript Examples

The following examples show how to use react-icons/md#MdOutlineHome. 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: OverviewSection.tsx    From po8klasie with GNU General Public License v3.0 5 votes vote down vote up
OverviewSection: FC<SectionComponentProps> = ({ school }) => {
  const position: LatLngTuple = parseCoords(school);

  return (
    <SchoolInfoSection id="overview" updateTime={school.updatedAt}>
      <div className="py-3 px-5">
        <div className="grid lg:grid-cols-6">
          <div className="col-span-3 xl:col-span-2">
            <h3 className="text-lg font-bold text-dark">Podstawowe informacje</h3>
            <ul className="mt-2 text-gray">
              <li className="my-2">
                <ItemWithIcon icon={MdOutlineHome}>
                  {school.street} {school.buildingNo}, {school.zipCode} {school.town}
                </ItemWithIcon>
              </li>
              <li className="my-2">
                <ItemWithIcon icon={MdLink}>{school.website}</ItemWithIcon>
              </li>
              {/* not yet implemented */}
              {/* <li className="my-2"> */}
              {/*   <ItemWithIcon icon={MdPhone}>{school.}</ItemWithIcon> */}
              {/* </li> */}
              <li className="my-2">
                <ItemWithIcon icon={MdOutlineEmail}>{school.email}</ItemWithIcon>
              </li>
              {/* not yet implemented */}
              {/* <li className="my-2"> */}
              {/*   <ItemWithIcon icon={MdOutlineSchool}>{school.}</ItemWithIcon> */}
              {/* </li> */}
            </ul>
          </div>
          <div className="col-span-3 xl:col-span-4 h-72 xl:mt-0 mt-2">
            <SchoolLocationMap position={position} />
          </div>
        </div>
      </div>
      {school.description && (
        <div className="border-t border-light py-2 px-5">
          <h4 className="text-dark text-base font-semibold">O szkole</h4>
          <p className="text-gray my-2">{school.description}</p>
        </div>
      )}
    </SchoolInfoSection>
  );
}