react-icons/fa#FaAlignRight JavaScript Examples

The following examples show how to use react-icons/fa#FaAlignRight. 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: Navbar.js    From devfolio with MIT License 6 votes vote down vote up
Navbar = ({ toggleSidebar }) => {
  return (
    <nav className="navbar">
      <div className="nav-center">
        <div className="nav-header">
          <img className="logo" src={logo} alt="logo" />
          <button
            type="button"
            className="toggle-btn"
            aria-label="Toggle Sidebar"
            onClick={toggleSidebar}
          >
            <FaAlignRight></FaAlignRight>
          </button>
        </div>
        <PageLinks
          aria-label="Navigation Links"
          styleClass="nav-links"
        ></PageLinks>
      </div>
    </nav>
  );
}
Example #2
Source File: Navbar.js    From gatsby-strapi-portfolio-site-2020 with MIT License 6 votes vote down vote up
Navbar = ({ toggleSidebar }) => {
  return (
    <nav className="navbar">
      <div className="nav-center">
        <div className="nav-header">
          <img src={logo} alt="logo" />
          <button type="button" className="toggle-btn" onClick={toggleSidebar}>
            <FaAlignRight></FaAlignRight>
          </button>
        </div>
        <PageLinks styleClass="nav-links"></PageLinks>
      </div>
    </nav>
  )
}
Example #3
Source File: Navbar.js    From gatsby-contentful-blog-portfolio with MIT License 5 votes vote down vote up
Navbar = () => {
  const data = useStaticQuery(getLogo)

  return (
    <NavbarWrapper>
      <div className="nav-center">
        <div className="nav-header">
          <Link to="/" data-cy="logo">
            <Img fixed={data.logo.childImageSharp.fixed} alt="Homepage" />
          </Link>

          <button
            type="button"
            className="logo-btn"
            // onClick={toggleNav}
            aria-label="Open Menu"
            data-cy="mobile-button"
          >
            <FaAlignRight className="logo-icon" />
          </button>
        </div>
        <ul className="nav-links">
          {links.map((item, index) => {
            return (
              <li key={index}>
                <Link
                  to={item.path}
                  data-cy={item.text}
                  activeClassName="navitem-active"
                >
                  {item.text}
                </Link>
              </li>
            )
          })}
        </ul>
      </div>
    </NavbarWrapper>
  )
}