Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/components/Banner/Banner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react"
import MarkdownView from "react-showdown"
//import ReactMarkdown from "react-markdown"
import Lottie from "react-lottie"
import { useTheme } from "../../context/themeContext"
import "./Banner.scss"
Expand Down Expand Up @@ -33,20 +32,21 @@ const Banner = ({ data }) => {
<div className="container banner__wrapper">
<div className="title container-md">
<div>
{/* {variant === "hero" ? <h1>{title}</h1> : <h2>{title}</h2>} */}
{showTitle()}
{
<MarkdownView
markdown={summary}
dangerouslySetInnerHTML={{ __html: summary }}
/>
}
<CustomLink
content={button?.content}
url={button?.url}
landing={button?.english_landing_page}
className={"button"}
/>
{button && (
<CustomLink
content={button?.content}
url={button?.url}
landing={button?.english_landing_page}
className={"button"}
/>
)}
</div>
</div>

Expand Down
61 changes: 0 additions & 61 deletions src/components/BannerHead/BannerHead.js

This file was deleted.

50 changes: 0 additions & 50 deletions src/components/BannerHead/BannerHead.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/BannerList/BannerList.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function BannerList({ data }) {
<div className="card_item">
<CustomImage
image={item?.icon}
alt={item?.icon?.alternativeText || item?.icon?.name}
alt={item?.icon?.alternativeText || item.title}
className={"d-block"}
width={70}
height={70}
Expand Down
6 changes: 2 additions & 4 deletions src/components/CustomImage/CustomImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ import PropTypes from "prop-types"
const CustomImage = ({ image, className, alt, width, height }) => {
if (!image) return null


const { url, localFile } = image
const localImage = getImage(localFile?.childImageSharp?.gatsbyImageData)

if (localFile) {
const localImage = getImage(localFile?.childImageSharp?.gatsbyImageData)

if (localImage) {
return (
<GatsbyImage
loading="lazy"
Expand Down
2 changes: 1 addition & 1 deletion src/components/DualSection/OneSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const OneSection = ({ data: { dualSectionPart } }) => {
)
}

OneSection.protoTypes = {
OneSection.propTypes = {
data: PropTypes.shape({
dualSectionPart: PropTypes.arrayOf(
PropTypes.shape({
Expand Down
23 changes: 2 additions & 21 deletions src/components/LogosSection/logosSection.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,24 @@
import "./logosSection.scss"
import React from "react"
import { useTheme } from "../../context/themeContext"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import Carousel from "react-multi-carousel"
import "react-multi-carousel/lib/styles.css"
import PropTypes from "prop-types"

const handleKeyDown = (event, onClick) => {
if (event.key === "Enter" || event.key === " ") {
onClick()
}
}

const CustomLeftArrow = ({ onClick }) => {
return (
<FontAwesomeIcon
role="button"
<button
aria-label="Left arrow to see the previous logo"
tabIndex={0}
aria-hidden={false}
focusable
onKeyDown={event => handleKeyDown(event, onClick)}
className="react-multiple-carousel__arrow react-multiple-carousel__arrow--left custom-arrow left"
icon="fa-solid fa-chevron-left"
onClick={() => onClick()}
/>
)
}
const CustomRightArrow = ({ onClick }) => {
return (
<FontAwesomeIcon
role="button"
<button
aria-label="Right arrow to see the previous logo"
tabIndex={0}
aria-hidden={false}
focusable
onKeyDown={event => handleKeyDown(event, onClick)}
className="react-multiple-carousel__arrow react-multiple-carousel__arrow--right custom-arrow right"
icon="fa-solid fa-chevron-right"
onClick={() => onClick()}
/>
)
Expand Down
Loading