From 5bb57cbd40b47a4f4c39f39382d834cd31ae2ba4 Mon Sep 17 00:00:00 2001 From: ekachxaidze98 <65679299+ekachxaidze98@users.noreply.github.com> Date: Tue, 28 Nov 2023 12:53:13 +0400 Subject: [PATCH 1/5] CORE-4730 new section (#1026) --- components/testimonial/testimonial.jsx | 10 +- .../testimonial/testimonial.module.scss | 4 + data/home.yml | 85 +++++++++ pages/index.jsx | 43 ++++- pages/index.module.scss | 58 ++++++ public/images/logos/chica.svg | 7 + public/images/logos/coar.svg | 43 +++++ public/images/logos/coarUser.png | Bin 0 -> 4679 bytes public/images/logos/imperial.svg | 16 ++ public/images/logos/losAlamos.svg | 180 ++++++++++++++++++ public/images/logos/researchInovation.svg | 60 ++++++ public/images/logos/sparc.png | Bin 0 -> 4512 bytes public/images/logos/stAndrews.svg | 91 +++++++++ public/images/people/kathleen.svg | 52 +++++ 14 files changed, 647 insertions(+), 2 deletions(-) create mode 100644 public/images/logos/chica.svg create mode 100644 public/images/logos/coar.svg create mode 100644 public/images/logos/coarUser.png create mode 100644 public/images/logos/imperial.svg create mode 100644 public/images/logos/losAlamos.svg create mode 100644 public/images/logos/researchInovation.svg create mode 100644 public/images/logos/sparc.png create mode 100644 public/images/logos/stAndrews.svg create mode 100644 public/images/people/kathleen.svg diff --git a/components/testimonial/testimonial.jsx b/components/testimonial/testimonial.jsx index 6144004dd..a7c18714f 100644 --- a/components/testimonial/testimonial.jsx +++ b/components/testimonial/testimonial.jsx @@ -1,4 +1,5 @@ import React from 'react' +import { classNames } from '@oacore/design/lib/utils' import { Content } from '../content' import Markdown from '../markdown' @@ -10,6 +11,7 @@ const Testimonial = ({ author, organization = {}, className = '', + roleHighlite, ...restProps }) => (
{author.name} {author.role && ( -

{author.role}

+

+ {author.role} +

)} diff --git a/components/testimonial/testimonial.module.scss b/components/testimonial/testimonial.module.scss index e71da803b..dcb31f332 100644 --- a/components/testimonial/testimonial.module.scss +++ b/components/testimonial/testimonial.module.scss @@ -30,6 +30,10 @@ $testimonial-logo-height: 3rem !default; color: $gray-700; } +.role-highlite { + color: $orange-dark; +} + .testimonial-author-avatar { position: absolute; left: 0; diff --git a/data/home.yml b/data/home.yml index a4e473498..45aa23d81 100644 --- a/data/home.yml +++ b/data/home.yml @@ -130,6 +130,91 @@ partnerProjects: # author: Gareth Malcolm, Content Partner Manager at Turnitin - logo: /images/partners/ukri.png - logo: /images/partners/ukcorr.png +users: + - title: | + **Companies** using CORE + testimonial: + id: gareth-malcolm + content: | + *Our partnership with CORE will provide Turnitin with vast amounts of metadata and full + texts that we can utilise in our plagiarism detection software.* + author: + name: Gareth Malcolm + role: Content Partner Manager at Turnitin + picture: /images/people/Gareth_Malcolm.jpeg + userList: + items: + - img: /images/logos/nvidia.svg + alt: "nvidia" + - img: /images/logos/anthropic.svg + alt: "anthropic" + - img: /images/logos/grammarly.svg + alt: "grammarly" + - img: /images/logos/lean.svg + alt: "lean" + - img: /images/logos/naver.svg + alt: "naver" + action: + caption: Show all + url: '/about/endorsements' + - title: | + **Academic** institution using CORE + testimonial: + id: kathleen-shearer + content: | + *CORE has significantly assisted the academic institutions participating in our global network with their key mission, which is their scientific content exposure. In addition, CORE has helped our content administrators to showcase the real benefits of repositories via its added value services.* + author: + name: Kathleen Shearer + role: Executive Director of the Confederation of Open Access Repositories (COAR) + picture: /images/people/kathleen.svg + userList: + items: + - img: /images/membership/cambridge.svg + alt: "cambridge" + - img: /images/membership/oxford.svg + alt: "oxford" + full: true + - img: /images/logos/chica.svg + alt: "chica" + - img: /images/logos/stAndrews.svg + alt: "andrews" + - img: /images/logos/imperial.svg + alt: "imperial" + full: true + action: + caption: Show all + url: '/about/endorsements' + - title: | + **Partner** projects + testimonial: + id: ben-johnson + content: | + *Aggregation plays an increasingly essential role in maximising the + long-term benefits of open access, helping to turn the promise of a + 'research commons' into a reality. The aggregation services that CORE + provides therefore make a very valuable contribution to the evolving + open access environment in the UK.* + author: + name: Ben Johnson + role: Research Policy Adviser + picture: /images/people/johnson.jpg + userList: + items: + - img: /images/logos/coar.svg + alt: "coar" + - img: /images/logos/sparc.png + alt: "sparc" + full: true + - img: /images/logos/researchInovation.svg + alt: "researchInovation" + - img: /images/logos/losAlamos.svg + alt: "losAlamos" + - img: /images/logos/jisc.svg + alt: "jisc" + background: true + action: + caption: Show all + url: '/about/endorsements' covid-19-notice: | Stay up to date with the latest Open Access research diff --git a/pages/index.jsx b/pages/index.jsx index bdc0dd1aa..88369340b 100644 --- a/pages/index.jsx +++ b/pages/index.jsx @@ -3,6 +3,7 @@ import { Carousel, Button, Card } from '@oacore/design/lib' import { classNames } from '@oacore/design/lib/utils' import styles from './index.module.scss' +import Testimonial from '../components/testimonial' import { Section, @@ -18,7 +19,7 @@ import { Layout, SearchForm, } from 'design-v2/components' -import { Page } from 'components' +import { Markdown, Page } from 'components' import page from 'data/home.yml' const Hero = ({ @@ -203,6 +204,46 @@ const IndexPage = () => { +
+ {page.users.map((item) => ( +
+
+ + {item.title} + +
+ +
+
+
+
+ {item.userList.items.map((slide) => ( + logo + ))} +
+ +
+
+ ))} +
) } diff --git a/pages/index.module.scss b/pages/index.module.scss index 442d61893..187710850 100644 --- a/pages/index.module.scss +++ b/pages/index.module.scss @@ -208,3 +208,61 @@ } } } + +.main-item { + background: #f5f5f5; + padding: var(--page-padding-y) var(--page-padding-x); + margin: 34px 0; + .testimonial-wrapper { + display: flex; + justify-content: space-between; + gap: 35px; + margin-bottom: 24px; + .testimonial-item { + width: 75%; + } + .testimonial-title { + width: 25%; + color: #212121; + font-size: 32px; + font-style: normal; + font-weight: 500; + line-height: 130%; + cursor: unset; + &:hover { + text-decoration: none; + } + } + } +} + +.carousel-wrapper { + display: flex; + flex-direction: column; + .carousel-items { + display: flex; + justify-content: space-between; + gap: 35px; + } + .carousel-item { + border: 1px solid #b75400; + width: 212px; + height: 104px; + padding: 16px; + background: #fff; + } + .carousel-item-unset { + padding: 0; + } + .background { + background: #e85e13; + } + .link-wrapper { + display: flex; + justify-content: flex-end; + margin-top: 24px; + .link { + padding: 8px 16px; + } + } +} diff --git a/public/images/logos/chica.svg b/public/images/logos/chica.svg new file mode 100644 index 000000000..d63bca586 --- /dev/null +++ b/public/images/logos/chica.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/public/images/logos/coar.svg b/public/images/logos/coar.svg new file mode 100644 index 000000000..5bc839b80 --- /dev/null +++ b/public/images/logos/coar.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/logos/coarUser.png b/public/images/logos/coarUser.png new file mode 100644 index 0000000000000000000000000000000000000000..8d618a85a0d93de4407e275833ce9fb7e6cadba1 GIT binary patch literal 4679 zcmV-N61eS&P)001fo1^@s6G~`f|00009a7bBm000XU z000XU0RWnu7ytkO0drDELIAGL9O(c600d`2O+f$vv5yPpzEb5vn zQQ1@mL$QDaQVS`Zth>QRY7avYZGduRJ#wpV;&R~;WK~{gKTtDtL1JMEKc`>}>^=tl zx(#Jt+zy72m6e5!8#iLZh7Fx&y2oY(LS`#Pd~8~$@gDw87%?{(@!zB}1FY@xc^2&I zPn$LkYuBztU|=9jMQYgve4DyX)YxbHEk&ruFc^zV1xN5>)>ar3Yc{ELv-LqQ=MV(D z4d&O_QX+m~6*NGlstM`$uHa1GcPOd517qM}=ZhiU6A|S-ff=R*xs!~La_pwjqx#xAfx~o1RYn5EHN%-5q*~8c$z!>z7;b zhb3=7E|;qvBaxCpx1d>R*!Nw$cri9@+QfqwV^LC{hfN7@>hKN=yg1+k_&bNf7?|1s z+pv_#5asnG#{18M%+f~dSdG(9TG>T>ld_8WdTAyxK7u}b=grl)QTDUo*yiSD>^Zsv zt2eIDXncH}vbl@#Nv$n0?XS^@n$ibi*|u#PX3w6Drluwsi*tGVp&KoFyywBAYF2P# z|4-%@P_oC`P-}qKicjIYw9inlsDY`eYAnP4^v}7$Yh(TT^_Uy85Vx-vL06^HIa`{s`gUInfc z9@9B+YvZE8MSPfv%iV>7nk13 zFy9T)k#4>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f3$I@I+gF=LqfJGp$^C}_hEvqrX}^c+%=%S zA5C;x%;^sOztFegtY^u+Ay7s}-321u?fdV)N1r~O>&b>c7liSzn07lgngQKCU9n@w zb~rh8m8z~391~2t5&hkV8l=-vMj_BuxMze6^z@y7!yHTwT&%H~tRts#zvX)iX`+ia zNyhh5#79h;=?!y1oA1mDd6O^W>Y#w+(4j*J3JPjJ=i+4t*B+*=&?!o-!6@685Y(fq zp*JbzxKt#pzmb0(A)?Y*h^YHYw=|JjehHOwaV-OeK+7r>R0u)K^pWhZG*<4Y4QI#* z=ZC+Ce%*$cJjD~?IU2J=mI@YEhJ=J*@7}%e_xI<|k9>X|`#!p&cC3}146fb|Oh?rJ zyHmlzmMvQl6BDEM_2ja%qI_IG#~`LKh~E@R6MfyHcy);obit{K-5d<_eTFUf!aJK$ z@N=b5y$hu=o+iI#R=+=DjQ?{csl287!YBQo$J2cmi_XM^hKAzQsZ$s=Y82lEOVOxa zM~t4*8*glX22v~inz+5ay?Ij<1wZO4gGpLS5E-nI;aD1>nOvg7OiC3wn%W?ZiIv0# zV|&dJHA$Vw*@;p$y)0S<9V#0l2Xb-bCm8KFiy4YD42ArL(LHD3^{CG<(r-Fs5@A20 zBQyijOt^gca-OnNM{ZIXPVPvAN~v27BN-cQ$(E3ifN|qAr~NXRhFMrE+!sQ9G_)hE zu^8$zQLurXsBA3Z+kuz^+7-2@b3egx)E{#+dwZ9@W}Wtku4c*T92RLMvD8mtZ7x&b zg@tH>W;Ue>k-_^* zXqQuxbDW)>5fU1V7vG%%7lj`JeERFP+tnkC$8X92AMwA(e*wE3Jgp0Zb|nA+002ov JPDHLkV1k@|=@$S1 literal 0 HcmV?d00001 diff --git a/public/images/logos/imperial.svg b/public/images/logos/imperial.svg new file mode 100644 index 000000000..061a7e221 --- /dev/null +++ b/public/images/logos/imperial.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/public/images/logos/losAlamos.svg b/public/images/logos/losAlamos.svg new file mode 100644 index 000000000..e3893f328 --- /dev/null +++ b/public/images/logos/losAlamos.svg @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/logos/researchInovation.svg b/public/images/logos/researchInovation.svg new file mode 100644 index 000000000..897ac7d2c --- /dev/null +++ b/public/images/logos/researchInovation.svg @@ -0,0 +1,60 @@ + + + + + + + + diff --git a/public/images/logos/sparc.png b/public/images/logos/sparc.png new file mode 100644 index 0000000000000000000000000000000000000000..b0e2aae3712eadfd536ca39efabfc3087eb5b9ac GIT binary patch literal 4512 zcmd5==Q|q?7qv@J4KZ43M1Lq+{LmssjnruEU6k4@NK>?^)=G_9Eo$#wd(X6JP(lc5 zB=(-Ez2)_OeE);@!@1|V=hJ=ehjX8MBJ_0B83A_yWMpKFni^^b*F1U+XIh%;8u4d_ z?V9MkG|UlXWb`cm1vy!2I>)t0jxbPHA*&eVTEA|noRqbd$;hf>=`UVUlaT?XHPw`j z-jZ);+;{_WU`KjR34}5yfGL=PoWYDhH7Yd;fWbZ9NE@{$48g(6>Yxs!5Vwdhw8Wr5 zBOVOMO;Dx7b!4&0;rLWk`UFmi5az)xOyfUkOjnbL9fZzJdmo?V=?veUc4GT1b5e_! z+SN`(4Y-P{Tc0Mbg;p{<^)-z5nVCmL7L31*1D9b+=d~=v06~ zNWyJVA!aINPOy;jP&lpDEh%s?GgWkWHkC5}|ChwfOltNpG6ES_Sf*46TW4w|3Pab| z*WWCy>C1V|kvTXyeKn+`r{6zOP*TcL30qrpE;XwL8&?=bM6!xJb;4#AbbTOc-(cd- zClD+F$k+401l7|w0%Bs>m(M10gwnmCA_qv6afEbARNxU)lat+vcWbiso8le$WVWllsPXrI_Mk{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svg b/public/images/logos/stAndrews.svg new file mode 100644 index 000000000..bfb767abc --- /dev/null +++ b/public/images/logos/stAndrews.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/people/kathleen.svg b/public/images/people/kathleen.svg new file mode 100644 index 000000000..7c0f8f7e0 --- /dev/null +++ b/public/images/people/kathleen.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 0b7bce8aa69592c28deb5377d7309a7138102794 Mon Sep 17 00:00:00 2001 From: ekachxaidze98 <65679299+ekachxaidze98@users.noreply.github.com> Date: Thu, 18 Jan 2024 13:54:26 +0400 Subject: [PATCH 2/5] Core 4784 UI docs page (#1075) * CORE-4784: create dropdown * CORE-4784: docs update * merge master --- components/docs-select/index.jsx | 58 ++ components/docs-select/styles.module.scss | 35 + components/layout/layout.jsx | 8 +- package-lock.json | 12 +- public/images/dropArrow.svg | 6 + report.20230517.140705.4715.0.001.json | 643 ------------------ .../data-providers-guide/index.jsx | 81 +-- .../data-providers-guide/styles.module.scss | 29 +- .../membership-documentation/index.jsx | 80 +-- .../styles.module.scss | 29 +- 10 files changed, 249 insertions(+), 732 deletions(-) create mode 100644 components/docs-select/index.jsx create mode 100644 components/docs-select/styles.module.scss create mode 100644 public/images/dropArrow.svg delete mode 100644 report.20230517.140705.4715.0.001.json diff --git a/components/docs-select/index.jsx b/components/docs-select/index.jsx new file mode 100644 index 000000000..7a8dc176e --- /dev/null +++ b/components/docs-select/index.jsx @@ -0,0 +1,58 @@ +import React, { useEffect, useRef, useState } from 'react' + +import styles from './styles.module.scss' +import arrow from '../../public/images/dropArrow.svg' + +const DocumentSelect = ({ list, handleSelect, selectedOption }) => { + const [showOptions, setShowOptions] = useState(false) + const dropdownRef = useRef(null) + + const onSelectOptionClick = (option) => { + handleSelect(option) + setShowOptions(false) + } + + const handleClickOutside = (event) => { + if (dropdownRef.current && !dropdownRef.current.contains(event.target)) + setShowOptions(false) + } + + useEffect(() => { + document.addEventListener('click', handleClickOutside) + + return () => { + document.removeEventListener('click', handleClickOutside) + } + }, []) + + return ( +
+ {/* eslint-disable-next-line max-len */} + {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions */} +
setShowOptions(!showOptions)} + className={styles.documentSelectLabel} + > + {selectedOption} + +
+ {showOptions && ( +
    + {list.map((option) => ( + // eslint-disable-next-line max-len + // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-noninteractive-element-interactions +
  • onSelectOptionClick(option)} + > + {option} +
  • + ))} +
+ )} +
+ ) +} + +export default DocumentSelect diff --git a/components/docs-select/styles.module.scss b/components/docs-select/styles.module.scss new file mode 100644 index 000000000..698d92ca9 --- /dev/null +++ b/components/docs-select/styles.module.scss @@ -0,0 +1,35 @@ +.document-select { + position: relative; +} + +.document-select-label { + color: #212121; + font-size: 18px; + font-style: normal; + font-weight: 500; + line-height: 130%; + letter-spacing: 0.036px; + padding: 0 35px; +} + +.arrow { + margin-left: 30px; +} + +.document-dropdown { + width: 100%; + position: absolute; + top: 45px; + background: #fff; + border-radius: 0 0 2px 2px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.25); +} + +.document-item { + padding: 10px 30px; + cursor: pointer; +} + +.document-item:hover { + background: #eee; +} diff --git a/components/layout/layout.jsx b/components/layout/layout.jsx index 67b4b1f84..b93dd3c74 100644 --- a/components/layout/layout.jsx +++ b/components/layout/layout.jsx @@ -1,10 +1,12 @@ import React, { useCallback } from 'react' import { Header, Footer } from '@oacore/design' +import { useRouter } from 'next/router' import Head from './head' import SkipToContent from '../skip-to-content' const Layout = ({ title, description, children, onNavigate }) => { + const router = useRouter() const handleHeaderClick = useCallback( (event) => { const linkElement = event.target.closest('a') @@ -22,8 +24,10 @@ const Layout = ({ title, description, children, onNavigate }) => {
+ ))} + + + + ) } export default MembershipPageTemplate diff --git a/templates/membership/styles.module.scss b/templates/membership/styles.module.scss index 027c4ee65..f6652c3f9 100644 --- a/templates/membership/styles.module.scss +++ b/templates/membership/styles.module.scss @@ -6,6 +6,14 @@ $breakpoint-sm: 800px; $breakpoint-md: 1130px; $breakpoint-lg: 1415px; +.layout-wrapper { + padding: var(--page-padding-y) var(--page-padding-x) 0 var(--page-padding-x); +} + +.layout-mini-wrapper { + padding: 0 var(--page-padding-x) var(--page-padding-y) var(--page-padding-x); +} + .nav-wrapper { display: flex; gap: 24px; @@ -446,3 +454,76 @@ $breakpoint-lg: 1415px; margin: 0 20px; } } + +.institution-benefit-wrapper { + background: #f5f5f5; + .institution-benefit-inner-wrapper { + padding: var(--page-padding-y) var(--page-padding-x); + display: flex; + flex-wrap: wrap; + width: 100%; + } +} + +.title-wrapper { + display: flex; + justify-content: center; + align-items: center; + flex: 0 0 50%; + box-sizing: border-box; + padding: 10px; + color: #212121; + font-size: 48px; + font-style: normal; + font-weight: 500; + line-height: 78px; + .main-title { + font-weight: 700; + } + a { + color: #b75400; + } +} + +.item-main-wrapper { + flex: 0 0 50%; + box-sizing: border-box; + background: #fff; + .item-wrapper { + padding: 16px; + .item-title { + color: #000; + font-size: 24px; + font-style: normal; + font-weight: 700; + line-height: 32px; + letter-spacing: 0.036px; + } + .item-description { + color: #000; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: 24px; + letter-spacing: 0.026px; + } + } + .footer { + display: flex; + justify-content: space-between; + align-items: center; + padding: 16px; + border-top: 1px solid #e0e0e0; + .user-wrapper { + display: flex; + justify-content: space-between; + align-items: center; + .user-img { + margin-right: 14px; + } + .user { + margin-bottom: 6px; + } + } + } +} From ea64064a4a767719d977181617b1b44fc2bd48a7 Mon Sep 17 00:00:00 2001 From: ekachxaidze98 <65679299+ekachxaidze98@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:49:14 +0400 Subject: [PATCH 4/5] bold issue (#1093) --- data/dataProviders.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/dataProviders.yml b/data/dataProviders.yml index fb980d4a6..795efa4f0 100644 --- a/data/dataProviders.yml +++ b/data/dataProviders.yml @@ -64,7 +64,7 @@ navItems: - item: 4.3 Claiming access to the CORE Dashboard (Recommended) href: "#dashboard" - item: | - **5. How does CORE process data supplied by Data Providers ** + **5. How does CORE process data supplied by Data Providers** href: "#process" - item: | **6. Further reading** From 6689e8eecd0437ae149da2e6b0efefb68ea58dc8 Mon Sep 17 00:00:00 2001 From: Eka Date: Wed, 6 Mar 2024 16:47:58 +0400 Subject: [PATCH 5/5] CORE: exclud ids --- templates/governance/supporters/index.jsx | 25 ++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/templates/governance/supporters/index.jsx b/templates/governance/supporters/index.jsx index 11eb304a7..dfee8afb2 100644 --- a/templates/governance/supporters/index.jsx +++ b/templates/governance/supporters/index.jsx @@ -26,18 +26,26 @@ const Card = ({ plan }) => ( ) +const excludedIds = [ + 3463, 183, 2145, 1248, 660, 222, 14373, 3559, 21117, 292, 14567, 2812, 196, + 3581, 197, 12800, 14335, 1249, 2313, 21853, 15201, 1012, 158, +] + const GovernanceSupportersPageTemplate = ({ members, page }) => { const [searchValue, setSearchValue] = useState('') - const [displayedItems, setDisplayedItems] = useState(50) - const maxItems = members.length + const [displayedItems, setDisplayedItems] = useState(30) const handleSearch = (event) => { const { value } = event.target setSearchValue(value) } - const filteredMembers = members.filter((member) => - member.organisation_name.toLowerCase().includes(searchValue.toLowerCase()) + const filteredMembers = members.filter( + (member) => + member.organisation_name + .toLowerCase() + .includes(searchValue.toLowerCase()) && + !excludedIds.includes(member.repo_id) ) const sortedMembers = [...filteredMembers].sort((a, b) => @@ -168,14 +176,17 @@ const GovernanceSupportersPageTemplate = ({ members, page }) => {

- Showing 1 - {Math.min(displayedItems, maxItems)} + Showing 1 -{' '} + {Math.min(displayedItems, filteredMembers.length)}