Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/components/Hero/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default function Hero({ data }) {
const richList = data.listAnimation;
const image = data.image.url;

console.log(richList, "lista")
const regexList = /(- )(.*)/g;

//Parametros en la funcion y validar el richText q acepte mas q h1
Expand Down
66 changes: 34 additions & 32 deletions src/components/JobsPage/JobsPage.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
import React from 'react'
import Layout from '../layout'
import Helmet from 'react-helmet'
import React from "react"
import Layout from "../layout"
import Helmet from "react-helmet"
import MarkdownView from "react-showdown"
import { Seo } from '../index'
import './JobsPage.scss'
import { Seo } from "../index"
import "./JobsPage.scss"

export default function JobsPage() {
const jobsData = useJobsPage()
const title = jobsData?.strapiJobsPage?.title
const { pageTitle, pageDescription, pageKeywords } = jobsData?.strapiJobsPage?.pageMetadata || {}
const JobsPage = () => {

return (
<Layout>
{jobsData?.strapiJobsPage?.pageMetadata && (
<Seo
title={pageTitle}
description={pageDescription}
keywords={pageKeywords}
/>
)}
<MarkdownView markdown={title} className="banner__head" />
<div id="cats-portal-widget" className="container widget-container"></div>
<Helmet>
<script>
{`window.cjw=window.cjw||function(){(cjw.instance=cjw.instance||[]).push(arguments[0])};
return (
<Layout>
<Seo />
<div class="banner__head">
<h2 id="teinvitamosaspanpcrearpspan">
Te invitamos a{" "}
<span>
<p>crear</p>
</span>
</h2>
<h3 id="conocnuestrasbsquedasydescubrtuprximodesafoconnosotros">
Conocé nuestras búsquedas y descubrí tu próximo desafío con nosotros.
</h3>
</div>
<div id="cats-portal-widget" className="container widget-container"></div>
<Helmet>
<script>
{`window.cjw=window.cjw||function(){(cjw.instance=cjw.instance||[]).push(arguments[0])};
cjw({"id":91646,"domain":"catsone.com","target":"#cats-portal-widget"});`}
</script>
<script
async
src="https://app.catsone.com/resources/entry-jobwidget.js">
</script>
</Helmet>

</Layout>
)
</script>
<script
async
src="https://app.catsone.com/resources/entry-jobwidget.js"
></script>
</Helmet>
</Layout>
)
}

export default JobsPage
44 changes: 17 additions & 27 deletions src/components/NavBar/AnimatedNavBar/AnimatedNavbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,38 +31,23 @@ const AnimatedNavbar = ({
duration,
}) => {
const navbarConfig = [
{
title: "Home",
slug: "",
dropdown: () => (
<Dropdown
sections={homeComponents
.filter(
component => component.strapi_component !== "home.transition"
)
.map(component => ({
name: getComponentTitle(component),
id: component.strapi_component + "-" + component.id,
}))}
/>
),
},
...navbarItems.map(navItem => {
if (navItem.landing) {
return {
title: navItem.label,
slug: navItem.landing.slug,
dropdown: () => (
<Dropdown
sections={landingComponents
.find(landing => landing.name === navItem.landing.name)
.body.map(component => ({
name: getComponentTitle(component),
id: component.strapi_component + "-" + component.id,
slug: navItem.landing.slug,
}))}
/>
),
dropdown: () =>
navItem.dropdown ? (
<Dropdown
sections={landingComponents
.find(landing => landing.name === navItem.landing.name)
.body.map(component => ({
name: getComponentTitle(component),
id: component.strapi_component + "-" + component.id,
slug: navItem.landing.slug,
}))}
/>
) : null,
}
} else if (navItem.url) {
return {
Expand All @@ -72,6 +57,11 @@ const AnimatedNavbar = ({
}
}
}),
{
title: "Join Us",
slug: "jobs",
dropdown: () => <Dropdown sections={null} />,
},
{
title: "Blog",
slug: "blog",
Expand Down
2 changes: 2 additions & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import BannerClientes from "./Banners/BannerClientes"
import BannerTop from "./Banners/BannerTop"
import BannerActionCall from "./Banners/BannerActionCall"
import CasesSection from "./CasesSection/CasesSection"
import JobsPage from "./JobsPage/JobsPage"
export {
JobsPage,
Cards,
CasesSection,
Seo,
Expand Down
2 changes: 0 additions & 2 deletions src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ const Layout = ({ children, options = {}, location }) => {

React.useEffect(() => {
const hash = location?.state?.component
console.log(hash)
let el = hash && document.getElementById(hash)
console.log(el)
if (el) {
el.scrollIntoView({ behavior: "smooth" })
}
Expand Down
6 changes: 6 additions & 0 deletions src/pages/jobs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from "react"
import {JobsPage} from "../components"

const Jobs = () => <JobsPage />

export default Jobs
4 changes: 4 additions & 0 deletions src/schema/caseSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ type StrapiCase implements Node {
width: Int
height: Int
}

type LocalFile {
localFile: File @link(from: "localFile___NODE")
}
`

module.exports = {
Expand Down
4 changes: 4 additions & 0 deletions src/schema/generalSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ type LocalFile {
): Date
formats: StrapiBlogCategoryArticleAuthorImageFormats
}

type LocalFile {
localFile: File @link(from: "localFile___NODE")
}
`

module.exports = {
Expand Down
4 changes: 4 additions & 0 deletions src/schema/globalSeoSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ type StrapiGlobalConfig implements Node {
enable: Boolean
src: String
}

type LocalFile {
localFile: File @link(from: "localFile___NODE")
}
`
module.exports = {
value: globalSeoSchema,
Expand Down
4 changes: 4 additions & 0 deletions src/schema/homeSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ type StrapiHome implements Node {
pageKeywords: String
}

type LocalFile {
localFile: File @link(from: "localFile___NODE")
}

`
module.exports = {
value: homeSchema,
Expand Down
4 changes: 4 additions & 0 deletions src/schema/iconSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ type StrapiIcon implements Node {
): Date
localFile: File
}

type LocalFile {
localFile: File @link(from: "localFile___NODE")
}
`
module.exports = {
value: iconScheme,
Expand Down
4 changes: 4 additions & 0 deletions src/schema/landingSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ type StrapiLandingPage implements Node {
pageDescription: String
pageKeywords: String
}

type LocalFile {
localFile: File @link(from: "localFile___NODE")
}
`
module.exports = {
value: landingSchema,
Expand Down
4 changes: 4 additions & 0 deletions src/schema/layoutSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ type StrapiLayoutFooter {
navbar: StrapiLayoutNavbar
strapiId: Int
}

type LocalFile {
localFile: File @link(from: "localFile___NODE")
}
`
module.exports = {
value: layoutSchema,
Expand Down