Skip to content

Commit

Permalink
Merge pull request #1697 from starknet-io/enhancement/update-navbar
Browse files Browse the repository at this point in the history
Update navbar
  • Loading branch information
rafaelcruzazevedo authored Nov 23, 2023
2 parents 50fb5bd + ab6a3bb commit a557637
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
6 changes: 3 additions & 3 deletions _data/settings/main-menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ items:
- title: Resources
columns:
- blocks:
- title: All blog posts
- title: Content
items:
- custom_internal_link: /posts/
custom_title: All blog posts
- custom_title: Community & events
custom_internal_link: /posts/community-and-events
custom_internal_link: /posts/events-and-webinars
hide_from_footer: true
- custom_title: Community calls
custom_internal_link: /posts/community-calls
Expand All @@ -107,7 +107,7 @@ items:
custom_internal_link: /posts/tutorials-and-guides
hide_from_footer: true
- custom_title: STARK Struck Podcast
custom_internal_link: /posts/stark-struck
custom_internal_link: /posts/stark-struck-podcast
hide_from_footer: true
- blocks:
- title: OTHER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export const Solid = () => (
title: "BLOG & MEDIA",
items: [
{
custom_title: "All blog posts",
custom_title: "Content",
custom_internal_link: "/posts/",
},
{
Expand Down
26 changes: 15 additions & 11 deletions workspaces/website/src/components/Layout/Navbar/NavLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,21 @@ export const NavLayout = (props: NavLayoutProps) => {
/>
</Box>

<Box
w="1px"
bg="nav-footer-br"
h="30px"
position="relative"
marginInlineStart="12px !important"
display={{ base: "none", lg: "block" }}
/>
<Box display={{ base: "none", lg: "block" }} marginInlineStart="0 !important">
{props.languageSwitcher}
</Box>
{!!props.languageSwitcher && (
<>
<Box
w="1px"
bg="nav-footer-br"
h="30px"
position="relative"
marginInlineStart="12px !important"
display={{ base: "none", lg: "block" }}
/>
<Box display={{ base: "none", lg: "block" }} marginInlineStart="0 !important">
{props.languageSwitcher}
</Box>
</>
)}

<Box display={{ base: "block", lg: "none" }}><IconButton
ref={menuButtonRef}
Expand Down
2 changes: 0 additions & 2 deletions workspaces/website/src/pages/(components)/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

import * as NavAccordian from "@ui/Layout/Navbar/NavAccordion";
import type { MainMenu } from "@starknet-io/cms-data/src/settings/main-menu";
import LocaleSwitcher from "./LocaleSwitcher";
import { NavBar } from "@ui/Layout/Navbar/Navbar";
import { MenuItemWithDropdown } from "@ui/Layout/Navbar/MenuItemWithDropdown";
import { NavbarContainer } from "@ui/Layout/Navbar/NavbarContainer";
Expand Down Expand Up @@ -39,7 +38,6 @@ export default function Navbar({
return (
<NavbarContainer>
<NavBar
languageSwitcher={<LocaleSwitcher seo={languageCenterSeo} />}
search={
<div>
<MainSearch env={env} seo={searchSEO} />
Expand Down

0 comments on commit a557637

Please sign in to comment.