react-icons/bs#BsArrowLeftShort TypeScript Examples

The following examples show how to use react-icons/bs#BsArrowLeftShort. 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: SchoolHero.tsx    From po8klasie with GNU General Public License v3.0 5 votes vote down vote up
SchoolHero: FC<SchoolHeroProps> = ({ school }) => {
  const { projectID } = useProjectConfig();

  const descriptors = [
    school.public ? 'Szkoła publiczna' : 'Szkoła niepubliczna',
    getSchoolTypeFromRspoInstitutionTypeId(school.rspoInstitutionTypeId),
    school.town,
  ];

  return (
    <div className="bg-white border-b border-lighten">
      <div className="w-container mx-auto flex justify-between flex-col-reverse md:flex-row">
        <div className="py-6">
          <Link href={`/${projectID}/search`}>
            <a className="flex items-center">
              <BsArrowLeftShort className="mr-1 text-3xl" />
              Powrót do listy
            </a>
          </Link>
          <h1 className="text-3xl font-bold mt-4">{school.name}</h1>
          <ul className="flex">
            {descriptors.map((d) => (
              <li key={d} className="mx-2 first:ml-0 text-gray">
                {d}
              </li>
            ))}
          </ul>
        </div>
        {/* We don't support images for now */}
        {/* {<div className="relative"> */}
        {/*   <div */}
        {/*     style={{ background: `url(${tmpImg})` }} */}
        {/*     className="absolute top-0 left-0 w-full h-full blur filter blur opacity-50 md:hidden" */}
        {/*   /> */}
        {/*   <img */}
        {/*     src={tmpImg} */}
        {/*     alt="lorem" */}
        {/*     className="object-contain md:object-cover h-full max-h-40 md:w-auto w-full relative z-2" */}
        {/*   /> */}
        {/* </div>} */}
      </div>
    </div>
  );
}