Skip to content

Commit 7659ed1

Browse files
Merge pull request #299 from bitlogic/dev
Release 25-10-24
2 parents 89768f2 + 54401c3 commit 7659ed1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+863
-1743
lines changed

gatsby-config.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,18 @@ module.exports = {
7171
policy: [{ userAgent: "*", allow: "/" }],
7272
},
7373
},
74-
{
75-
resolve: "gatsby-plugin-google-tagmanager",
76-
options: {
77-
id: process.env.GTM_ID,
78-
includeInDevelopment: false,
79-
enableWebVitalsTracking: true,
80-
},
81-
},
74+
...(process.env.ENV_PROD === 'produccion'
75+
? [
76+
{
77+
resolve: "gatsby-plugin-google-tagmanager",
78+
options: {
79+
id: process.env.GTM_ID,
80+
includeInDevelopment: false,
81+
enableWebVitalsTracking: true,
82+
},
83+
},
84+
]
85+
: []),
8286
{
8387
resolve: `gatsby-source-filesystem`,
8488
options: {

gatsby-node.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
const path = require("path");
2-
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");
1+
const path = require("path")
2+
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin")
33

44
exports.onCreateWebpackConfig = ({ actions }) => {
55
actions.setWebpackConfig({
66
plugins: [
77
new FilterWarningsPlugin({
8-
exclude:
9-
/mini-css-extract-plugin[^]*Conflicting order. Following module has been added:/,
8+
exclude: /mini-css-extract-plugin[^]*Conflicting order. Following module has been added:/,
109
}),
1110
],
12-
});
13-
};
11+
})
12+
}
1413

1514
exports.createSchemaCustomization = ({ actions }) => {
1615
const blogSchema = require("./src/schema/blogSchema")
@@ -25,7 +24,6 @@ exports.createSchemaCustomization = ({ actions }) => {
2524

2625
const { createTypes } = actions
2726
const typeDefs =
28-
blogSchema.value +
2927
blogSchema.value +
3028
caseSchema.value +
3129
globalSeoSchema.value +
@@ -64,7 +62,7 @@ exports.createPages = async ({ graphql, actions }) => {
6462
component: BlogDetail,
6563
context: {
6664
slug: node.slug,
67-
lastmod: node.updated_at
65+
lastmod: node.updated_at,
6866
},
6967
})
7068
})
@@ -88,14 +86,14 @@ exports.createPages = async ({ graphql, actions }) => {
8886
reporter.panicOnBuild("Error creando paginas de landing")
8987
}
9088

91-
const landings = LandingQueryData.allStrapiLandingPage.nodes;
89+
const landings = LandingQueryData.allStrapiLandingPage.nodes
9290

9391
function getUrl(node) {
9492
if (!node) return ""
9593

9694
if (node.parent_page) {
97-
const parentPage = landings.find((landing) =>
98-
landing.slug === node.parent_page.slug
95+
const parentPage = landings.find(
96+
landing => landing.slug === node.parent_page.slug
9997
)
10098
const parentUrl = getUrl(parentPage)
10199
return `${parentUrl}/${node.slug}`
@@ -113,7 +111,7 @@ exports.createPages = async ({ graphql, actions }) => {
113111
component: LandingPage,
114112
context: {
115113
slug: node.slug,
116-
lastmod: node.updated_at
114+
lastmod: node.updated_at,
117115
},
118116
})
119117
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"gatsby-plugin-image": "^2.6.0",
2020
"gatsby-plugin-manifest": "^4.6.0",
2121
"gatsby-plugin-offline": "^5.6.0",
22-
"gatsby-plugin-robots-txt": "^1.8.0",
22+
"gatsby-plugin-robots-txt": "1.7.1",
2323
"gatsby-plugin-sass": "^5.6.0",
2424
"gatsby-plugin-sharp": "^4.6.0",
2525
"gatsby-plugin-sitemap": "^5.22.0",

src/components/BannerList/Banner.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
margin: 0;
1111
}
1212

13+
h3 {
14+
font-size: 28px;
15+
margin: 0;
16+
}
17+
1318
p {
1419
margin: 0;
1520
}

src/components/BannerList/BannerList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ export default function BannerList({ data }) {
2626
<div className="card_item col-9 pe-2">
2727
{item.landing_page ? (
2828
<Link to={getUrl(item.landing_page.slug)}>
29-
<h4>{item.title}</h4>
29+
<h3>{item.title}</h3>
3030
<p>{item.description}</p>
3131
</Link>
3232
) : (
3333
<>
34-
<h4>{item.title}</h4>
34+
<h3>{item.title}</h3>
3535
<p>{item.description}</p>
3636
</>
3737
)}

src/components/BlogPage/BlogGrid/BlogGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import PropTypes from "prop-types"
66
const BlogGrid = ({ title, children }) => {
77
return (
88
<div className="grid__container">
9-
<h4>{title}</h4>
9+
<h2>{title}</h2>
1010
<Pagination initialState={true} postPerPage="9" posts={children} />
1111
</div>
1212
)

src/components/BlogPage/BlogGrid/BlogGrid.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@
77
padding: 40px 0;
88
border-bottom: 4px solid #dedede;
99

10-
h4 {
10+
h2 {
1111
padding-left: 0.5rem;
1212
color: $primary;
13+
font-size: 28px;
1314
}
1415
}
1516
}
1617

1718
@media (min-width: $breakpoint-lg) {
1819
.grid {
1920
&__container {
20-
h4 {
21+
h2 {
2122
padding-left: 1rem;
2223
}
2324
}

src/components/DualSection/DualSection.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
.one_sec {
7272
color: $primary;
7373

74-
h4 {
74+
h2 {
75+
font-size: 28px;
7576
margin-bottom: 16px;
7677
}
7778

src/components/DualSection/OneSection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const OneSection = ({ data: { dualSectionPart } }) => {
2929
>
3030
<div className="container one_sec">
3131
<div className="one_sec-title">
32-
<h4>{title}</h4>
32+
<h2>{title}</h2>
3333
<div className="one_sec-title-body">
3434
<MarkdownView
3535
markdown={description}

src/components/Footer/ContactData/contactData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function ContactData({ contactData, internalLink, navButton }) {
1818

1919
return (
2020
<div className="Footer__contactData">
21-
<h6>{contactData?.title}</h6>
21+
<h2>{contactData?.title}</h2>
2222
{contactData?.iconText?.length > 0 && (
2323
<div className="Footer__contactData__contact">{contact}</div>
2424
)}

0 commit comments

Comments
 (0)