diff --git a/src/components/Banners/BannerActionCall.js b/src/components/Banners/BannerActionCall.js
index 7035e5b0..625f4e08 100644
--- a/src/components/Banners/BannerActionCall.js
+++ b/src/components/Banners/BannerActionCall.js
@@ -1,11 +1,10 @@
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?.logo?.localFile)
+ const icon = getImage(banner?.image?.localFile)
return (
diff --git a/src/components/Banners/BannerActionCall.scss b/src/components/Banners/BannerActionCall.scss
index 4b800aa5..d6848e68 100644
--- a/src/components/Banners/BannerActionCall.scss
+++ b/src/components/Banners/BannerActionCall.scss
@@ -18,7 +18,7 @@
max-width: 195px;
}
&__logo {
- flex-basis: 80px;
+ flex-basis: 60px;
padding-bottom: 30px;
}
&__title {
@@ -67,7 +67,7 @@
margin-top: 7rem;
}
&__logo {
- flex-basis: 135px;
+ flex-basis: 110px;
padding-bottom: 65px;
// transform: translateY(-10%);
}
diff --git a/src/components/Banners/BannerBgImage.js b/src/components/Banners/BannerBgImage.js
index 4fa9dcea..f224026b 100644
--- a/src/components/Banners/BannerBgImage.js
+++ b/src/components/Banners/BannerBgImage.js
@@ -2,22 +2,18 @@ import React from "react"
import { Link } from "gatsby"
import { getImage } from "gatsby-plugin-image"
import { BgImage } from "gbimage-bridge"
-import { useBanner } from "../../hooks/index"
import showdown from "showdown"
import "./BannerBgImage.scss"
import { useTheme } from "../../context/themeContext"
const BannerBgImage = ({ banner }) => {
- const dataBanner = useBanner()
+
const { theme } = useTheme()
- const bannerSelected = dataBanner?.allStrapiBanners?.nodes.find(
- ban => ban.strapiId === banner.id
- )
- const { image, imageDarkMode, link, summary } = bannerSelected
+ const { bgImage, bgImageDarkMode, link, title } = banner
- const titles = summary
+ const titles = title
let converter = new showdown.Converter()
let post = titles
let html = converter.makeHtml(post)
@@ -26,12 +22,12 @@ const BannerBgImage = ({ banner }) => {
return { __html: html }
}
- const imagen = getImage(image?.localFile)
- const imagenDM = getImage(imageDarkMode?.localFile)
+ const imagen = getImage(bgImage?.localFile)
+ const imagenDM = getImage(bgImageDarkMode?.localFile)
return (
- {bannerSelected.type === "bgImage" ? (
+ {banner.bgImage ? (
{
- const dataBanner = useBanner()
+const BannerISO = ({ banner }) => {
- const bannerSelected = dataBanner?.allStrapiBanners?.nodes.find(
- ban => ban.strapiId === banner.id
- )
- const { logo, summary } = bannerSelected
+ const { title, subtitle, image, imageDarkMode } = banner
- const titles = summary
+ const titles = subtitle
let converter = new showdown.Converter()
let post = titles
let html = converter.makeHtml(post)
@@ -31,7 +26,7 @@ const BannerISO = ({ banner, title }) => {
>
diff --git a/src/components/Banners/BannerTop.scss b/src/components/Banners/BannerTop.scss
index 0664b29d..7c55eeb6 100644
--- a/src/components/Banners/BannerTop.scss
+++ b/src/components/Banners/BannerTop.scss
@@ -25,13 +25,14 @@
&__txt {
color: $white;
- font-size: 15px;
+ font-size: $medium;
padding: 23px 16px;
font-weight: $normal;
- line-height: 18px;
+ line-height: 25px;
letter-spacing: 0em;
text-align: center;
margin: 20px 0 20px;
+ font-weight: bold;
}
}
}
diff --git a/src/components/BitwayPage/BitwayContainer.js b/src/components/BitwayPage/BitwayContainer.js
index bb67396a..5cf99426 100755
--- a/src/components/BitwayPage/BitwayContainer.js
+++ b/src/components/BitwayPage/BitwayContainer.js
@@ -7,7 +7,7 @@ import Gallery from "./Gallery/Gallery"
import Paragraph from "./Paragraph/Paragraph"
import "./BitwayContainer.scss"
import BannerActionCall from "../Banners/BannerActionCall"
-import { useBanner } from "../../hooks"
+
const BitwayPage = () => {
const {
@@ -15,13 +15,7 @@ const BitwayPage = () => {
} = useBitwayPage()
const sections = nodes[0]?.sections
-
- const bannerData = useBanner()
-
- const bannerActionCall = bannerData?.allStrapiBanners?.nodes.find(
- banner => banner.page === "bitway" && banner.type === "actionCall"
- )
-
+ const bannerActionCall = nodes[0]?.actionCallBanner
const { pageTitle, pageDescription, pageKeywords } = nodes[0]?.SEO
// vista desktop
diff --git a/src/components/BitwayPage/Gallery/Gallery.scss b/src/components/BitwayPage/Gallery/Gallery.scss
index 7ddfd139..d30356bb 100644
--- a/src/components/BitwayPage/Gallery/Gallery.scss
+++ b/src/components/BitwayPage/Gallery/Gallery.scss
@@ -20,7 +20,7 @@
.bitway-gallery {
display: grid;
grid-template-rows: 400px;
- gap: 20px;
+ gap: 10px;
overflow: hidden;
}
@@ -44,7 +44,7 @@
background: #1ECAD380;
color: white;
font-family: Roboto;
- font-size: 45px;
+ font-size: 35px;
font-style: normal;
font-weight: 700;
line-height: 51px;
@@ -59,7 +59,7 @@
}
.bitway-gallery-item-inner {
- font-size: 25px;
+ font-size: 20px;
}
diff --git a/src/components/BitwayPage/Paragraph/Paragraph.scss b/src/components/BitwayPage/Paragraph/Paragraph.scss
index 81ef9b7d..f495b174 100644
--- a/src/components/BitwayPage/Paragraph/Paragraph.scss
+++ b/src/components/BitwayPage/Paragraph/Paragraph.scss
@@ -9,7 +9,7 @@
font-weight: 400;
line-height: 30px;
letter-spacing: 0em;
- text-align: left;
+ text-align: justify;
}
& > div > p {
font-family: $primary-font;
@@ -18,7 +18,7 @@
font-weight: 400;
line-height: 30px;
letter-spacing: 0em;
- text-align: left;
+ text-align: justify;
// padding: 0 80px 20px;
& * {
font-size: 20px;
@@ -39,10 +39,10 @@
font-size: $large;
font-style: normal;
font-weight: 700;
- line-height: 51px;
+ line-height: 40px;
letter-spacing: 0em;
text-align: center;
- margin: 80px 0 45px;
+ margin: 40px 0 45px;
& span {
font-size: $large;
background-color: $blue;
@@ -71,7 +71,7 @@
font-weight: 400;
line-height: 26px;
letter-spacing: 0em;
- text-align: left;
+ text-align: justify;
}
& > div > p {
font-family: $primary-font;
@@ -80,7 +80,7 @@
font-weight: 400;
line-height: 26px;
letter-spacing: 0em;
- text-align: left;
+ text-align: justify;
// padding: 0 20px 0px 0px;
& * {
font-size: 15px;
diff --git a/src/components/BlogPage/BlogContainer.js b/src/components/BlogPage/BlogContainer.js
index 45715857..b24c4f05 100644
--- a/src/components/BlogPage/BlogContainer.js
+++ b/src/components/BlogPage/BlogContainer.js
@@ -1,27 +1,20 @@
import React from "react"
-import { useBanner, useBlog } from "../../hooks"
-
+import { useBlog } from "../../hooks"
import Layout from "../../components/layout"
import BlogGrid from "./BlogGrid/BlogGrid"
import BlogArticle from "./BlogArticle/BlogArticle"
-
import { Seo, BannerActionCall } from "../index"
import "./BlogContainer.scss"
const Blog = () => {
- const bannerData = useBanner()
+
const blogData = useBlog()
+
const data = blogData?.allStrapiBlogCategory?.nodes
const dataArticles = blogData?.allStrapiArticle?.nodes
-
- const bannerBlog = bannerData?.allStrapiBanners?.nodes.find(
- banner => banner.page === "blog" && banner.type === "bgColor"
- )
-
- const bannerActionCall = bannerData?.allStrapiBanners?.nodes.find(
- banner => banner.page === "blog" && banner.type === "actionCall"
- )
+ const bannerActionCall = blogData?.allStrapiBlogPage?.nodes[0]?.actionCallBanner
+ const title = blogData?.allStrapiBlogPage?.nodes[0]?.title
const filterArticle = data.map(category => dataArticles.filter(article => category.name === article.blog_category.name))
@@ -42,9 +35,9 @@ const Blog = () => {
)}
{data.length > 0 && (
- {bannerBlog && (
+ {title && (
-
+
)}
diff --git a/src/components/BlogPage/BlogContainer.scss b/src/components/BlogPage/BlogContainer.scss
index 031d9ac5..1a9cfef8 100644
--- a/src/components/BlogPage/BlogContainer.scss
+++ b/src/components/BlogPage/BlogContainer.scss
@@ -29,8 +29,10 @@
background-color: $blue;
overflow: hidden;
transform: skew(-20deg);
+ margin-left: 10px;
p {
+ font-size: $medium;
padding: 10px;
margin-bottom: 0;
color: $white;
@@ -55,6 +57,10 @@
span {
margin-top: 0;
margin-left: 15px;
+
+ p{
+ font-size: $large;
+ }
}
}
}
diff --git a/src/components/Cards/Cards.scss b/src/components/Cards/Cards.scss
index 96846776..ca9b54ba 100644
--- a/src/components/Cards/Cards.scss
+++ b/src/components/Cards/Cards.scss
@@ -8,7 +8,6 @@
&__title {
color: $primary;
font-weight: $max-bold;
- font-size: $medium;
line-height: $large;
text-align: center;
padding: 90px 5px 19px;
@@ -16,6 +15,9 @@
flex-direction: column;
align-items: center;
gap: 20px;
+ h3{
+ font-size: $medium;
+ }
&-logo {
margin: 0 0;
}
@@ -42,13 +44,14 @@
font-weight: $normal;
font-size: 15px;
line-height: 20px;
+ text-align: justify;
}
}
&__submodules {
background-color: none;
color: $primary;
position: relative;
- padding: 0 45px;
+ padding: 0 10px;
&__title {
margin: 2em 0 30px 0;
@@ -96,10 +99,12 @@
transform: translate(60%, 60%);
}
&__title {
- font-size: $large;
text-align: start;
flex-direction: row;
align-items: flex-end;
+ h3{
+ font-size: $large;
+ }
&-logo {
width: 115px;
display: flex;
diff --git a/src/components/EdTechPage/EdTechContainer.js b/src/components/EdTechPage/EdTechContainer.js
index 5e8b8b12..fcc0031d 100644
--- a/src/components/EdTechPage/EdTechContainer.js
+++ b/src/components/EdTechPage/EdTechContainer.js
@@ -1,5 +1,5 @@
import * as React from "react"
-import { useEdTech, useBanner } from "../../hooks"
+import { useEdTech } from "../../hooks"
import { BannerTop, BannerActionCall, Seo } from "../index"
import Layout from "../layout"
@@ -9,17 +9,12 @@ import "./EdtechContainer.scss"
const EdTech = () => {
const data = useEdTech()
- const bannerData = useBanner()
const edTechs = data?.allStrapiEdteches?.nodes
const content = edTechs.map(tech =>
)
- const bannerTop = bannerData?.allStrapiBanners?.nodes.find(
- banner => banner.page === "edtech" && banner.type === "top"
- )
- const bannerActionCall = bannerData?.allStrapiBanners?.nodes.find(
- banner => banner.page === "edtech" && banner.type === "actionCall"
- )
+ const bannerTop = data?.allStrapiEdTechPage?.nodes[0].topBanner
+ const bannerActionCall = data?.allStrapiEdTechPage?.nodes[0].actionCallBanner
const {
pageTitle,
diff --git a/src/components/HomePage/HomeContainer/HomeContainer.js b/src/components/HomePage/HomeContainer/HomeContainer.js
index 802dd022..18f7cdaf 100644
--- a/src/components/HomePage/HomeContainer/HomeContainer.js
+++ b/src/components/HomePage/HomeContainer/HomeContainer.js
@@ -1,17 +1,34 @@
import * as React from "react"
import { useHomePage } from "../../../hooks/index"
import Layout from "../../layout"
-import { Seo, CustomSection } from "../../index"
+import {
+ Seo,
+ CustomSection,
+ BannerLogo,
+ BannerBgImage,
+ BannerISO,
+ ServiceCards,
+ EdTechCards,
+ PartnersSection,
+} from "../../index"
import "./HomeContainer.scss"
const Home = () => {
-
const data = useHomePage()
-
- const homeSections = data?.allStrapiHome?.nodes[0]?.sections
- const { pageTitle, pageDescription, pageKeywords } = data?.allStrapiHome?.nodes[0]?.pageMetadata || {}
+ const homeSections = data?.allStrapiHome?.nodes[0]?.sections
+ const { pageTitle, pageDescription, pageKeywords } =
+ data?.allStrapiHome?.nodes[0]?.pageMetadata || {}
+ const {
+ topHomeBanner,
+ infoImgBanner,
+ infoBgBanner,
+ infoBanner,
+ servicesBlock,
+ partnersBlock,
+ edtechBlock,
+ } = data?.allStrapiHome?.nodes[0]
return (
@@ -22,9 +39,29 @@ const Home = () => {
keywords={pageKeywords}
/>
)}
- {homeSections && (
-
+ {topHomeBanner && }
+ {servicesBlock && (
+
+ )}
+ {edtechBlock && (
+
+ )}
+ {infoBgBanner && }
+ {infoImgBanner && }
+ {partnersBlock && (
+
)}
+ {infoBanner && }
+ {homeSections && }
)
}
diff --git a/src/components/JobsPage/JobsPage.js b/src/components/JobsPage/JobsPage.js
index 3b45abb8..54f2f475 100644
--- a/src/components/JobsPage/JobsPage.js
+++ b/src/components/JobsPage/JobsPage.js
@@ -8,7 +8,7 @@ import './JobsPage.scss'
export default function JobsPage() {
const jobsData = useJobsPage()
- const banner = jobsData?.strapiJobsPage?.banner
+ const title = jobsData?.strapiJobsPage?.title
const { pageTitle, pageDescription, pageKeywords } = jobsData?.strapiJobsPage?.pageMetadata || {}
return (
@@ -20,7 +20,7 @@ export default function JobsPage() {
keywords={pageKeywords}
/>
)}
-
+