Skip to content

Commit b800ccb

Browse files
Merge pull request #139 from bitlogic/develop
Merge Develop
2 parents 3c4e49d + 59af6e5 commit b800ccb

File tree

13 files changed

+3517
-3112
lines changed

13 files changed

+3517
-3112
lines changed

src/components/Banners/BannerTop.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
.BannerTop {
4141
&__bgImage {
4242
min-height: 55vh;
43+
44+
&::after {
45+
background-position: top !important;
46+
}
4347
}
4448

4549
&__titleContainer {

src/components/FaIcon/FaIcon.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,26 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
33
import { faEnvelope, faLocationDot } from "@fortawesome/free-solid-svg-icons"
44
import {
55
faLinkedin,
6-
faTwitter,
7-
faXTwitter,
86
faInstagram,
97
faYoutube,
10-
faSpotify
11-
8+
faSpotify,
9+
faXTwitter,
1210
} from "@fortawesome/free-brands-svg-icons"
1311
import PropTypes from "prop-types"
1412

1513
const iconMap = {
1614
"fa-envelope": faEnvelope,
1715
"fa-location-dot": faLocationDot,
1816
"fa-linkedin": faLinkedin,
19-
"fa-twitter": faTwitter,
2017
"fa-x-twitter": faXTwitter,
2118
"fa-instagram": faInstagram,
2219
"fa-youtube": faYoutube,
2320
"fa-spotify": faSpotify,
2421
}
2522

2623
const FaIcon = ({ type, code }) => {
27-
const icon = iconMap[code]
24+
const normalizedCode = code?.toLowerCase()
25+
const icon = iconMap[normalizedCode]
2826

2927
if (!icon) {
3028
console.warn(`Icono no encontrado: type=${type}, code=${code}`)
@@ -39,6 +37,4 @@ FaIcon.propTypes = {
3937
code: PropTypes.string.isRequired,
4038
}
4139

42-
4340
export default FaIcon
44-

src/components/Footer/SocialLinks/socialLinks.js

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@ import PropTypes from "prop-types"
88
export default function SocialLinks({ image, socialMedia }) {
99
const logo = getImage(image?.localFile?.childImageSharp?.gatsbyImageData)
1010

11-
const socialMediaItems = socialMedia?.map(item => {
12-
return (
13-
<a
14-
key={item.id}
15-
href={item.url}
16-
target="_blank"
17-
className={`btn-social m-2 btn-social-icon btn-${item.icon?.name}`}
18-
rel="noreferrer"
19-
aria-label={`Link externo a ${item?.name}`}
20-
>
11+
const socialMediaItems = socialMedia?.map(item => (
12+
<a
13+
key={item.id}
14+
href={item.url}
15+
target="_blank"
16+
className={`btn-social m-2 btn-social-icon btn-${item.icon?.name}`}
17+
rel="noreferrer"
18+
aria-label={`External link to ${item?.name}`}
19+
>
20+
<>
2121
<FaIcon type={item.icon?.type} code={item.icon?.code} />
22-
</a>
23-
)
24-
})
22+
<span className="visually-hidden">Link to {item.name}</span>
23+
</>
24+
</a>
25+
))
2526

2627
return (
2728
<div className="Footer__socialMedia d-flex flex-column">
@@ -33,10 +34,10 @@ export default function SocialLinks({ image, socialMedia }) {
3334

3435
{logo && (
3536
<div className="Footer__socialMedia__Logo text-center">
36-
<Link to="/">
37+
<Link to="/en">
3738
<GatsbyImage
3839
image={logo}
39-
alt={image?.alternativeText || "Logo Bitlogic"}
40+
alt={image?.alternativeText || "Bitlogic Logo"}
4041
/>
4142
</Link>
4243
</div>
@@ -60,6 +61,9 @@ SocialLinks.propTypes = {
6061
url: PropTypes.string,
6162
name: PropTypes.string,
6263
icon: PropTypes.shape({
64+
name: PropTypes.string,
65+
type: PropTypes.string,
66+
code: PropTypes.string,
6367
url: PropTypes.string,
6468
alternativeText: PropTypes.string,
6569
localFile: PropTypes.shape({

src/components/Footer/SocialLinks/socialLinks.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
color: $white;
1111
width: 21px;
1212
height: 21px;
13+
display: inline-flex;
14+
align-items: center;
15+
justify-content: center;
1316
}
1417
}
1518

src/components/Form/PipedriveForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const PipedriveForm = ({ data }) => {
4040
<div className="container d-flex px-lg-2 flex-wrap">
4141
<div className="col-12 col-md-6 pe-md-5">
4242
{title && (
43-
<h1 className="title text-start">{title}</h1>
43+
<h2 className="title text-start">{title}</h2>
4444
)}
4545
{content && (
4646
<MarkdownView

src/components/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Layaout from "./layout"
1616
import PipedriveForm from "./Form/PipedriveForm"
1717
import CustomSection from "./CustomSection/CustomSection"
1818
import Navigation from "./Navigation/Navigation"
19+
import CustomImage from "./CustomImage/CustomImage"
1920

2021
export {
2122
Seo,
@@ -36,4 +37,5 @@ export {
3637
PipedriveForm,
3738
CustomSection,
3839
Navigation,
40+
CustomImage
3941
}

0 commit comments

Comments
 (0)