Skip to content

Commit

Permalink
CORE-4739: redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 committed Dec 14, 2023
1 parent f6b16c6 commit b2ca008
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
3 changes: 3 additions & 0 deletions data/benefits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ HowTo:
titlePicture: /images/benefits/join-circle.svg
description: Become a Supporting or Sustaining [member](/membership) to receive even more benefits.
picture: /images/benefits/join-arrow.svg
action:
title: Data provider’s guide
url: /documentations

join:
title: Join CORE as a data provider and contribute to the creation of a mutually beneficial ecosystem.
Expand Down
4 changes: 2 additions & 2 deletions data/membership.yml
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,6 @@ navItems:

documentationSwitcher:
- title: CORE Data Provider’s Guide
description: In this documentation you can find all detailed information about becoming CORE data provider.
description: These guidelines aim to assist institutions and repository managers in configuring their repositories in way that enables CORE to correctly index them.
- title: Membership Documentation
description: In this documentation you can find an instruction about how to interact with all features of CORE Memberships.
description: This documentation explains how to use all features and benefits of CORE Membership.
5 changes: 5 additions & 0 deletions design-v2/benefits/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ const BenefitsPageTemplate = () => {
</div>
))}
</div>
<div className={styles.docsBtn}>
<Button href={benefitsData?.HowTo.action?.url} variant="outlined">
{benefitsData.HowTo.action.title}
</Button>
</div>
</Section>
<Section id="join-core" caption="join-core" className={styles.joinCore}>
<div className={styles.formBlock}>
Expand Down
6 changes: 6 additions & 0 deletions design-v2/benefits/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ $spacer: 1.5rem;
}
}

.docs-btn {
display: flex;
justify-content: flex-end;
padding: 16px 16px 0 0;
}

.join-core {
display: flex;
justify-content: space-between;
Expand Down
5 changes: 1 addition & 4 deletions templates/documentations/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
} from '@oacore/design/lib/modules'
import { useRouter } from 'next/router'

import Markdown from '../../components/markdown'
import { Layout } from '../../design-v2/components'
import textData from '../../data/membership.yml'
import styles from './styles.module.scss'
Expand All @@ -15,7 +14,7 @@ function normalizeHref(str) {
return test.replace('_', '-')
}

const DocumentationPageTemplate = ({ headerAbout, docs }) => {
const DocumentationPageTemplate = ({ docs }) => {
const [highlight, setHighlight] = useState()
const [navActiveIndex, setNavActiveIndex] = useState(null)
const route = useRouter()
Expand Down Expand Up @@ -52,8 +51,6 @@ const DocumentationPageTemplate = ({ headerAbout, docs }) => {
return (
<Layout className={styles.docsLayout}>
<DocumentationMembership
headerTitle={headerAbout.header.title}
headerCaption={<Markdown>{headerAbout.header.caption}</Markdown>}
docs={docs?.items}
highlight={highlight}
setHighlight={setHighlight}
Expand Down

0 comments on commit b2ca008

Please sign in to comment.