react-icons/bs#BsBoxArrowUpRight JavaScript Examples

The following examples show how to use react-icons/bs#BsBoxArrowUpRight. 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: HackathonCard.js    From devagram with GNU General Public License v3.0 6 votes vote down vote up
function HackathonCard({ card }) {
  // function on() {
  //   document.getElementsByClassName("Details_outer__L9Klp")[0].style.display =
  //     "block";
  // }
  const [isModalOpen, setModalOpen] = useState(false);

  return (
    <>
      {isModalOpen ? (
        <Details card={card} click={() => setModalOpen(false)} />
      ) : null}
      <div className={classes.hackathoncard} style={{}}>
        <img src={card.imageUrl} alt={card.title} />
        <h6>{card.title}</h6>
        <p>{card.description}</p>
        <p>{card.type}</p>
        {/* using BEM convention for naming classes*/}
        <button
          className={classes.learn_more}
          onClick={() => {
            setModalOpen(true);
          }}
        >
          Learn more about Imagine Cup <BsBoxArrowUpRight />
        </button>
        <div className={classes.hackathoncard__buttons}>
          <button>Participate</button>
        </div>
      </div>
    </>
  );
}
Example #2
Source File: MyProfile.js    From viade_en1b with MIT License 5 votes vote down vote up
/**
 * Component to show the user's profile
 * @param {*} props 
 */
export function MyProfile(props) {
  let email = props.userEmail ? <p>{props.userEmail}</p> : null;
  let emailLoading = props.loading === true ? <p>Loading...</p> : null;
  const { routes } = props;
  const {userWebId} = props;
  let own = getOwnRoutesNumber(routes, userWebId);
  let shared = getSharedRoutesNumber(routes, userWebId);

  return (
    <div id="generalComponent">
      <LoggedIn>
        <div id="card">
          <div id="image-cropper">
            <Image
              src="user.vcard_hasPhoto"
              defaultSrc="profile.svg"
              id="profilePicture"
            />
          </div>

          <div id="allData">
            <div id="profileData">
              <h1>
                <FormattedMessage id="Greetings" />,{" "}
                <b>
                  <Value src="user.name" />
                </b>
              </h1>

              {email}
              {emailLoading}
              <p>
                <Badge variant="dark">
                  {<Value src="user.vcard_role" /> ? (
                    <Value src="user.vcard_role" />
                  ) : (
                    <FormattedMessage id="CEO" />
                  )}
                </Badge>
              </p>
              <a href={useWebId()}>
                <FormattedMessage id="SolidProfile" />{" "}
                <BsBoxArrowUpRight></BsBoxArrowUpRight>
              </a>
            </div>
            <div id="profileData">
              <Button variant="primary">
                <FormattedMessage id="Routes" />
                <Badge variant="light">
                  {own}
                </Badge>
              </Button>
              <Button variant="primary">
                <FormattedMessage id="SharedRoutes" />{" "}
                <Badge variant="light">
                  {shared}
                </Badge>
              </Button>
            </div>
          </div>
          <FriendList friends={props.friends} id="friendList" />
        </div>
      </LoggedIn>
      <LoggedOut>
        <Redirect to="/"></Redirect>
      </LoggedOut>
    </div>
  );
}