Skip to content

Commit

Permalink
#297 add linkedin group to navigation (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaBhate authored Feb 19, 2024
1 parent 7215748 commit c46b879
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 23 deletions.
32 changes: 19 additions & 13 deletions website/src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ import ExternalLink from './external-link.tsx';
const Navbar = () => <>
<header>
<div>
<img src={IAB} alt="@idrinth/api-bench"/>
<img src={IAB} alt="@idrinth/api-bench" />
<strong>@idrinth/api-bench</strong>
<em>v{pkg.version}</em>
</div>
<nav>
<ul>
<li>
<NavLink to="/"><Lang lnkey='home.nav'/></NavLink>
<NavLink to="/"><Lang lnkey='home.nav' /></NavLink>
</li>
<li>
<NavLink to="/quick-start/">
<Lang lnkey='quick-start.nav'/>
<Lang lnkey='quick-start.nav' />
</NavLink>
</li>
<li>
Expand All @@ -40,56 +40,62 @@ const Navbar = () => <>
label={'GITHUB'}
/>
</li>
<li>
<ExternalLink
to="https://www.linkedin.com/groups/9588634/"
label={'LINKEDIN'}
/>
</li>
<li>
<NavLink to="/contributing/">
<Lang lnkey='contributing.nav'/>
<Lang lnkey='contributing.nav' />
</NavLink>
<ul>
<li>
<NavLink to="/contributing/contributors/">
<Lang lnkey='contributors.nav'/>
<Lang lnkey='contributors.nav' />
</NavLink>
</li>
<li>
<NavLink to="/contributing/sponsors/">
<Lang lnkey='sponsors.nav'/>
<Lang lnkey='sponsors.nav' />
</NavLink>
</li>
</ul>
</li>
<li>
<NavLink to="/usage/">
<Lang lnkey='usage.nav'/>
<Lang lnkey='usage.nav' />
</NavLink>
<ul>
<li>
<NavLink to="/usage/autowiring/">
<Lang lnkey='autowiring.nav'/>
<Lang lnkey='autowiring.nav' />
</NavLink>
</li>
<li>
<NavLink to="/usage/results/">
<Lang lnkey='results.nav'/>
<Lang lnkey='results.nav' />
</NavLink>
</li>
<li>
<NavLink to="/usage/logging/">
<Lang lnkey='logging.nav'/>
<Lang lnkey='logging.nav' />
</NavLink>
</li>
<li>
<NavLink to="/usage/middlewares/">
<Lang lnkey='middlewares.nav'/>
<Lang lnkey='middlewares.nav' />
</NavLink>
</li>
<li>
<NavLink to="/usage/storage/">
<Lang lnkey='storage.nav'/>
<Lang lnkey='storage.nav' />
</NavLink>
</li>
<li>
<NavLink to="/usage/routes/">
<Lang lnkey='routes.nav'/>
<Lang lnkey='routes.nav' />
</NavLink>
</li>
</ul>
Expand Down
27 changes: 17 additions & 10 deletions website/src/index.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
:root {
--white: hsla(0deg 0% 100% / 100%);
--light-gray: hsla(204deg 8% 76% / 100%);;
--light-gray: hsla(204deg 8% 76% / 100%);
--dark-gray: hsla(0deg 0% 25% / 100%);
--dark-green: hsla(132deg 33% 29% / 100%);
--green: hsla(120deg 77% 36% / 100%);
--black: hsla(0deg 0% 0% / 100%);
--black: hsla(0deg 0% 0% / 100%);
--light-green: hsla(99deg 90% 36% / 100%);
--very-dark-gray: hsla(0deg 0% 12.94% / 100%);
--darker: hsla(0deg 0% 0% / 5%);
Expand Down Expand Up @@ -141,6 +141,7 @@ nav li {
width: 100%;
text-align: center;
padding: 0.5em 0;
font-size: 14px;
}

footer {
Expand All @@ -156,7 +157,7 @@ footer ul {
justify-content: flex-end;
}

footer a {
footer a {
text-decoration: none;
}

Expand Down Expand Up @@ -266,11 +267,11 @@ footer li:last-child::after {
}

nav.breadcrumbs li::after {
content: ' > ';
content: " > ";
}

nav.breadcrumbs li:last-of-type::after {
content: '';
content: "";
}

.profile h2,
Expand All @@ -282,14 +283,20 @@ nav.breadcrumbs li:last-of-type::after {
footer {
grid-template-columns: 1fr 1fr;
padding: 1rem 0;
}
}

footer ul {
margin-right: 4rem;
}

header, footer {
background-image: linear-gradient(to bottom, hsla(0deg 0% 100% / 10%), hsla(0deg 0% 100% / 15%), hsla(0deg 0% 100% / 5%));
header,
footer {
background-image: linear-gradient(
to bottom,
hsla(0deg 0% 100% / 10%),
hsla(0deg 0% 100% / 15%),
hsla(0deg 0% 100% / 5%)
);
}

header div {
Expand Down Expand Up @@ -318,7 +325,7 @@ nav.breadcrumbs li:last-of-type::after {
width: initial;
}

nav ul ul{
nav ul ul {
display: none;
}

Expand Down Expand Up @@ -405,7 +412,7 @@ nav.breadcrumbs li:last-of-type::after {
}

pre {
background-color: var(--black)
background-color: var(--black);
}

a[target="_blank"] {
Expand Down

0 comments on commit c46b879

Please sign in to comment.