diff --git a/gatsby-config.js b/gatsby-config.js index 8163b567..20b0f4a2 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -37,24 +37,17 @@ module.exports = { apiURL: process.env.STRAPI_URL, queryLimit: 1000, collectionTypes: [ - `banners`, - `services`, - `edTeches`, - `ed-tech-submodules`, `article`, `blog-category`, - `landing-page` + `landing-page`, + `case`, + `icon` ], singleTypes: [ - `ed-tech-page`, `global-seo`, - `services-page`, `home`, `blog-page`, - `bitway-page`, - `contact-page`, `global-config`, - `jobs-page`, `layout`, ], }, diff --git a/gatsby-node.js b/gatsby-node.js index c3d0b141..8b9a5266 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -1,11 +1,26 @@ const path = require("path") exports.createSchemaCustomization = ({ actions }) => { - const schema = require("./src/schema/schema") + const blogSchema = require("./src/schema/blogSchema") + const caseSchema = require("./src/schema/caseSchema") + const globalSeoSchema = require("./src/schema/globalSeoSchema") + const homeSchema = require("./src/schema/homeSchema") + const iconSchema = require("./src/schema/iconSchema") + const landingSchema = require("./src/schema/landingSchema") + const layoutSchema = require("./src/schema/layoutSchema") + const generalSchema = require("./src/schema/generalSchema") const { createTypes } = actions - const typeDefs = schema.value // + luego se concatenan - + const typeDefs = + blogSchema.value + + blogSchema.value + + caseSchema.value + + globalSeoSchema.value + + homeSchema.value + + iconSchema.value + + landingSchema.value + + layoutSchema.value + + generalSchema.value createTypes(typeDefs) } diff --git a/public/page-data/index/page-data.json b/public/page-data/index/page-data.json index 46d42e34..3114acdb 100644 --- a/public/page-data/index/page-data.json +++ b/public/page-data/index/page-data.json @@ -2,4 +2,4 @@ "componentChunkName": "component---src-pages-index-js", "path": "/", "result": {"pageContext":{}}, - "staticQueryHashes": ["1128713364","1279924571","1292738615","1693928026","176670904","1868451474","2499611023","2898073905","3298386516","416013508","651390938","770242822","882490824"]} \ No newline at end of file + "staticQueryHashes": ["1128713364","1693928026","176670904","2898073905","3298386516","651390938"]} \ No newline at end of file diff --git a/src/components/Banners/BannerActionCall.js b/src/components/Banners/BannerActionCall.js deleted file mode 100644 index 625f4e08..00000000 --- a/src/components/Banners/BannerActionCall.js +++ /dev/null @@ -1,24 +0,0 @@ -import React from "react" -import { Link } from "gatsby" -import { getImage, GatsbyImage } from "gatsby-plugin-image" -import "./BannerActionCall.scss" - -const BannerActionCall = ({ banner }) => { - const icon = getImage(banner?.image?.localFile) - - return ( -
-
- -
-
-

{banner.title}

- - {banner.link.name} - -
-
- ) -} - -export default BannerActionCall diff --git a/src/components/Banners/BannerActionCall.scss b/src/components/Banners/BannerActionCall.scss deleted file mode 100644 index fbb6566b..00000000 --- a/src/components/Banners/BannerActionCall.scss +++ /dev/null @@ -1,75 +0,0 @@ -@import "../../styles/global.scss"; - -.bannerActCall { - background: linear-gradient(180deg, $primary-container 20%, $secondary-container 0); - padding: 30px 25px; - max-height: 235px; - display: flex; - justify-content: center; - align-items: flex-end; - margin-top: 65px; - - &__description { - padding-top: 45px; - display: flex; - flex-direction: column; - align-items: center; - align-self: center; - max-width: 195px; - } - &__logo { - flex-basis: 60px; - padding-bottom: 30px; - } - &__title { - color: $white; - font-size: $medium; - line-height: 30px; - font-weight: $bold; - margin-bottom: 15px; - flex-basis: auto; - padding-left: 5px; - text-align: center; - } - &__link { - color: $white; - font-weight: $bold; - border-bottom: $bottom-yellow; - font-size: $small; - padding: 7px; - &:hover { - color: $white; - text-decoration: none; - border-color: rgb(255, 244, 179); - } - } -} - -@media (min-width: $breakpoint-md) { - .bannerActCall { - padding: 45px 65px; - max-height: 600px; - background: linear-gradient(180deg, $primary-container 35%, $secondary-container 0); - &__title { - color: $white; - font-size: $second-large; - line-height: 55px; - margin-left: 5px; - } - &__link { - font-size: $large; - } - &__description { - padding-top: 20px; - padding-bottom: 20px; - max-width: 500px; - text-align: center; - margin-top: 7rem; - } - &__logo { - flex-basis: 110px; - padding-bottom: 65px; - // transform: translateY(-10%); - } - } -} diff --git a/src/components/Banners/BannerBgImage.js b/src/components/Banners/BannerBgImage.js deleted file mode 100644 index 0e3fd20a..00000000 --- a/src/components/Banners/BannerBgImage.js +++ /dev/null @@ -1,69 +0,0 @@ -import React from "react" -import { Link } from "gatsby" -import { getImage } from "gatsby-plugin-image" -import { BgImage } from "gbimage-bridge" -import showdown from "showdown" -import "./BannerBgImage.scss" - -import { useTheme } from "../../context/themeContext" - -const BannerBgImage = ({ banner }) => { - - const { theme } = useTheme() - - const { bgImage, bgImageDarkMode, link, title } = banner - - const titles = title - let converter = new showdown.Converter() - let post = titles - let html = converter.makeHtml(post) - - const ReplaceHtml = () => { - return { __html: html } - } - - const imagen = getImage(bgImage?.localFile) - const imagenDM = getImage(bgImageDarkMode?.localFile) - - return ( -
- {banner.bgImage ? ( - -
-
- - {link?.name} - -
-
- ) : ( -
-
-
- - {link.name} - -
-
- )} - {/* {summary ? ( -
-
-

{summary}

-
-
- ) : null} */} -
- ) -} - -export default BannerBgImage diff --git a/src/components/Banners/BannerBgImage.scss b/src/components/Banners/BannerBgImage.scss deleted file mode 100644 index af4a4689..00000000 --- a/src/components/Banners/BannerBgImage.scss +++ /dev/null @@ -1,160 +0,0 @@ -@import "../../styles/global.scss"; - -.bannerBgImage { - &__bgImage { - min-height: 60vh; - display: flex; - align-items: center; - justify-content: center; - background-color: $primary-container; - } - &__titleContainer { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - } - &__title { - margin-bottom: 30px; - h1, - h2, - h3, - h4, - h5, - h6, - span, - p { - font-size: $large; - color: $blue; - font-weight: $max-bold; - margin-bottom: 0px; - text-align: center; - } - - h1 span, - h2 span, - h3 span, - h4 span, - h5 span, - h6 span, - p span { - background-color: $blue; - display: inline-block; - transform: skew(-15deg); - } - h1 span p, - h2 span p, - h3 span p, - h4 span p, - h5 span p, - h6 span p, - p span p { - color: $primary-container; - padding: 5px 20px; - display: inline-block; - transform: skew(15deg); - } - } - &__link { - color: $blue; - font-size: $medium; - font-weight: $max-bold; - border-bottom: 4px solid $yellow; - margin-bottom: 0; - &:hover { - text-decoration: none; - color: $blue; - } - } -} -.bannerBgColor { - &__container { - min-height: 60vh; - display: flex; - align-items: center; - justify-content: center; - background-color: $secondary-container - } - &__titleContainer { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - } - &__title { - margin-bottom: 30px; - h1, - h2, - h3, - h4, - h5, - h6, - span, - p { - font-size: $large; - color: white; - font-weight: $max-bold; - margin-bottom: 10px; - text-align: center; - } - - h1 span, - h2 span, - h3 span, - h4 span, - h5 span, - h6 span, - p span { - background-color: $white; - padding: 0px 30px; - display: inline-block; - transform: skew(-25deg); - } - h1 span p, - h2 span p, - h3 span p, - h4 span p, - h5 span p, - h6 span p, - p span p { - color: $secondary-container; - padding: 0 15px; - display: inline-block; - transform: skew(25deg); - margin-bottom: 0; - } - } - &__link { - color: $white; - font-size: $medium; - font-weight: $max-bold; - border-bottom: 4px solid $yellow; - margin-bottom: 0; - &:hover { - text-decoration: none; - color: $white; - } - } -} - -@media screen and (min-width: 992px) { - .bannerBgImage, - .bannerBgColor { - &__title { - h1, - h2, - h3, - h4, - h5, - h6, - span, - p { - font-size: $extra-large; - } - } - - &__link { - font-size: $large; - } - } -} diff --git a/src/components/Banners/BannerClientes.js b/src/components/Banners/BannerClientes.js deleted file mode 100644 index 6b53de9b..00000000 --- a/src/components/Banners/BannerClientes.js +++ /dev/null @@ -1,37 +0,0 @@ -import React from "react" - -import { useBanner } from "../../hooks/index" -import showdown from "showdown" -// import "./BannerISO.scss" - -const BannerClientes = ({ banner, title }) => { - const dataBanner = useBanner() - - const bannerSelected = dataBanner?.allStrapiBanners?.nodes.find( - ban => ban.strapiId === banner.id - ) - const { summary } = bannerSelected - - const titles = summary - let converter = new showdown.Converter() - let post = titles - let html = converter.makeHtml(post) - - const ReplaceHtml = () => { - return { __html: html } - } - return ( -
-
-
-

{title}

-
-
-
-
- ) -} -export default BannerClientes diff --git a/src/components/Banners/BannerISO.js b/src/components/Banners/BannerISO.js deleted file mode 100644 index 4a77edf6..00000000 --- a/src/components/Banners/BannerISO.js +++ /dev/null @@ -1,35 +0,0 @@ -import React from "react" -import { getImage, GatsbyImage } from "gatsby-plugin-image" -import showdown from "showdown" -import "./BannerISO.scss" - -const BannerISO = ({ banner }) => { - - const { title, subtitle, image, imageDarkMode } = banner - - const titles = subtitle - let converter = new showdown.Converter() - let post = titles - let html = converter.makeHtml(post) - - const ReplaceHtml = () => { - return { __html: html } - } - return ( -
-
-
-

{title}

-
-
-
- -
-
-
- ) -} -export default BannerISO diff --git a/src/components/Banners/BannerISO.scss b/src/components/Banners/BannerISO.scss deleted file mode 100644 index 5b998f3e..00000000 --- a/src/components/Banners/BannerISO.scss +++ /dev/null @@ -1,98 +0,0 @@ -@import "../../styles/global.scss"; - -.bannerISO { - background-color: $secondary-container; - width: 100%; - min-height: 300px; - padding: 50px; - &__row { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - // padding: 40px 0; - } - &__titleContainer { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - - // padding-left: 350px; - h2 { - color: $white; - font-size: $large; - font-weight: $bold; - border-bottom: 4px solid $yellow; - padding-bottom: 15px; - text-align: center; - } - p { - color: $white; - font-size: $medium; - font-weight: $bold; - margin-bottom: 0; - padding-bottom: 35px; - text-align: center; - width: 60%; - } - } - &__subtitle { - display: flex; - justify-content: center; - } -} - -@media screen and (min-width: 992px) { - .bannerISO { - flex-direction: row; - align-items: center; - - &__row { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - } - &__titleContainer { - display: flex; - flex-direction: column; - align-items: flex-start; - justify-content: center; - - // padding-left: 350px; - h2 { - border-bottom: none; - } - p { - border-bottom: 4px solid $yellow; - width: 100%; - padding-bottom: 15px; - } - } - &__subtitle { - display: flex; - justify-content: flex-start; - } - &__image { - margin-left: 100px; - // display: flex; - // justify-content: center; - } - } -} -@media screen and (min-width: 1200px) { - .bannerISO { - &__titleContainer { - margin-right: 200px; - h2 { - border-bottom: none; - font-size: $extra-large; - } - p { - font-size: $large; - border-bottom: 4px solid $yellow; - } - } - } -} diff --git a/src/components/Banners/BannerLogo.js b/src/components/Banners/BannerLogo.js deleted file mode 100644 index e0b35557..00000000 --- a/src/components/Banners/BannerLogo.js +++ /dev/null @@ -1,49 +0,0 @@ -import * as React from "react" -import { getImage, GatsbyImage } from "gatsby-plugin-image" -import { BgImage } from "gbimage-bridge" - -import { useBanner } from "../../hooks/index" -import { useTheme } from "../../context/themeContext" - -import "./BannerLogo.scss" - -const BannerLogo = ({ banner }) => { - const { theme } = useTheme() - const { bgImage, bgImageDarkMode, image, imageDarkMode, title } = banner - - const imagen = getImage(bgImage?.localFile) - const logoImage = getImage(image?.localFile) - // Version Dark Mode - const imagenDM = getImage(bgImageDarkMode?.localFile) - const logoDM = getImage(imageDarkMode?.localFile) - - return ( - <> - {theme === "dark" && imagenDM && logoDM ? ( - -
- -
-

{title}

-
- ) : ( - -
- -
-

{title}

-
- )} -{/* - {title ? ( -
-
-

{title}

-
-
- ) : null} */} - - ) -} - -export default BannerLogo diff --git a/src/components/Banners/BannerLogo.scss b/src/components/Banners/BannerLogo.scss deleted file mode 100644 index 27cf01bc..00000000 --- a/src/components/Banners/BannerLogo.scss +++ /dev/null @@ -1,110 +0,0 @@ -@import "../../styles/global.scss"; - -@keyframes slogan-underline { - 0% { - left: 0; - width: 50%; - background: #ffe927; - } - 25% { - left: 45%; - width: 55%; - background: #fafafa; - } - 50% { - left: 25%; - width: 20%; - background: #ffe927; - } - 75% { - left: 40%; - width: 40%; - background: #fafafa; - } - 100% { - left: 0; - width: 50%; - background: #ffe927; - } -} -.BannerLogo__BgImage { - background-color: $primary-container; - width: 100%; - min-height: 600px; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; -} - -.BannerLogo__Logo__Container { - max-width: 45%; - min-width: 15rem; -} - -.BannerLogo__Title { - position: relative; - font-style: normal; - font-weight: bold; - font-size: 1.2rem; - line-height: 16px; - padding: 1.8rem 0 0.5rem; - color: $primary; -} -.BannerLogo__Title::after { - position: absolute; - content: ""; - bottom: 0; - left: 0; - right: 0; - height: 2px; - width: 50%; - background: #ffe927; - animation: 3s infinite slogan-underline; -} -.BannerLogo__summary { - background-color: $blue; - display: flex; - justify-content: center; - align-items: center; - - &__txt { - color: $white; - font-size: 15px; - padding: 23px 16px; - font-weight: $normal; - line-height: 18px; - letter-spacing: 0em; - text-align: center; - margin: 20px 0 20px; - } -} -@media screen and (min-width: 767px) { - .BannerLogo__Title { - font-size: 3rem; - line-height: 20px; - padding: 2rem 0 0.75rem; - } - .BannerLogo__Title::after { - height: 3px; - } - .BannerLogo__summary { - &__txt { - font-size: $large; - line-height: 35px; - text-align: center; - padding: 4rem 6rem; - margin-top: 0; - } - } -} -@media screen and (min-width: 992px) { - .BannerLogo__Title { - font-size: 4rem; - line-height: 30px; - padding: 2rem 0 1rem; - } - .Home__Title::after { - height: 4px; - } -} diff --git a/src/components/Banners/BannerTop.js b/src/components/Banners/BannerTop.js deleted file mode 100644 index a2716b99..00000000 --- a/src/components/Banners/BannerTop.js +++ /dev/null @@ -1,41 +0,0 @@ -import React from "react" -import { getImage } from "gatsby-plugin-image" -import { BgImage } from "gbimage-bridge" -import "./BannerTop.scss" - -import { useTheme } from "../../context/themeContext" - -const BannerTop = ({ banner }) => { - const { bgImage, bgImageDarkMode, image, title, summary } = banner - const { theme } = useTheme() - - const imageBanner = getImage(bgImage?.localFile) || getImage(image?.localFile) - const imageDM = getImage(bgImageDarkMode?.localFile) - - return ( -
- {theme === "dark" && imageDM ? ( - -
-

{title}

-
-
- ) : ( - -
-

{title}

-
-
- )} - {summary ? ( -
-
-

{summary}

-
-
- ) : null} -
- ) -} - -export default BannerTop diff --git a/src/components/Banners/BannerTop.scss b/src/components/Banners/BannerTop.scss deleted file mode 100644 index 8607018d..00000000 --- a/src/components/Banners/BannerTop.scss +++ /dev/null @@ -1,61 +0,0 @@ -@import "../../styles/global.scss"; - -.banner { - &__bgImage { - min-height: 60vh; - display: flex; - align-items: flex-end; - } - &__titleContainer { - background-color: rgba(36, 39, 42, 0.4); - padding: 27px 45px 28px 24px; - width: 100%; - } - &__title { - font-size: $medium; - color: $white; - font-weight: $max-bold; - margin: 0; - } - &__summary { - background-color: $secondary-container; - display: flex; - justify-content: center; - align-items: center; - - &__txt { - color: $white; - font-size: $medium; - padding: 23px 16px; - font-weight: $normal; - line-height: 25px; - letter-spacing: 0em; - text-align: center; - margin: 20px 0 20px; - font-weight: bold; - } - } -} - -@media (min-width: $breakpoint-md) { - .banner { - &__bgImage { - min-height: 600px; - } - &__titleContainer { - padding: 30px; - } - &__title { - font-size: $extra-large; - } - &__summary { - &__txt { - font-size: $large; - line-height: 35px; - text-align: center; - padding: 4rem 6rem; - margin-top: 0; - } - } - } -} diff --git a/src/components/BitwayPage/BitwayContainer.js b/src/components/BitwayPage/BitwayContainer.js deleted file mode 100755 index 5cf99426..00000000 --- a/src/components/BitwayPage/BitwayContainer.js +++ /dev/null @@ -1,87 +0,0 @@ -import * as React from "react" - -import Layout from "../../components/layout" -import { Seo } from "../index" -import useBitwayPage from "../../hooks/useBitwayPage" -import Gallery from "./Gallery/Gallery" -import Paragraph from "./Paragraph/Paragraph" -import "./BitwayContainer.scss" -import BannerActionCall from "../Banners/BannerActionCall" - - -const BitwayPage = () => { - const { - allStrapiBitwayPage: { nodes }, - } = useBitwayPage() - - const sections = nodes[0]?.sections - const bannerActionCall = nodes[0]?.actionCallBanner - const { pageTitle, pageDescription, pageKeywords } = nodes[0]?.SEO - - // vista desktop - // sort funciona con referencia, asi que se crea una nueva array - const sectionswide = [...sections] - // se ordenan las galerias primero - // se filtran las galerias y los parrafos - const gallery = sectionswide.filter(e => e.galleryImage) - const paragraph = sectionswide - .filter(e => e.body) - .map(e => ) - // y se renderizan - return ( - - {nodes[0]?.SEO && ( - - )} - {sections.length > 0 && ( - -
- {/* se renderiza por vistas */} - {/* vista mobile */} - {sections?.map((elem, index, array) => { - if (elem.galleryImage) { - if (array[index - 1]?.galleryImage) { - return null - } - if (array[index + 1]?.galleryImage) { - return ( - - ) - } else { - return ( - - ) - } - } else if (elem.body) { - return ( - - ) - } else { - return null - } - })} - {/* vista desktop */} - -
{paragraph}
-
- )} - {bannerActionCall && ( - - )} -
- ) -} - -export default BitwayPage diff --git a/src/components/BitwayPage/BitwayContainer.scss b/src/components/BitwayPage/BitwayContainer.scss deleted file mode 100644 index 8fdc7da0..00000000 --- a/src/components/BitwayPage/BitwayContainer.scss +++ /dev/null @@ -1,38 +0,0 @@ -@import "../../styles/global.scss"; - -.bitway-body { - display: grid; - grid-template-columns: 1fr 1fr; - grid-template-areas: "bitway-odd bitway-even"; - padding: 20px; - gap: 26px; - max-width: 100vw; - margin-bottom: 75px; - -} - -.bitway-body:nth-child(odd) { - grid-area: bitway-odd; -} - -.bitway-body:nth-child(even) { - grid-area: bitway-even; -} - -.bitway-mobile { - display: none; -} - -@media (max-width: 992px) { - .bitway-body { - grid-template-columns: 1fr; - padding: 20px; - grid-template-areas: "bitway-even" "bitway-odd"; - } - .bitway-desktop { - display: none; - } - .bitway-mobile { - display: grid; - } -} diff --git a/src/components/BitwayPage/Gallery/Gallery.js b/src/components/BitwayPage/Gallery/Gallery.js deleted file mode 100644 index 4ac31abb..00000000 --- a/src/components/BitwayPage/Gallery/Gallery.js +++ /dev/null @@ -1,72 +0,0 @@ -import React from "react" -import "./Gallery.scss" -import { getImage } from "gatsby-plugin-image" -import { BgImage } from "gbimage-bridge" - -const layouts = { - dos: { - gridTemplateAreas: '"gal0 gal0 gal1" "gal0 gal0 gal1"', - gridTemplateColumns: "2fr 25% 3fr", - }, - cuatro: { - gridTemplateAreas: '"gal0 gal1 gal1" "gal0 gal2 gal3" "gal0 gal2 gal3"', - gridTemplateColumns: "2fr 25% 3fr", - }, - cuatroinvertido: { - gridTemplateAreas: '"gal0 gal0 gal3" "gal1 gal2 gal3" "gal1 gal2 gal3"', - gridTemplateColumns: "3fr 25% 2fr", - }, -} - -const photos = { - dos: 2, - cuatro: 4, - cuatroinvertido: 4, -} - -const Gallery = ({ content, ...extra }) => { - return ( -
- {content.map(elem => ( -
- {fillGrid(elem.galleryImage, photos[elem.type]).map( - (image, index) => { - const prosImage = getImage(image?.image?.localFile) - return ( - - {image.text && ( -
- {image.text} -
- )} -
- ) - } - )} -
- ))} -
- ) -} - -const fillGrid = (images, total) => { - let newImagesArray = [] - while (newImagesArray.length < total) { - newImagesArray = [...newImagesArray, ...images] - } - return newImagesArray.slice(0, total) -} - -export default Gallery diff --git a/src/components/BitwayPage/Gallery/Gallery.scss b/src/components/BitwayPage/Gallery/Gallery.scss deleted file mode 100644 index d30356bb..00000000 --- a/src/components/BitwayPage/Gallery/Gallery.scss +++ /dev/null @@ -1,70 +0,0 @@ -.bitway-gallery-0 { - grid-area: gal0; -} -.bitway-gallery-1 { - grid-area: gal1; -} -.bitway-gallery-2 { - grid-area: gal2; -} -.bitway-gallery-3 { - grid-area: gal3; -} -.bitway-gallery-4 { - grid-area: gal4; -} -.bitway-gallery-5 { - grid-area: gal5; -} - -.bitway-gallery { - display: grid; - grid-template-rows: 400px; - gap: 10px; - overflow: hidden; -} - -.bitway-gallery-container { - display: grid; - grid-template-columns: 1fr; - gap: 20px; -} - -.bitway-gallery-item { - position: relative; - min-height: 400px; -} - -.bitway-gallery-item-inner { - width: 100%; - height: 100%; - display: flex; - justify-content: center; - align-items: center; - background: #1ECAD380; - color: white; - font-family: Roboto; - font-size: 35px; - font-style: normal; - font-weight: 700; - line-height: 51px; - letter-spacing: 0em; - text-align: center; -} - - -@media (max-width: 992px) { - .bitway-gallery { - grid-template-rows: 250px; - } - - .bitway-gallery-item-inner { - font-size: 20px; - } - - - .bitway-gallery-item { - min-height: 250px; - } - -} diff --git a/src/components/BitwayPage/Paragraph/Paragraph.js b/src/components/BitwayPage/Paragraph/Paragraph.js deleted file mode 100644 index c7bbe237..00000000 --- a/src/components/BitwayPage/Paragraph/Paragraph.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from "react" -import "./Paragraph.scss" -import MarkdownView from "react-showdown" -const Paragraph = ({ text: { body }, ...extra }) => { - return ( -
- -
- ) -} - -export default Paragraph diff --git a/src/components/BitwayPage/Paragraph/Paragraph.scss b/src/components/BitwayPage/Paragraph/Paragraph.scss deleted file mode 100644 index ea659b21..00000000 --- a/src/components/BitwayPage/Paragraph/Paragraph.scss +++ /dev/null @@ -1,112 +0,0 @@ -@import "../../../styles/global.scss"; -.bitway-paragraph { - color: $primary; - margin-bottom: 20px; - & p { - font-family: $primary-font; - font-style: normal; - font-weight: 400; - line-height: 30px; - letter-spacing: 0em; - text-align: justify; - } - & > div > p { - font-family: $primary-font; - - font-style: normal; - font-weight: 400; - line-height: 30px; - letter-spacing: 0em; - text-align: justify; - // padding: 0 80px 20px; - & a { - color: $blue; - } - } - & h1, - h2, - h3, - h4, - h5, - h6 { - text-align: center; - color: $blue; - font-family: $primary-font; - font-size: $large; - font-style: normal; - font-weight: 700; - line-height: 40px; - letter-spacing: 0em; - text-align: center; - margin: 40px 0 45px; - & span { - font-size: $large; - background-color: $blue; - padding: 0 10px; - margin: 0 0 0 5px; - transform: skew(-15deg); - display: inline-block; - & p { - font-size: $large; - font-weight: $bold; - margin: 0; - display: inline-block; - color: $primary-container; - transform: skew(15deg); - } - } - } -} - -@media (max-width: 992px) { - .bitway-paragraph { - & p { - font-family: $primary-font; - font-size: 15px; - font-style: normal; - font-weight: 400; - line-height: 26px; - letter-spacing: 0em; - text-align: justify; - } - & > div > p { - font-family: $primary-font; - font-size: 15px; - font-style: normal; - font-weight: 400; - line-height: 26px; - letter-spacing: 0em; - text-align: justify; - // padding: 0 20px 0px 0px; - & * { - font-size: 15px; - } - & a { - color: $blue; - } - } - } -} - -@media (min-width: $breakpoint-lg) { - .bitway-paragraph { - & h1, - h2, - h3, - h4, - h5, - h6 { - font-size: $extra-large; - & span { - padding: 15px 10px 5px; - & p { - font-size: $extra-large; - } - } - } - - & > div > p { - padding: 0 80px 20px; - } - } -} diff --git a/src/components/ContactPage/Contact.scss b/src/components/ContactPage/Contact.scss deleted file mode 100644 index d7a3acbc..00000000 --- a/src/components/ContactPage/Contact.scss +++ /dev/null @@ -1,85 +0,0 @@ -@import "../../styles/global.scss"; - -.contact { - display: flex; - flex-wrap: wrap; - &__group { - padding-top: 20px; - width: 85%; - margin: 0 auto; - } - &__title { - font-size: $large; - color: $blue; - font-weight: $max-bold; - margin-bottom: 0px; - padding: 70px 20px; - text-align: center; - h2 { - font-size: 30px; - margin-bottom: 0; - } - span{ - background-color: $blue; - display: inline-block; - transform: skew(-15deg); - height: 40px; - p { - color: $primary-container; - text-transform: uppercase; - padding: 5px 15px; - display: inline-block; - transform: skew(15deg); - font-size: 30px; - line-height: 30px; - } - } - } - &__image { - width: 100%; - height: 450px; - margin-top: 55px; - } -} - -@media screen and (min-width: 786px) { - .contact { - max-width: 1400px; - margin: 0 auto; - padding-bottom: 50px; - padding-top: 20px; - flex-direction: row-reverse; - justify-content: space-around; - &__group { - width: 43%; - } - &__title { - h2 { - font-size: 45px; - } - line-height: 1.1; - max-width: 500px; - margin: 0 auto; - span { - height: 50px; - p { - font-size: 45px; - line-height: 40px; - padding: 5px 40px; - } - } - } - &__image { - width: 43%; - height: 765px; - margin-left: 20px; - } - } - .contactForm { - &__input { - height: 75px; - padding: 40px 0; - } - } -} - diff --git a/src/components/ContactPage/ContactContainer.js b/src/components/ContactPage/ContactContainer.js deleted file mode 100644 index 66533a08..00000000 --- a/src/components/ContactPage/ContactContainer.js +++ /dev/null @@ -1,61 +0,0 @@ -import * as React from "react" -import { getImage, GatsbyImage } from "gatsby-plugin-image"; -import MarkdownView from 'react-showdown'; -import HubspotForm from "react-hubspot-form" -import "./Contact.scss" -import { useContactPage } from "../../hooks/index" -import Layout from "../../components/layout" -import { Seo } from "../index" - -const Contact = () => { - - const contactData = useContactPage() - - - const { image, nameImage, title } = contactData?.allStrapiContactPage?.nodes[0] - const { formId, portalId } = contactData?.allStrapiContactPage?.nodes[0]?.contactForm || {} - const { pageTitle, pageDescription, pageKeywords } = contactData?.allStrapiContactPage?.nodes[0]?.pageMetadata || {} - - const contactImage = getImage(image?.localFile) - - return ( - - {contactData?.allStrapiContactPage?.nodes[0]?.pageMetadata && ( - - )} -
- {contactData.allStrapiContactPage.nodes[0] && ( -
- {title && ( -
- -
- )} - {formId && portalId && ( -
- Loading...
} - /> -
- )} -
- )} - {contactImage && ( - - )} - -
- ) -} - -export default Contact diff --git a/src/components/CustomSection/CustomSection.js b/src/components/CustomSection/CustomSection.js deleted file mode 100644 index e914a699..00000000 --- a/src/components/CustomSection/CustomSection.js +++ /dev/null @@ -1,96 +0,0 @@ -import React from "react" -import { - ServiceCards, - EdTechCards, - BannerBgImage, - BannerTop, - BannerLogo, - BannerISO, - BannerClientes, - PartnersSection, -} from "../index" -import "./CustomSection.scss" - -const CustomSection = ({ sections }) => { - - const section = sections.map((section, idx) => { - return ( -
- {(section?.enable && section?.services) !== null && - (section?.enable && section?.services) !== undefined ? ( - - ) : null} - {(section?.enable && section?.edteches) !== null && - (section?.enable && section?.edteches) !== undefined ? ( - - ) : null} - - {(section?.enable && section?.banner) !== null && - (section?.enable && section?.banner) !== undefined && - section?.banner.type === "bgImage" ? ( - - ) : null} - {(section?.enable && section?.banner) !== null && - (section?.enable && section?.banner) !== undefined && - section?.banner.type === "bgColor" ? ( - - ) : null} - {(section?.enable && section?.banner) !== null && - (section?.enable && section?.banner) !== undefined && - section?.banner.type === "homeLogo" ? ( - - ) : null} - {(section?.enable && section?.banner) !== null && - (section?.enable && section?.banner) !== undefined && - section?.banner.type === "iram" ? ( - - ) : null} - {(section?.enable && section?.banner) !== null && - (section?.enable && section?.banner) !== undefined && - section?.banner.type === "clientes" ? ( - - ) : null} - {section?.partners !== null ? ( - - ) : null - } -
- ) - }) - - return
{section}
-} - -export default CustomSection diff --git a/src/components/CustomSection/CustomSection.scss b/src/components/CustomSection/CustomSection.scss deleted file mode 100644 index 8b137891..00000000 --- a/src/components/CustomSection/CustomSection.scss +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/components/EdTechCards/EdTechCards.js b/src/components/EdTechCards/EdTechCards.js deleted file mode 100644 index 40451c08..00000000 --- a/src/components/EdTechCards/EdTechCards.js +++ /dev/null @@ -1,67 +0,0 @@ -import React from "react" -import { getImage, GatsbyImage } from "gatsby-plugin-image" -import { Link } from "gatsby" -import showdown from "showdown" -import "./EdtechCards.scss" - -import { useTheme } from "../../context/themeContext" - -const EdTechCards = ({ title, edteches }) => { - const { theme } = useTheme() - - const titles = title - let converter = new showdown.Converter() - let post = titles - let html = converter.makeHtml(post) - - const ReplaceHtml = () => { - return { __html: html } - } - - const edtechCard = edteches - ?.map((edtech, idx) => ( -
-
-
- {" "} -
-
-

{edtech.homeTitle}

-

{edtech.homeIntro}

-
-
- - - Ver más - -
- )) - .slice(0, 3) - - return ( - <> -
-
-
-
-
- {edtechCard} -
-
-
-
- - ) -} -export default EdTechCards diff --git a/src/components/EdTechCards/EdtechCards.scss b/src/components/EdTechCards/EdtechCards.scss deleted file mode 100644 index b2a99799..00000000 --- a/src/components/EdTechCards/EdtechCards.scss +++ /dev/null @@ -1,170 +0,0 @@ -@import "../../styles/global.scss"; - -.EdtechCards { - background-color: $secondary-container; - width: 100%; - - padding: 33px 30px; - &__mainTitle { - display: flex; - flex-direction: column; - align-items: center; - flex-wrap: wrap; - - h1, - h2, - h3, - h4, - h5, - h6, - p, - span { - font-size: $large; - font-weight: $max-bold; - color: $white; - margin-bottom: 0px; - text-align: center; - } - - span { - /* -webkit-text-stroke: 2px $blue; */ - -webkit-text-fill-color: $yellow; - } - } - - &__card { - display: flex; - align-items: flex-end; - margin-right: 10px; - } - &__image { - align-self: flex-start; - padding-top: 5px; - display: flex; - justify-content: center; - } - &__textContainer { - display: flex; - flex-direction: column; - align-items: flex-start; - justify-content: flex-start; - padding-left: 10px; - } - &__title { - font-size: $medium; - font-weight: $max-bold; - color: $white; - margin-bottom: 5px; - } - &__intro { - font-size: $small; - font-weight: $normal; - color: $white; - - margin-bottom: 5px; - padding-bottom: 20px; - } - &__link { - color: $white; - font-size: $medium; - font-weight: $max-bold; - border-bottom: 4px solid $yellow; - margin-bottom: 0; - text-align: right; - - &:hover { - text-decoration: none; - color: $white; - } - } -} - -@media screen and (min-width: 992px) { - .EdtechCards { - padding: 33px 30px 65px 30px; - &__mainTitle { - display: flex; - flex-direction: column; - align-items: center; - flex-wrap: wrap; - - h1, - h2, - h3, - h4, - h5, - h6, - p, - span { - font-size: $extra-large; - text-align: left; - } - h1, - h2, - h3, - h4, - h5, - h6, - p { - width: 80%; - } - } - &__card { - border-bottom: 4px solid $yellow; - } - - &__link { - font-size: $medium; - padding-left: 0; - padding-right: 0; - text-align: left; - align-self: flex-end; - } - } -} - -@media screen and (min-width: 1400px) { - .EdtechCards { - padding: 65px 147px 65px 114px; - &__mainTitle { - align-items: center; - padding-left: 50px; - h1, - h2, - h3, - h4, - h5, - h6, - p span { - font-size: $extra-large; - text-align: left; - } - h1, - h2, - h3, - h4, - h5, - h6, - p { - width: 70%; - } - } - - &__title { - font-size: $large; - } - &__intro { - font-size: $medium; - padding-bottom: 40px; - } - &__link { - font-size: $large; - align-self: flex-end; - text-align: center; - &:hover { - text-decoration: none; - color: $white; - } - } - } -} diff --git a/src/components/EdTechPage/EdTechContainer.js b/src/components/EdTechPage/EdTechContainer.js deleted file mode 100644 index fcc0031d..00000000 --- a/src/components/EdTechPage/EdTechContainer.js +++ /dev/null @@ -1,47 +0,0 @@ -import * as React from "react" -import { useEdTech } from "../../hooks" -import { BannerTop, BannerActionCall, Seo } from "../index" -import Layout from "../layout" - -import Cards from "../Cards/Cards" -import "./EdtechContainer.scss" - -const EdTech = () => { - const data = useEdTech() - - const edTechs = data?.allStrapiEdteches?.nodes - - const content = edTechs.map(tech => ) - - const bannerTop = data?.allStrapiEdTechPage?.nodes[0].topBanner - const bannerActionCall = data?.allStrapiEdTechPage?.nodes[0].actionCallBanner - - const { - pageTitle, - pageDescription, - pageKeywords, - } = data?.allStrapiEdTechPage?.nodes[0].seo - - return ( - - {data?.allStrapiEdTechPage?.nodes[0].seo && ( - - )} - {bannerTop && ( - - )} - {content.length > 0 && ( -
{content}
- )} - {bannerActionCall && ( - - )} -
- ) -} - -export default EdTech diff --git a/src/components/EdTechPage/EdtechContainer.scss b/src/components/EdTechPage/EdtechContainer.scss deleted file mode 100644 index 31ca9ea7..00000000 --- a/src/components/EdTechPage/EdtechContainer.scss +++ /dev/null @@ -1,8 +0,0 @@ -@import "../../styles/global.scss"; - -.EdTech { - &__container { - background-color: $primary-container; - margin-bottom: 95px; - } -} \ No newline at end of file diff --git a/src/components/JobsPage/JobsPage.js b/src/components/JobsPage/JobsPage.js index 54f2f475..fd3f3059 100644 --- a/src/components/JobsPage/JobsPage.js +++ b/src/components/JobsPage/JobsPage.js @@ -1,7 +1,6 @@ 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' diff --git a/src/components/PartnersSection/PartnersSection.js b/src/components/PartnersSection/PartnersSection.js deleted file mode 100644 index 60cca6b8..00000000 --- a/src/components/PartnersSection/PartnersSection.js +++ /dev/null @@ -1,29 +0,0 @@ -import "./PartnersSection.scss" -import React from "react" -import { getImage, GatsbyImage } from "gatsby-plugin-image" -import { useTheme } from "../../context/themeContext" - -const PartnersSection = ({ title, partners }) => { - const { theme } = useTheme() - - const partnerList = partners.map(partner => { - const partnerImage = getImage(partner?.image?.localFile) - const imagenDM = getImage(partner?.imageDark?.localFile) - return ( -
- -
- ) - }) - return ( -
-

{title}

-
{partnerList}
-
- ) -} - -export default PartnersSection diff --git a/src/components/PartnersSection/PartnersSection.scss b/src/components/PartnersSection/PartnersSection.scss deleted file mode 100644 index 12138b92..00000000 --- a/src/components/PartnersSection/PartnersSection.scss +++ /dev/null @@ -1,50 +0,0 @@ -@import "../../styles/global.scss"; - -.partners { - background-color: $primary-container; - padding: 30px; - &__title { - color: $blue; - font-size: $large; - font-weight: $bold; - border-bottom: 4px solid $yellow; - padding-bottom: 15px; - text-align: center; - width: fit-content; - margin: 0 auto; - } - &__logos { - margin-top: 10px; - margin-bottom: 20px; - display: flex; - flex-direction: column; - align-items: center; - } - &__image { - margin-top: 15px; - max-width: 220px; - } -} - -@media screen and (min-width: $breakpoint-md) { - .partners { - padding: 70px; - &__logos { - margin: 30px 0; - flex-direction: row; - flex-wrap: wrap; - justify-content: center; - } - &__image { - margin: 10px 10px 0 10px; - } - } -} - -@media screen and (min-width: 992px) { - .partners { - &__title { - font-size: $extra-large; - } - } -} \ No newline at end of file diff --git a/src/components/ServiceCards/ServiceCards.js b/src/components/ServiceCards/ServiceCards.js deleted file mode 100644 index abd7def7..00000000 --- a/src/components/ServiceCards/ServiceCards.js +++ /dev/null @@ -1,57 +0,0 @@ -import React from "react" -import { getImage, GatsbyImage } from "gatsby-plugin-image" -import { Link } from "gatsby" -import showdown from "showdown" -import "./ServiceCards.scss" -import { useTheme } from "../../context/themeContext" - -const ServiceCards = ({ title, services }) => { - const { theme } = useTheme() - - const titles = title - let converter = new showdown.Converter() - let post = titles - let html = converter.makeHtml(post) - - const ReplaceHtml = () => { - return { __html: html } - } - - const servicios = services?.map((service, idx) => ( -
-
- {" "} -
-
-

{service.homeTitle}

-

{service.homeIntro}

-
- - - Ver más - -
- )) - .slice(0, 3) - - return ( - <> -
-
-
-
-
- {servicios} -
-
- - ) -} - -export default ServiceCards diff --git a/src/components/ServiceCards/ServiceCards.scss b/src/components/ServiceCards/ServiceCards.scss deleted file mode 100644 index 6c36837e..00000000 --- a/src/components/ServiceCards/ServiceCards.scss +++ /dev/null @@ -1,111 +0,0 @@ -@import "../../styles/global.scss"; - -.ServiceCards { - display: flex; - flex-direction: column; - align-items: center; - justify-content: space-between; - padding-bottom: 55px; - background-color: $primary-container; - &__container { - padding: 1.5rem; - } - - &__mainTitle { - text-align: center; - margin-top: 54px; - display: flex; - flex-wrap: wrap; - align-items: center; - max-width: 600px; - h1, - h2, - h3, - h4, - h5, - h6, - p, - span { - font-size: $large; - font-weight: $extra-bold; - color: $blue; - margin-bottom: 30px; - } - span { - -webkit-text-stroke: 2px $blue; - -webkit-text-fill-color: $primary-container; - } - } - &__card { - background-color: rgba(255, 255, 255, 0.075); - color: $primary; - @extend %border-shadowed; - padding: 30px 30px 16px; - margin: 0 35px 30px; - display: flex; - flex-direction: column; - align-items: center; - justify-content: space-between; - } - &__image { - margin-bottom: 27px; - } - &__textContainer { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - } - &__title { - font-size: $medium; - font-weight: $max-bold; - text-align: center; - max-width: 200px; - margin-bottom: 10px; - } - &__intro { - font-size: $small; - font-weight: $normal; - text-align: center; - } - &__link { - color: $blue; - font-size: $medium; - font-weight: $max-bold; - border-bottom: 4px solid $yellow; - margin-bottom: 0; - &:hover { - text-decoration: none; - color: $blue; - } - } -} - -@media (min-width: $breakpoint-lg) { - .ServiceCards { - &__mainTitle { - h1, - h2, - h3, - h4, - h5, - h6, - p, - span { - font-size: $extra-large; - } - } - - &__intro { - font-size: $medium; - } - - &__link { - font-size: $large; - } - - &__title { - font-size: $large; - } - } -} diff --git a/src/components/ServicesPage/ServiceCard.js b/src/components/ServicesPage/ServiceCard.js deleted file mode 100644 index 2faf121e..00000000 --- a/src/components/ServicesPage/ServiceCard.js +++ /dev/null @@ -1,29 +0,0 @@ -import React from "react" -import { getImage, GatsbyImage } from "gatsby-plugin-image" -import Markdown from "react-markdown" -import { useTheme } from "../../context/themeContext" - -const ServiceCard = ({ service }) => { - const { theme } = useTheme() - - const icon = getImage(service?.icon?.localFile) - const iconDark = getImage(service?.iconDarkMode?.localFile) - - return ( -
-
-
- -
-
-
-
{service.title}
-
- {service.description} -
-
-
- ) -} - -export default ServiceCard diff --git a/src/components/ServicesPage/ServicesSection.js b/src/components/ServicesPage/ServicesSection.js deleted file mode 100644 index 5142552f..00000000 --- a/src/components/ServicesPage/ServicesSection.js +++ /dev/null @@ -1,48 +0,0 @@ -import React from "react" -import { useServices, useServicePage } from "../../hooks" -import Layout from "../layout" -import { BannerTop, BannerActionCall, ServiceCard, Seo } from "../index" - -import "./ServicesSection.scss" - -const ServicesSection = () => { - const servicesData = useServices() - - const servicesPageData = useServicePage() - - const servicesList = servicesData?.allStrapiServices?.nodes - - const servicesToDisplay = servicesList?.map(service => ( - - )) - - const bannerTop = servicesPageData?.strapiServicesPage?.topBanner - const bannerActionCall = servicesPageData?.strapiServicesPage?.actionCallBanner - - const { - pageDescription, - pageKeywords, - pageTitle, - } = servicesData?.allStrapiServicesPage?.nodes[0]?.seo - - return ( - - {servicesData?.allStrapiServicesPage?.nodes[0]?.seo && ( - - )} - {bannerTop && } - {servicesToDisplay.length > 0 && ( -
-
{servicesToDisplay}
-
- )} - {bannerActionCall && } -
- ) -} - -export default ServicesSection diff --git a/src/components/ServicesPage/ServicesSection.scss b/src/components/ServicesPage/ServicesSection.scss deleted file mode 100644 index 3ebe085b..00000000 --- a/src/components/ServicesPage/ServicesSection.scss +++ /dev/null @@ -1,50 +0,0 @@ -@import "../../styles/global.scss"; - -.servicesSection { - background-color: $primary-container; - padding-top: 70px; -} - -.serviceCard { - &__description { - p { - color: $primary; - font-size: $small; - text-align: justify; - margin-bottom: 10px; - } - } - &__icon { - margin: 30px auto; - width: 100px; - } - &__title { - color: $primary; - font-weight: $bold; - font-size: $medium; - margin-bottom: 25px; - } - &__block { - @extend %border-shadowed; - background-color: rgba(255, 255, 255, 0.055); - padding: 40px; - margin-bottom: 45px; - } -} - -@media (min-width: $breakpoint-md) { - .serviceCard { - &__description { - p { - font-size: $medium; - } - } - &__title { - font-size: $large; - } - &__icon { - margin: 30px auto 0; - width: 100px; - } - } -} diff --git a/src/components/SubModulesEdTech/SubModulesEdTech.js b/src/components/SubModulesEdTech/SubModulesEdTech.js deleted file mode 100644 index 468dd6c6..00000000 --- a/src/components/SubModulesEdTech/SubModulesEdTech.js +++ /dev/null @@ -1,43 +0,0 @@ -import React from "react" -import { getImage, GatsbyImage } from "gatsby-plugin-image" -import { useEdTechSubmodules } from "../../hooks/index" -import { SubModuleItems } from "../index" -import "./SubmodulesEdTech.scss" -import { useTheme } from "../../context/themeContext" - -const SubModulesEdTech = ({ items, variant }) => { - const data = useEdTechSubmodules() - const { theme } = useTheme() - const submodules = data?.submodules?.nodes - - const custom = submodules.find(art => art.strapiId === items.id) - const { submodule, submoduleItem, title } = custom - const { description, logo, logoDarkMode, id } = submodule - - const logoLight = getImage(logo?.localFile) - const logoDark = getImage(logoDarkMode?.localFile) - - // const logoSubmodule = logo && logoDarkMode ( - // - // ) - - const classVariant = variant && `${variant}` - - return ( -
-
- -
-
-

{submodule.title}

-

{description}

-
- -
- ) -} - -export default SubModulesEdTech diff --git a/src/components/SubModulesEdTech/SubmodulesEdTech.scss b/src/components/SubModulesEdTech/SubmodulesEdTech.scss deleted file mode 100644 index ecdea6bc..00000000 --- a/src/components/SubModulesEdTech/SubmodulesEdTech.scss +++ /dev/null @@ -1,56 +0,0 @@ -@import "../../styles/global.scss"; - -.Submodules { - border-top: solid 4px #1ecad3; - padding: 30px 0 10px 0; - - &__text { - padding-left: 0; - h4 { - margin-bottom: 0; - } - p { - text-align: justify; - margin-top: 20px; - } - } - &__image { - padding-left: 5px; - padding-right: 5px; - } -} - - -@media screen and (min-width: $breakpoint-md) { - .Submodules { - &__image { - padding-left: 30px; - } - } -} - -@media screen and (min-width: 992px) { - .Submodules { - padding: 65px 0 50px 0; - &:first-child { - margin-top: 65px; - } - &:last-child { - border-bottom: solid 4px #1ecad3; - } - - &__text { - h4 { - font-size: $large; - line-height: 25px; - } - p { - font-size: $medium; - } - } - &__image { - transform: translateX(20%); - - } - } -} diff --git a/src/components/SubmoduleItems/SubModuleItem.scss b/src/components/SubmoduleItems/SubModuleItem.scss deleted file mode 100644 index 1bc5b4bd..00000000 --- a/src/components/SubmoduleItems/SubModuleItem.scss +++ /dev/null @@ -1,54 +0,0 @@ -@import "../../styles/global.scss"; - -.SubmoduleItem { - padding: 30px 0 10px 10px; - - &__text { - padding-left: 0; - h4 { - margin-bottom: 0; - } - p { - text-align: justify; - margin-top: 20px; - } - } - &__image { - padding-left: 5px; - padding-right: 5px; - - img { - width: 50px; - height: 50px; - } - } -} - -@media screen and (min-width: $breakpoint-md) { - .SubmoduleItem { - &__image { - padding-left: 20px; - } - } -} - -@media screen and (min-width: 992px) { - .SubmoduleItem { - &__image { - padding-left: 5px; - padding-right: 5px; - display: flex; - justify-content: center; - - img { - width: 60px; - height: 60px; - } - } - &__text { - h4 { - font-size: $medium; - } - } - } -} diff --git a/src/components/SubmoduleItems/SubmoduleItems.js b/src/components/SubmoduleItems/SubmoduleItems.js deleted file mode 100644 index c70e8b63..00000000 --- a/src/components/SubmoduleItems/SubmoduleItems.js +++ /dev/null @@ -1,30 +0,0 @@ -import React from "react" -import { getImage, GatsbyImage } from "gatsby-plugin-image" -import "./SubModuleItem.scss" -import { useTheme } from "../../context/themeContext" - -const SubModuleItems = ({ items }) => { - const { theme } = useTheme() - - const submoduleItem = items?.map(item => ( -
-
- -
-
-

{item.title}

-

{item.content}

-
-
- )) - - return
{submoduleItem}
-} -export default SubModuleItems diff --git a/src/components/Title/Title.js b/src/components/Title/Title.js deleted file mode 100644 index a5d57804..00000000 --- a/src/components/Title/Title.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react' - -const Title = (text, fragment) => { - return ( -

- {text} - {fragment && ( - - {fragment} - - )} - -

- ) -} - -export default Title diff --git a/src/components/index.js b/src/components/index.js index b8cb378f..158174b6 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -1,41 +1,8 @@ -import ServicesSection from "./ServicesPage/ServicesSection" -import ServiceCard from "./ServicesPage/ServiceCard" -import Cards from "./Cards/Cards" -import SubModuleItems from "./SubmoduleItems/SubmoduleItems" -import SubModulesEdTech from "./SubModulesEdTech/SubModulesEdTech" -import Title from "./Title/Title" import Seo from "./Seo/Seo" -import EdTechCards from "./EdTechCards/EdTechCards" -import ServiceCards from "./ServiceCards/ServiceCards" -import CustomSection from "./CustomSection/CustomSection" -import BannerBgImage from "./Banners/BannerBgImage" -import BannerLogo from "./Banners/BannerLogo" -import BannerISO from "./Banners/BannerISO" -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" import CasesSection from "./CasesSection/CasesSection" export { - ServicesSection, - ServiceCard, - Cards, CasesSection, - SubModuleItems, - SubModulesEdTech, - Title, Seo, - EdTechCards, - ServiceCards, - CustomSection, - BannerBgImage, - BannerLogo, - BannerISO, - BannerClientes, - BannerTop, - BannerActionCall, - PartnersSection, - JobsPage, + } diff --git a/src/components/layout.js b/src/components/layout.js index 7b15bbaf..ca51caa4 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -38,11 +38,6 @@ const Layout = ({ children, options = {}, location }) => { if (el) { el.scrollIntoView({ behavior: "smooth" }) } - // setTimeout(()=> { - // el = hash && document.getElementById(hash) - // console.log(el) - // }, 300) - }, [location?.state?.component]) return ( diff --git a/src/hooks/index.js b/src/hooks/index.js index c738a276..4fc6a2d4 100644 --- a/src/hooks/index.js +++ b/src/hooks/index.js @@ -1,27 +1,13 @@ -import useServices from "./useServices" -import useBanner from "./useBanner" -import useEdTech from "./useEdTech" -import useEdTechSubmodules from "./useEdTechSubmodules" import useGlobalSeo from "./useGlobalSeo" import useHomePage from "./useHomePage" -import useContactPage from "./useContactPage" import useBlog from './useBlog' -import useJobsPage from "./useJobsPage" -import useServicePage from "./useServicePage" import useFooter from './useFooter'; import useNavbar from './useNavbar'; export { - useServices, - useBanner, - useEdTech, - useEdTechSubmodules, useGlobalSeo, useHomePage, - useContactPage, useBlog, - useJobsPage, - useServicePage, useFooter, useNavbar } diff --git a/src/hooks/useBanner.js b/src/hooks/useBanner.js deleted file mode 100644 index 5d015993..00000000 --- a/src/hooks/useBanner.js +++ /dev/null @@ -1,60 +0,0 @@ -import { useStaticQuery, graphql } from "gatsby" - -const useBanner = () => { - const query = useStaticQuery(graphql` - { - allStrapiBanners { - nodes { - title - strapiId - page - type - image { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - imageDarkMode { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - logoDarkMode { - localFile { - childImageSharp { - gatsbyImageData( - quality: 100 - formats: [AUTO, WEBP] - placeholder: BLURRED - ) - } - } - } - logo { - localFile { - childImageSharp { - gatsbyImageData( - quality: 100 - formats: [AUTO, WEBP] - placeholder: BLURRED - ) - } - } - } - link { - name - pathTo - } - summary - } - } - } - `) - return query -} - -export default useBanner diff --git a/src/hooks/useBitwayPage.js b/src/hooks/useBitwayPage.js deleted file mode 100755 index c203a9c3..00000000 --- a/src/hooks/useBitwayPage.js +++ /dev/null @@ -1,64 +0,0 @@ -import { useStaticQuery, graphql } from "gatsby"; - -const useBitwayPage = () => { - const query = useStaticQuery(graphql` - { - allStrapiBitwayPage { - nodes { - SEO { - pageDescription - pageTitle - pageKeywords - } - actionCallBanner { - title - image { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - imageDarkMode { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - link { - name - pathTo - } - } - sections { - body - id - type - galleryImage { - caption - text - id - image { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - imageDark { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - } - } - } - } - } - `); - return query; -}; -export default useBitwayPage; diff --git a/src/hooks/useContactPage.js b/src/hooks/useContactPage.js deleted file mode 100644 index 8a996a93..00000000 --- a/src/hooks/useContactPage.js +++ /dev/null @@ -1,32 +0,0 @@ -import { useStaticQuery, graphql } from "gatsby" - -const useContactPage = () => { - const query = useStaticQuery(graphql` - { - allStrapiContactPage { - nodes { - pageMetadata { - pageDescription - pageKeywords - pageTitle - } - image { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - title - contactForm { - portalId - formId - } - } - } - } - `) - return query -} - -export default useContactPage diff --git a/src/hooks/useEdTech.js b/src/hooks/useEdTech.js deleted file mode 100644 index f8540b25..00000000 --- a/src/hooks/useEdTech.js +++ /dev/null @@ -1,91 +0,0 @@ -import { useStaticQuery, graphql } from "gatsby" - -const useEdTech = () => { - const query = useStaticQuery(graphql` - { - allStrapiEdTechPage { - nodes { - topBanner { - title - summary - bgImageDarkMode { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - bgImage { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - } - actionCallBanner { - title - link { - name - pathTo - } - imageDarkMode { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - image { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - } - } - } - allStrapiEdteches(sort: { fields: id, order: ASC }) { - nodes { - id - title - content - icon { - localFile { - childImageSharp { - gatsbyImageData(height: 100, quality: 100) - } - } - } - iconDarkMode { - localFile { - childImageSharp { - gatsbyImageData(height: 100, quality: 100) - } - } - } - edTechSubmodules { - ed_tech_submodules { - id - title - edTechType - } - } - } - } - allStrapiEdTechPage { - nodes { - seo: SEO { - pageDescription - pageKeywords - pageTitle - } - } - } - } - `) - return query -} - -export default useEdTech diff --git a/src/hooks/useEdTechSubmodules.js b/src/hooks/useEdTechSubmodules.js deleted file mode 100644 index 28d062a2..00000000 --- a/src/hooks/useEdTechSubmodules.js +++ /dev/null @@ -1,56 +0,0 @@ -import { useStaticQuery, graphql } from "gatsby" - -const useEdTechSubmodules = () => { - const query = useStaticQuery(graphql` - { - submodules: allStrapiEdTechSubmodules { - nodes { - id - strapiId - title - edTechType - submodule { - description - title - logo { - localFile { - childImageSharp { - gatsbyImageData(width: 60, quality: 100) - } - } - } - logoDarkMode { - localFile { - childImageSharp { - gatsbyImageData(width: 60, quality: 100) - } - } - } - } - submoduleItem { - title - id - content - icon { - localFile { - childImageSharp { - gatsbyImageData(width: 60, quality: 100) - } - } - } - iconDarkMode { - localFile { - childImageSharp { - gatsbyImageData(width: 60, quality: 100) - } - } - } - } - } - } - } - `) - return query -} - -export default useEdTechSubmodules diff --git a/src/hooks/useJobsPage.js b/src/hooks/useJobsPage.js deleted file mode 100644 index be3bd342..00000000 --- a/src/hooks/useJobsPage.js +++ /dev/null @@ -1,20 +0,0 @@ -import { useStaticQuery, graphql } from "gatsby" - -const useJobsPage = () => { - const query = useStaticQuery(graphql` - { - strapiJobsPage { - title - pageMetadata { - pageDescription - pageKeywords - pageTitle - } - } - } - - `) - return query -} - -export default useJobsPage diff --git a/src/hooks/useServicePage.js b/src/hooks/useServicePage.js deleted file mode 100644 index 7ac3ad33..00000000 --- a/src/hooks/useServicePage.js +++ /dev/null @@ -1,58 +0,0 @@ -import { useStaticQuery, graphql } from "gatsby" - -const useServicePage = () => { - const query = useStaticQuery(graphql` - { - strapiServicesPage { - topBanner { - title - summary - bgImageDarkMode { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - bgImage { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - } - actionCallBanner { - title - link { - name - pathTo - } - imageDarkMode { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - image { - localFile { - childImageSharp { - gatsbyImageData - } - } - } - } - pageMetadata { - pageDescription - pageKeywords - pageTitle - } - - } - } - `) - return query -} - -export default useServicePage diff --git a/src/hooks/useServices.js b/src/hooks/useServices.js deleted file mode 100644 index 8ad460d7..00000000 --- a/src/hooks/useServices.js +++ /dev/null @@ -1,41 +0,0 @@ -import { useStaticQuery, graphql } from "gatsby" - -const useServices = () => { - const query = useStaticQuery(graphql` - { - allStrapiServicesPage { - nodes { - seo: pageMetadata { - pageDescription - pageKeywords - pageTitle - } - } - } - allStrapiServices(filter: { visible: { eq: true } }) { - nodes { - description - title - id - icon { - localFile { - childImageSharp { - gatsbyImageData(width: 150, quality: 100) - } - } - } - iconDarkMode { - localFile { - childImageSharp { - gatsbyImageData(width: 150, quality: 100) - } - } - } - } - } - } - `) - return query -} - -export default useServices diff --git a/src/pages/bitway.js b/src/pages/bitway.js deleted file mode 100644 index 015407ee..00000000 --- a/src/pages/bitway.js +++ /dev/null @@ -1,6 +0,0 @@ -import React from "react" -import BitwayPage from "../components/BitwayPage/BitwayContainer" - -const Bitway = () => - -export default Bitway diff --git a/src/pages/contacto.js b/src/pages/contacto.js deleted file mode 100644 index 4ff712a5..00000000 --- a/src/pages/contacto.js +++ /dev/null @@ -1,6 +0,0 @@ -import React from "react" -import ContactPage from "../components/ContactPage/ContactContainer" - -const Contact = () => - -export default Contact diff --git a/src/pages/edtech.js b/src/pages/edtech.js deleted file mode 100644 index 76be041a..00000000 --- a/src/pages/edtech.js +++ /dev/null @@ -1,6 +0,0 @@ -import React from "react" -import EdTechPage from "../components/EdTechPage/EdTechContainer" - -const EdTech = () => - -export default EdTech diff --git a/src/pages/jobs.js b/src/pages/jobs.js deleted file mode 100644 index 54baac6b..00000000 --- a/src/pages/jobs.js +++ /dev/null @@ -1,6 +0,0 @@ -import React from "react" -import {JobsPage} from "../components" - -const Jobs = () => - -export default Jobs \ No newline at end of file diff --git a/src/pages/servicios.js b/src/pages/servicios.js deleted file mode 100644 index d0711517..00000000 --- a/src/pages/servicios.js +++ /dev/null @@ -1,6 +0,0 @@ -import React from "react" -import ServicesSection from "../components/ServicesPage/ServicesSection" - -const Services = () => - -export default Services diff --git a/src/schema/blogSchema.js b/src/schema/blogSchema.js new file mode 100644 index 00000000..6c8558f1 --- /dev/null +++ b/src/schema/blogSchema.js @@ -0,0 +1,473 @@ +const blogSchema = ` +type StrapiBlogCategory implements Node { + id: ID! + parent: Node + children: [Node!]! + internal: Internal! + name: 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 + articles: [StrapiBlogCategoryArticles] + strapiId: Int + article: [StrapiBlogCategoryArticle] + } + + type StrapiBlogCategoryArticle { + id: Int + title: String + description: String + summary: String + slug: String + blog_category: Int + 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 + author: [StrapiBlogCategoryArticleAuthor] + image: LocalFile + } + + type StrapiBlogCategoryArticleAuthor { + id: Int + name: String + summary: String + subTitle: String + image: LocalFile + } + + type StrapiBlogCategoryArticleAuthorImage { + id: Int + name: String + width: Int + height: Int + formats: StrapiBlogCategoryArticleAuthorImageFormats + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + localFile: File + } + + type StrapiBlogCategoryArticleAuthorImageFormats { + thumbnail: StrapiBlogCategoryArticleAuthorImageFormatsThumbnail + large: StrapiBlogCategoryArticleAuthorImageFormatsLarge + medium: StrapiBlogCategoryArticleAuthorImageFormatsMedium + small: StrapiBlogCategoryArticleAuthorImageFormatsSmall + } + + type StrapiBlogCategoryArticleAuthorImageFormatsThumbnail { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiBlogCategoryArticleAuthorImageFormatsLarge { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiBlogCategoryArticleAuthorImageFormatsMedium { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiBlogCategoryArticleAuthorImageFormatsSmall { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiBlogCategoryArticleImage { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + formats: StrapiBlogCategoryArticleImageFormats + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + localFile: File + } + + type StrapiBlogCategoryArticleImageFormats { + thumbnail: StrapiBlogCategoryArticleImageFormatsThumbnail + large: StrapiBlogCategoryArticleImageFormatsLarge + medium: StrapiBlogCategoryArticleImageFormatsMedium + small: StrapiBlogCategoryArticleImageFormatsSmall + } + + type StrapiBlogCategoryArticleImageFormatsThumbnail { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiBlogCategoryArticleImageFormatsLarge { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiBlogCategoryArticleImageFormatsMedium { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiBlogCategoryArticleImageFormatsSmall { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiBlogCategoryArticles { + id: Int + title: String + description: String + summary: 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 + image: LocalFile + slug: String + } + + type StrapiArticle implements Node { + id: ID! + parent: Node + children: [Node!]! + internal: Internal! + title: String + description: String + summary: 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 + image: LocalFile + blog_categories: [StrapiArticleBlog_categories] + strapiId: Int + slug: String + blog_category: StrapiArticleBlog_category + author: [StrapiArticleAuthor] + } + + type StrapiArticleBlog_category { + id: Int + name: 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 + } + + type StrapiArticleAuthor { + id: Int + name: String + summary: String + subTitle: String + image: LocalFile + } + + type StrapiArticleAuthorImage { + id: Int + name: String + width: Int + height: Int + formats: StrapiArticleAuthorImageFormats + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + localFile: File + } + + type StrapiArticleAuthorImageFormats { + thumbnail: StrapiArticleAuthorImageFormatsThumbnail + large: StrapiArticleAuthorImageFormatsLarge + medium: StrapiArticleAuthorImageFormatsMedium + small: StrapiArticleAuthorImageFormatsSmall + } + + type StrapiArticleAuthorImageFormatsThumbnail { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiArticleAuthorImageFormatsLarge { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiArticleAuthorImageFormatsMedium { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiArticleAuthorImageFormatsSmall { + name: String + hash: String + ext: String + mime: String + width: Int + height: Int + size: Float + url: String + } + + type StrapiArticleBlog_categories { + id: Int + name: 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 + } + + type StrapiBlogPage implements Node { + id: ID! + parent: Node + children: [Node!]! + internal: Internal! + 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 + pageMetadata: StrapiBlogPagePageMetadata + strapiId: Int + title: String + actionCallBanner: StrapiBlogPageActionCallBanner + } + + type StrapiBlogPageActionCallBanner { + id: Int + title: String + link: StrapiBlogPageActionCallBannerLink + image: LocalFile + imageDarkMode: LocalFile + } + + type StrapiBlogPageActionCallBannerLink { + id: Int + name: String + pathTo: String + } + + type StrapiBlogPagePageMetadata { + id: Int + pageTitle: String + pageDescription: String + pageKeywords: String + } + +` + +module.exports = { + value: blogSchema, +} diff --git a/src/schema/caseSchema.js b/src/schema/caseSchema.js new file mode 100644 index 00000000..d165fdc5 --- /dev/null +++ b/src/schema/caseSchema.js @@ -0,0 +1,267 @@ +const caseSchema = ` + +type StrapiCase implements Node { + id: ID! + parent: Node + children: [Node!]! + internal: Internal! + title: String + description: 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 + button: StrapiCaseButton + quote: StrapiCaseQuote + image: StrapiCaseImage + strapiId: Int + } + + type StrapiCaseButton { + id: Int + content: String + url: String + landing_page: StrapiCaseButtonLanding_page + } + + type StrapiCaseButtonLanding_page { + id: Int + name: String + slug: 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 + } + + type StrapiCaseQuote { + id: Int + title: String + description: String + variant: String + profile: StrapiCaseQuoteProfile + image: StrapiCaseQuoteImage + } + + type StrapiCaseQuoteProfile { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + formats: StrapiCaseQuoteProfileFormats + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + + # Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds". + difference: String + + # Configures the locale Moment.js will use to format the date. + locale: String + ): Date + localFile: File + } + + type StrapiCaseQuoteProfileFormats { + thumbnail: StrapiCaseQuoteProfileFormatsThumbnail + } + + type StrapiCaseQuoteProfileFormatsThumbnail { + ext: String + url: String + hash: String + mime: String + name: String + size: Float + width: Int + height: Int + } + + type StrapiCaseQuoteImage { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + formats: StrapiCaseQuoteImageFormats + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + + # Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds". + difference: String + + # Configures the locale Moment.js will use to format the date. + locale: String + ): Date + localFile: File + } + + type StrapiCaseQuoteImageFormats { + small: StrapiCaseQuoteImageFormatsSmall + thumbnail: StrapiCaseQuoteImageFormatsThumbnail + } + + type StrapiCaseQuoteImageFormatsSmall { + ext: String + url: String + hash: String + mime: String + name: String + size: Float + width: Int + height: Int + } + + type StrapiCaseQuoteImageFormatsThumbnail { + ext: String + url: String + hash: String + mime: String + name: String + size: Float + width: Int + height: Int + } + + type StrapiCaseImage { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + formats: StrapiCaseImageFormats + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + + # Configures the locale Moment.js will use to format the date. + locale: String + ): Date + localFile: File + } + + type StrapiCaseImageFormats { + small: StrapiCaseImageFormatsSmall + thumbnail: StrapiCaseImageFormatsThumbnail + large: StrapiCaseImageFormatsLarge + medium: StrapiCaseImageFormatsMedium + } + + type StrapiCaseImageFormatsSmall { + ext: String + url: String + hash: String + mime: String + name: String + size: Float + width: Int + height: Int + } + + type StrapiCaseImageFormatsThumbnail { + ext: String + url: String + hash: String + mime: String + name: String + size: Float + width: Int + height: Int + } + + type StrapiCaseImageFormatsLarge { + ext: String + url: String + hash: String + mime: String + name: String + size: Float + width: Int + height: Int + } + + type StrapiCaseImageFormatsMedium { + ext: String + url: String + hash: String + mime: String + name: String + size: Float + width: Int + height: Int + } +` + +module.exports = { + value: caseSchema, +} diff --git a/src/schema/generalSchema.js b/src/schema/generalSchema.js new file mode 100644 index 00000000..107bed9b --- /dev/null +++ b/src/schema/generalSchema.js @@ -0,0 +1,34 @@ +const generalSchema = ` +type LocalFile { + localFile: File + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + formats: StrapiBlogCategoryArticleAuthorImageFormats + } +` + +module.exports = { + value: generalSchema, +} diff --git a/src/schema/globalSeoSchema.js b/src/schema/globalSeoSchema.js new file mode 100644 index 00000000..0bafefa7 --- /dev/null +++ b/src/schema/globalSeoSchema.js @@ -0,0 +1,41 @@ +const globalSeoSchema = ` +type StrapiGlobalSeo implements Node { + id: ID! + parent: Node + children: [Node!]! + internal: Internal! + siteURL: String + robots: Boolean + author: 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 + siteMetadata: StrapiGlobalSeoSiteMetadata + strapiId: Int + } + + type StrapiGlobalSeoSiteMetadata { + id: Int + pageTitle: String + pageDescription: String + pageKeywords: String + } +` +module.exports = { + value: globalSeoSchema, + } diff --git a/src/schema/homeSchema.js b/src/schema/homeSchema.js new file mode 100644 index 00000000..639f9557 --- /dev/null +++ b/src/schema/homeSchema.js @@ -0,0 +1,41 @@ +const homeSchema = ` + +type StrapiHome implements Node { + body: JSON + 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 + pageMetadata: StrapiHomePageMetadata + strapiId: Int + id: ID! + parent: Node + children: [Node!]! + internal: Internal! + } + + type StrapiHomePageMetadata { + id: Int + pageTitle: String + pageDescription: String + pageKeywords: String + } + +` +module.exports = { + value: homeSchema, +} diff --git a/src/schema/iconSchema.js b/src/schema/iconSchema.js new file mode 100644 index 00000000..8c8f66d1 --- /dev/null +++ b/src/schema/iconSchema.js @@ -0,0 +1,67 @@ +const iconScheme = ` + +type StrapiIcon implements Node { + id: ID! + parent: Node + children: [Node!]! + internal: Internal! + name: String + code: String + type: 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 + + # Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds". + difference: String + + # Configures the locale Moment.js will use to format the date. + locale: String + ): Date + icon: StrapiIconIcon + strapiId: Int + } + + type StrapiIconIcon { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + localFile: File + } +` +module.exports = { + value: iconScheme, +} diff --git a/src/schema/landingSchema.js b/src/schema/landingSchema.js new file mode 100644 index 00000000..e472e4f3 --- /dev/null +++ b/src/schema/landingSchema.js @@ -0,0 +1,41 @@ +const landingSchema = ` +type StrapiLandingPage implements Node { + body: JSON + name: String + slug: 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 + id: ID! + parent: Node + children: [Node!]! + internal: Internal! + seo: StrapiLandingPageSeo + } + + type StrapiLandingPageSeo { + id: Int + pageTitle: String + pageDescription: String + pageKeywords: String + } +` +module.exports = { + value: landingSchema, +} diff --git a/src/schema/layoutSchema.js b/src/schema/layoutSchema.js new file mode 100644 index 00000000..9e82bfae --- /dev/null +++ b/src/schema/layoutSchema.js @@ -0,0 +1,358 @@ +const layoutSchema = ` +type StrapiLayoutFooter { + id: Int + subscription: StrapiLayoutFooterSubscription + navegation: StrapiLayoutFooterNavegation + socialMedia: StrapiLayoutFooterSocialMedia + location: StrapiLayoutFooterLocation + contact: StrapiLayoutFooterContact + internalLink: StrapiLayoutFooterInternalLink + navbar: StrapiLayoutNavbar + logo: LocalFile + } + + type StrapiLayoutNavbar { + id: Int + navbarItem: [StrapiLayoutNavbarNavbarItem] + logo: StrapiLayoutNavbarLogo + } + + type StrapiLayoutNavbarNavbarItem { + id: Int + label: String + landing: StrapiLayoutNavbarNavbarItemLanding + url: String + visible: Boolean + dropdown: Boolean + } + + type StrapiLayoutNavbarNavbarItemLanding { + id: Int + name: String + slug: 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 + } + + type StrapiLayoutNavbarLogo { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + localFile: File + } + + type StrapiLayoutFooterSubscription { + id: Int + title: String + } + + type StrapiLayoutFooterNavegation { + id: Int + title: String + pageLink: [StrapiLayoutFooterNavegationPageLink] + } + + type StrapiLayoutFooterNavegationPageLink { + id: Int + name: String + pathTo: String + } + + type StrapiLayoutFooterSocialMedia { + id: Int + socialMedia: [StrapiLayoutFooterSocialMediaSocialMedia] + } + + type StrapiLayoutFooterSocialMediaSocialMedia { + id: Int + url: String + name: String + icon: StrapiLayoutFooterSocialMediaSocialMediaIcon + order: Int + } + + type StrapiLayoutFooterSocialMediaSocialMediaIcon { + id: Int + name: String + code: String + type: 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 + icon: StrapiLayoutFooterSocialMediaSocialMediaIconIcon + } + + type StrapiLayoutFooterSocialMediaSocialMediaIconIcon { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + localFile: File + } + + type StrapiLayoutFooterLocation { + id: Int + title: String + iconText: [StrapiLayoutFooterLocationIconText] + } + + type StrapiLayoutFooterLocationIconText { + id: Int + name: String + icon: StrapiLayoutFooterLocationIconTextIcon + } + + type StrapiLayoutFooterLocationIconTextIcon { + id: Int + name: String + code: String + type: 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 + icon: StrapiLayoutFooterLocationIconTextIconIcon + } + + type StrapiLayoutFooterLocationIconTextIconIcon { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at(fromNow: Boolean, difference: String, locale: String): Date + localFile: File + } + + type StrapiLayoutFooterContact { + id: Int + title: String + iconText: [StrapiLayoutFooterContactIconText] + } + + type StrapiLayoutFooterContactIconText { + id: Int + name: String + icon: StrapiLayoutFooterContactIconTextIcon + } + + type StrapiLayoutFooterContactIconTextIcon { + id: Int + name: String + code: String + type: 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 + icon: StrapiLayoutFooterContactIconTextIconIcon + } + + type StrapiLayoutFooterContactIconTextIconIcon { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + localFile: File + } + + type StrapiLayoutFooterInternalLink { + id: Int + name: String + pathTo: String + } + + type StrapiLayoutFooterLogo { + id: Int + name: String + alternativeText: String + caption: String + width: Int + height: Int + hash: String + ext: String + mime: String + size: Float + url: String + provider: String + created_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + updated_at( + formatString: String + fromNow: Boolean + difference: String + locale: String + ): Date + localFile: File + } + + type StrapiLayout implements Node { + id: ID! + parent: Node + children: [Node!]! + internal: Internal! + 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 + + # Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds". + difference: String + locale: String + ): Date + footer: StrapiLayoutFooter + navbar: StrapiLayoutNavbar + strapiId: Int + } +` +module.exports = { + value: layoutSchema, +}