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: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = {
`bitway-page`,
`contact-page`,
`global-config`,
`jobs-page`,
],
},
},
Expand Down
2 changes: 1 addition & 1 deletion public/page-data/index/page-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"componentChunkName": "component---src-pages-index-js",
"path": "/",
"result": {"pageContext":{}},
"staticQueryHashes": ["1128713364","1687125271","176670904","2432702713","3498872882","3858639830","4109181808","854109855","882490824"]}
"staticQueryHashes": ["1128713364","1687125271","176670904","2432702713","3498872882","3858639830","4109181808","770810350","854109855","882490824"]}
2 changes: 1 addition & 1 deletion public/render-page.js.map

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions src/components/JobsPage/JobsPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from 'react'
import Layout from '../layout'
import Helmet from 'react-helmet'
import { useJobsPage } from '../../hooks'
import MarkdownView from "react-showdown"
import { Seo } from '../index'
import './JobsPage.scss'

export default function JobsPage() {
const jobsData = useJobsPage()
const banner = jobsData.strapiJobsPage.banner

const { pageTitle, pageDescription, pageKeywords } = jobsData?.strapiJobsPage?.pageMetadata || {}

return (
<Layout>
{jobsData?.strapiJobsPage?.pageMetadata && (
<Seo
title={pageTitle}
description={pageDescription}
keywords={pageKeywords}
/>
)}
<MarkdownView markdown={banner} 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])};
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>
)
}
95 changes: 95 additions & 0 deletions src/components/JobsPage/JobsPage.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
@import "../../styles/global.scss";

.cats-job-title {
a {
color: rgb(86, 130, 198);
font-weight: 700;
}
}

.cats-job {
border-bottom: 1px solid #cdcdcd;
padding-left: 15px !important;

>div{
overflow-x: hidden !important;
}


&:hover {
background-color: #faf5f5 !important;
cursor: pointer;
}
}

.widget-container {
min-height: 65vh;
margin-top: 20px !important;
margin-bottom: 70px !important;
}

.cats-powered-by {
display: none;
}

.cats-column-header{
padding-left: 15px !important;
}

.banner__head {
width: 100%;
background: #303234;
min-height: 300px;
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
h2{
color:$blue;
font-size: $large;
text-align: center;

span{
background-color: $blue;
display: inline-block;
-webkit-transform: skew(-15deg);
transform: skew(-15deg);

p {
padding: 5px 20px;
-webkit-transform: skew(15deg);
transform: skew(15deg);
color: $white !important;
font-size: $large;
margin: 0;
}
}
}
h3{
color: $white;
//border-bottom: 4px solid $blue;
//padding: 7px;
font-size: $small;
text-align: center;
//padding: 0px 15px;
}
}

@media (min-width: $breakpoint-tablet) {
.widget-container {
margin-top: 70px !important;
}
.banner__head {
h2 {
font-size: $extra-large;
p{
font-size: $extra-large;
}
}
h3 {
font-size: $large;
border-bottom: 4px solid $blue;
padding: 7px;
}
}
}
2 changes: 2 additions & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import BannerClientes from "./Banners/BannerClientes"
import BannerTop from "./Banners/BannerTop"
import BannerActionCall from "./Banners/BannerActionCall"
import PartnersSection from "./PartnersSection/PartnersSection"
import JobsPage from "./JobsPage/JobsPage"

export {
ServicesSection,
Expand All @@ -34,4 +35,5 @@ export {
BannerTop,
BannerActionCall,
PartnersSection,
JobsPage,
}
3 changes: 2 additions & 1 deletion src/constants/MenuLinks/MenuLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const MENU_LINKS = [
{ id: 3, text: "edtech", url: "/edtech" },
{ id: 4, text: "bitway", url: "/bitway" },
{ id: 5, text: "blog", url: "/blog" },
{ id: 6, text: "contacto", url: "/contacto" },
{ id: 6, text: "jobs", url: "/jobs" },
{ id: 7, text: "contacto", url: "/contacto" },
]

const MenuLinks = ({ styleClass }) => {
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import useGlobalSeo from "./useGlobalSeo"
import useHomePage from "./useHomePage"
import useContactPage from "./useContactPage"
import useBlog from './useBlog'
import useJobsPage from "./useJobsPage"

export {
useServices,
Expand All @@ -16,4 +17,5 @@ export {
useHomePage,
useContactPage,
useBlog,
useJobsPage,
}
20 changes: 20 additions & 0 deletions src/hooks/useJobsPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { useStaticQuery, graphql } from "gatsby"

const useJobsPage = () => {
const query = useStaticQuery(graphql`
{
strapiJobsPage {
banner
pageMetadata {
pageDescription
pageKeywords
pageTitle
}
}
}

`)
return query
}

export default useJobsPage
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
35 changes: 35 additions & 0 deletions src/schema/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,41 @@ type StrapiGlobalConfigScript {
src: String
}

type StrapiJobsPage implements Node {
id: ID!
parent: Node
children: [Node!]!
internal: Internal!
banner: String
published_at(
formatString: String
fromNow: Boolean
difference: String
locale: String
): Date
created_at(
formatString: String
fromNow: Boolean
difference: String
locale: String
): Date
updated_at(
formatString: String
fromNow: Boolean
difference: String
locale: String
): Date
strapiId: Int
pageMetadata: StrapiJobsPagePageMetadata
}

type StrapiJobsPagePageMetadata {
id: Int
pageTitle: String
pageDescription: String
pageKeywords: String
}


`

Expand Down