diff --git a/src/components/Banner/Banner.js b/src/components/Banner/Banner.js index 4fb009ab..8e8db17e 100644 --- a/src/components/Banner/Banner.js +++ b/src/components/Banner/Banner.js @@ -8,9 +8,8 @@ const Banner = ({ data }) => { const summary = data?.summary const image = data?.image const button = data?.button - const id = data?.id return ( -
+

{title}

diff --git a/src/components/LogosSection/logosSection.js b/src/components/LogosSection/logosSection.js index 78814e9b..47f0dc9a 100644 --- a/src/components/LogosSection/logosSection.js +++ b/src/components/LogosSection/logosSection.js @@ -22,7 +22,7 @@ const LogosSection = ({ data }) => { ) }) return ( -
+
{title &&

{title}

} {summary &&
{summary}
}
{logoList}
diff --git a/src/components/NavBar/AnimatedNavBar/AnimatedNavbar.js b/src/components/NavBar/AnimatedNavBar/AnimatedNavbar.js index b7a1f865..1fc31db8 100644 --- a/src/components/NavBar/AnimatedNavBar/AnimatedNavbar.js +++ b/src/components/NavBar/AnimatedNavBar/AnimatedNavbar.js @@ -16,11 +16,15 @@ const getComponentTitle = component => { "home.video-background": () => component.title, "home.dual-section": () => component.dualSectionPart.map(section => section.title).join(" - "), + "components.text": () => false, + "banners.banner-head": () => component.title, + "components.logos-section": () => component.title, + "components.form": () => false, + "components.banner": () => component.title, } return ( - (titleReference[component.strapi_component] && - titleReference[component.strapi_component]()) || - "Titulo no definido" + titleReference[component.strapi_component] && + titleReference[component.strapi_component]() ) } @@ -43,7 +47,7 @@ const AnimatedNavbar = ({ landingComponents, navbarItems = [], duration }) => { sections={landingComponents .find(landing => landing.name === navItem.landing.name) .body.map(component => ({ - name: getComponentTitle(component), + name: getComponentTitle(component) || "", id: component.strapi_component + "-" + component.id, slug: navItem.landing.slug, }))} diff --git a/src/components/NavBar/AnimatedNavBar/DropdownContainer/Dropdown.js b/src/components/NavBar/AnimatedNavBar/DropdownContainer/Dropdown.js index 9dd947ce..d6af4c5d 100644 --- a/src/components/NavBar/AnimatedNavBar/DropdownContainer/Dropdown.js +++ b/src/components/NavBar/AnimatedNavBar/DropdownContainer/Dropdown.js @@ -4,21 +4,23 @@ import "./dropdown.scss" const Dropdown = ({ sections }) => { return ( -
+
    {sections && - sections.map(section => ( -

    - - {section.name} - -

    - ))} + sections.map(section => + section.name ? ( +

    + + {section.name} + +

    + ) : null + )}
diff --git a/src/components/NavBar/AnimatedNavBar/Navbar/navbarItems.scss b/src/components/NavBar/AnimatedNavBar/Navbar/navbarItems.scss index 28eb3f8e..7bfa7863 100644 --- a/src/components/NavBar/AnimatedNavBar/Navbar/navbarItems.scss +++ b/src/components/NavBar/AnimatedNavBar/Navbar/navbarItems.scss @@ -30,7 +30,7 @@ @media screen and (max-width: $breakpoint-xl) { justify-content: baseline; margin-left: 40px; - font-size: 1.4em; + font-size: 1.2em; } transition: opacity 250ms; cursor: pointer; @@ -48,6 +48,9 @@ left: 50%; transform: translateX(-50%); perspective: 1500px; + @media screen and (max-width: $breakpoint-xl) { + display: none; + } } } } diff --git a/src/components/NavBar/NavBar.scss b/src/components/NavBar/NavBar.scss index cc6a6e08..c3eb7ad1 100644 --- a/src/components/NavBar/NavBar.scss +++ b/src/components/NavBar/NavBar.scss @@ -54,6 +54,9 @@ &-contact { @include primaryBtn; white-space: nowrap; + a{ + color: inherit; + } } p { color: #1f1d37; @@ -61,7 +64,7 @@ } @media screen and (max-width: $breakpoint-xl) { margin-left: 40px; - font-size: 1.4em; + font-size: 1.3em; &-contact { font-size: 0.9em; } diff --git a/src/components/NavBar/Navbar.js b/src/components/NavBar/Navbar.js index 6df1a6dd..b01c964e 100644 --- a/src/components/NavBar/Navbar.js +++ b/src/components/NavBar/Navbar.js @@ -21,6 +21,9 @@ const NavBar = () => { const logoDark = getImage( navbarData.allStrapiLayout?.nodes[0].navbar?.logoDark?.localFile ) + + const navbarButton = navbarData.allStrapiLayout?.nodes[0].navbar?.navButton + return ( <> @@ -49,7 +52,19 @@ const NavBar = () => {
)}
- + {navbarButton && ( + + )}