react-icons/md#MdBookmark JavaScript Examples

The following examples show how to use react-icons/md#MdBookmark. 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: Learn.js    From CS-Hut with MIT License 4 votes vote down vote up
function Learn(props) {
  console.log(props.content.courses);
  return (
    <motion.div
      initial={{ scaleY: 0 }}
      animate={{ scaleY: 1 }}
      transition={{ duration: 0.5 }}
    >
      <div className="learn">
        <div classNameName="headings">{props.name}</div>
        <div className="container">
          <motion.div
            exit="out"
            animate="in"
            initial="out"
            transition={{ delay: 0.5 }}
            variants={pageTransition}
            className="card"
          >
            <h3 className="title">Youtube</h3>
            <div className="bar">
              <div className="emptybar"></div>
              <div className="filledbar"></div>
            </div>
            <ul>
              {props.content.youtube.map((link, i) => (
                <li>
                  <a
                    style={{ color: "white" }}
                    href={link}
                    target="_blank"
                    rel="noopener noreferrer"
                  >
                    <FaYoutube
                      size={20}
                      style={{ fill: "white", marginRight: "1vw" }}
                    />
                    Watch
                  </a>
                </li>
              ))}
            </ul>
          </motion.div>
          <motion.div
            exit="out"
            animate="in"
            initial="out"
            variants={pageTransition}
            transition={{ delay: 0.5 }}
            className="card"
          >
            <h3 className="title">Websites</h3>
            <div className="bar">
              <div className="emptybar"></div>
              <div className="filledbar"></div>
            </div>
            <ul>
              {props.content.websites.map((link, i) => (
                <li>
                  <a
                    style={{ color: "white" }}
                    href={link}
                    target="_blank"
                    rel="noopener noreferrer"
                  >
                    <MdBookmark
                      size={20}
                      style={{ fill: "white", marginRight: "1vw" }}
                    />
                    Open
                  </a>
                </li>
              ))}
            </ul>
          </motion.div>
          <div className="card">
            <h3 className="title">Courses</h3>
            <div className="bar">
              <div className="emptybar"></div>
              <div className="filledbar"></div>
            </div>
            <ul>
              {props.content.courses.map((link, i) => (
                <li>
                  <a
                    style={{ color: "white" }}
                    href={link}
                    target="_blank"
                    rel="noopener noreferrer"
                  >
                    <FaBookOpen
                      size={20}
                      style={{ fill: "white", marginRight: "1vw" }}
                    />
                    Learn
                  </a>
                </li>
              ))}
            </ul>
          </div>
          <motion.div
            className="card"
            variants={pageTransition2}
            initial="out"
            transition={{ delay: 0.5 }}
            animate="in"
            exit="out"
          >
            <h3 className="title">Tips/Tricks</h3>
            <div className="bar">
              <div className="emptybar"></div>
              <div className="filledbar"></div>
            </div>
            <ul>
              {props.content.tips.map((link, i) => (
                <li>
                  <a
                    style={{ color: "white" }}
                    href={link}
                    target="_blank"
                    rel="noreferrer"
                  >
                    <FaLightbulb
                      size={20}
                      style={{ fill: "white", marginRight: "1vw" }}
                    />
                    Tips
                  </a>
                </li>
              ))}
            </ul>
          </motion.div>
          <motion.div
            className="card"
            variants={pageTransition2}
            initial="out"
            transition={{ delay: 0.5 }}
            animate="in"
            exit="out"
          >
            <h3 className="title">Github</h3>
            <div className="bar">
              <div className="emptybar"></div>
              <div className="filledbar"></div>
            </div>
            <ul>
              {props.content.github.map((link, i) => (
                <li>
                  <a
                    style={{ color: "white" }}
                    href={link}
                    target="_blank"
                    rel="noreferrer"
                  >
                    <FaGithub
                      size={20}
                      style={{ fill: "white", marginRight: "1vw" }}
                    />
                    Clone
                  </a>
                </li>
              ))}
            </ul>
          </motion.div>
        </div>
      </div>
    </motion.div>
  );
}