From 011307170ad698d1d7e2a98c0711396f522ac205 Mon Sep 17 00:00:00 2001 From: ekachxaidze98 <65679299+ekachxaidze98@users.noreply.github.com> Date: Mon, 8 Jan 2024 21:42:16 +0400 Subject: [PATCH] CORE-4775: updates (#1058) --- core.routes.yml | 2 +- data/openAccess.yml | 13 ++++++ main/index.jsx | 34 ++++++++++++++- main/styles.module.scss | 71 ++++++++++++++++++++++++++++++++ pages/about/about.module.scss | 4 ++ pages/about/index.jsx | 24 ++++++----- public/images/services/guide.svg | 3 ++ 7 files changed, 139 insertions(+), 12 deletions(-) create mode 100644 data/openAccess.yml create mode 100644 main/styles.module.scss create mode 100644 public/images/services/guide.svg diff --git a/core.routes.yml b/core.routes.yml index b8b08d24..ee68a196 100644 --- a/core.routes.yml +++ b/core.routes.yml @@ -196,4 +196,4 @@ static: / images: /images documents: /documents ref-audit: /ref-audit -advantages-of-being-harvested: /advantages-of-being-harvested +how-core-supports-open-access: /how-core-supports-open-access diff --git a/data/openAccess.yml b/data/openAccess.yml new file mode 100644 index 00000000..2e83463e --- /dev/null +++ b/data/openAccess.yml @@ -0,0 +1,13 @@ +services: + - title: Become a CORE data provider + picture: /images/services/membership.svg + description: Join the data providers community and facilitate access of your scientific research outputs to everyone in the world. + action: + - title: Find out more + url: benefits + - title: CORE Data provider’s guide + picture: /images/services/guide.svg + description: The guide aims to assist institutions and repository managers in configuring their repositories in way that enables CORE to correctly index them. + action: + - title: Find out more + url: documentations diff --git a/main/index.jsx b/main/index.jsx index 4c3fc2e9..6f7eedc0 100644 --- a/main/index.jsx +++ b/main/index.jsx @@ -1,10 +1,13 @@ import React, { useCallback } from 'react' import { useRouter } from 'next/router' import { Header, Cookies as CookiesPopup } from '@oacore/design' +import { Button } from '@oacore/design/lib/elements' import { useAnalytics } from '../hooks' +import styles from './styles.module.scss' +import openAccess from '../data/openAccess.yml' -import { Layout } from 'components' +import { Layout, Markdown } from 'components' import { patchStats } from 'components/utils' import config from 'data/core.yml' @@ -46,7 +49,36 @@ const Main = ({ children }) => { activeRoute={router.route} onNavigate={handleNavigation} > + {router.asPath.includes('how-core-supports-open-access') && ( +
+ )} {children} + {router.asPath.includes('how-core-supports-open-access') && ( +