Skip to content
Snippets Groups Projects
Commit bee8179c authored by xaralis's avatar xaralis
Browse files

feat: update to styleguide 2.5.0

parent b95c37e7
No related branches found
No related tags found
No related merge requests found
Pipeline #5911 passed
REACT_APP_STYLEGUIDE_URL="https://styleguide.pirati.cz/2.4.0" REACT_APP_STYLEGUIDE_URL="https://styleguide.pirati.cz/2.5.0"
REACT_APP_ROOT_URL="https://cf2022.pirati.cz" REACT_APP_ROOT_URL="https://cf2022.pirati.cz"
REACT_APP_CF_TITLE="CF 2022" REACT_APP_CF_TITLE="CF 2022"
REACT_APP_CF_DESC="Oficiální stránka zasedání Celostátního fóra České pirátské strany, 8. - 9. 1. 2022." REACT_APP_CF_DESC="Oficiální stránka zasedání Celostátního fóra České pirátské strany, 8. - 9. 1. 2022."
......
import { NavLink } from "react-router-dom"; import { NavLink } from "react-router-dom";
import classNames from "classnames"; import classNames from "classnames";
import { Card, CardBody } from "components/cards";
import { nav } from "config"; import { nav } from "config";
const VNav = ({ className, ...props }) => { const VNav = ({ className, ...props }) => {
const cls = classNames( const cls = classNames(
className, className,
"border-l border-grey-100 bg-grey-50 bg-opacity-50 pt-0 elevation-0 container-padding--zero md:container-padding--auto" "vertical-navbar container-padding--zero md:container-padding--auto"
); );
return ( return (
<Card className={cls} {...props}> <div className={cls} {...props}>
<CardBody className=""> <ul className="vertical-navbar__items">
<ul className="h-allcaps leading-loose">
<li> <li>
<NavLink to="/">Rozcestník</NavLink> <NavLink to="/">Rozcestník</NavLink>
</li> </li>
...@@ -23,15 +21,15 @@ const VNav = ({ className, ...props }) => { ...@@ -23,15 +21,15 @@ const VNav = ({ className, ...props }) => {
<li key={navItem.link}> <li key={navItem.link}>
<NavLink <NavLink
to={navItem.link} to={navItem.link}
activeClassName="font-bold bg-grey-125 block -mx-8 px-8" className="vertical-navbar__item"
activeClassName="vertical-navbar__item--active"
> >
{navItem.title} {navItem.title}
</NavLink> </NavLink>
</li> </li>
))} ))}
</ul> </ul>
</CardBody> </div>
</Card>
); );
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment