Skip to content

Commit

Permalink
CORE-4730: linking issue (#1030) (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 authored Nov 30, 2023
1 parent b608357 commit 25a6cd1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 35 deletions.
12 changes: 6 additions & 6 deletions data/home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ partnerProjects:
- logo: /images/partners/ukcorr.png
users:
- title: |
**Companies** using CORE
[Companies](/about/endorsements#enterprise-companies) using CORE
testimonial:
id: gareth-malcolm
content: |
Expand All @@ -156,9 +156,9 @@ users:
alt: "naver"
action:
caption: Show all
url: '/about/endorsements'
url: '/about/endorsements#enterprise-companies'
- title: |
**Academic** institution using CORE
[Academic](/about/endorsements#academic-institutions) institution using CORE
testimonial:
id: kathleen-shearer
content: |
Expand All @@ -183,9 +183,9 @@ users:
full: true
action:
caption: Show all
url: '/about/endorsements'
url: '/about/endorsements#academic-institutions'
- title: |
**Partner** projects
[Partner](/about/endorsements#partner-projects) projects
testimonial:
id: ben-johnson
content: |
Expand Down Expand Up @@ -214,7 +214,7 @@ users:
background: true
action:
caption: Show all
url: '/about/endorsements'
url: '/about/endorsements#partner-projects'
covid-19-notice: |
Stay up to date with the latest Open Access research
Expand Down
27 changes: 0 additions & 27 deletions pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
JoinItem,
TestimonialList,
TestimonialItem,
TestimonialCard,
ServicesList,
ServiceItem,
Layout,
Expand Down Expand Up @@ -88,19 +87,6 @@ const Hero = ({
</div>
)

const PartnerProjectsList = () => (
<ul className={styles.sectionPartnersList}>
{page.partnerProjects.children.map(({ logo }, index) => (
<TestimonialCard
// eslint-disable-next-line react/no-array-index-key
key={index}
imgUrl={logo}
className={styles.sectionPartnersListItem}
/>
))}
</ul>
)

const IndexPage = () => {
const [searchValue, setSearchValue] = useState('')

Expand Down Expand Up @@ -190,19 +176,6 @@ const IndexPage = () => {
</Button>
</div>
</Section>
<Section className={styles.sectionPartners}>
<h3 className={styles.title}>{page.partnerProjects.title}</h3>
<PartnerProjectsList />
<div className={styles.actionButton}>
<Button
variant="outlined"
tag="a"
href={page.partnerProjects.action}
>
{page.partnerProjects.actionLabel}
</Button>
</div>
</Section>
</Layout>
<Section className={styles.partners}>
{page.users.map((item) => (
Expand Down
8 changes: 6 additions & 2 deletions pages/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
display: flex;
justify-content: space-between;
gap: 35px;
margin-bottom: 24px;
margin-bottom: 32px;
.testimonial-item {
width: 75%;
}
Expand All @@ -229,8 +229,12 @@
font-weight: 500;
line-height: 130%;
cursor: unset;
&:hover {
a {
text-decoration: none;
color: #b75400;
&:hover {
text-decoration: none;
}
}
}
}
Expand Down

0 comments on commit 25a6cd1

Please sign in to comment.