Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Commit 61af3fa

Browse files
authored
Merge pull request #110 from hifis-net/update-readme
Minor updates to prepare news post on hifis.net
2 parents 24b66fe + 27744d0 commit 61af3fa

File tree

5 files changed

+62
-67
lines changed

5 files changed

+62
-67
lines changed

CITATION.cff

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ authors:
3232
3333
affiliation: Helmholtz Centre for Environmental Research GmbH - UFZ
3434
orcid: 'https://orcid.org/0000-0001-7579-216X'
35+
identifiers:
36+
- type: doi
37+
value: 10.5281/zenodo.7638662
38+
description: The DOI for all versions of the Helmholtz RSD
3539
repository-code: >-
3640
https://github.com/hifis-net/RSD-as-a-service
3741
url: 'https://helmholtz.software'

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ SPDX-License-Identifier: CC-BY-4.0
1515

1616
![image](https://user-images.githubusercontent.com/4195550/136156498-736f915f-7623-43d2-8678-f30b06563a38.png)
1717

18-
[![DOI](https://zenodo.org/badge/413814951.svg)](https://zenodo.org/badge/latestdoi/413814951)
19-
[![GitHub license](https://img.shields.io/badge/license-Apache--2.0%20-blue.svg)](https://github.com/research-software-directory/RSD-as-a-service/blob/main/LICENSE)
18+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7638663.svg)](https://doi.org/10.5281/zenodo.7638663)
19+
[![GitHub license](https://img.shields.io/badge/License-EUPL--1.2%20-blue.svg)](./LICENSES/EUPL-1.2.txt)
2020
[![fair-software.eu](https://img.shields.io/badge/fair--software.eu-%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8B%20%20%E2%97%8F%20%20%E2%97%8B-orange)](https://fair-software.eu)
2121
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6336/badge)](https://bestpractices.coreinfrastructure.org/projects/6336)
2222
![All tests](https://github.com/research-software-directory/RSD-as-a-service/actions/workflows/tests_main.yml/badge.svg)
@@ -92,7 +92,8 @@ More information about building and data migration can be found in [Getting star
9292

9393
The content of this repository is licensed under several licenses. We follow the [REUSE specification](https://reuse.software/) to indicate which license applies to the files specifically. Here are some general hints:
9494

95-
- Source code is licensed under `Apache-2.0`
95+
- Helmholtz specific source code is licensed under `EUPL-1.2`
96+
- Source code coming from upstream is licensed under `Apache-2.0`
9697
- Documentation and most images are licensed under `CC BY-4.0`
9798
- Some files with trivial content, e.g. configuration files, are licensed under `CC0-1.0`
9899

126 KB
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2017 Isaque Pereira
2+
3+
SPDX-License-Identifier: CC0-1.0

frontend/components/home/helmholtz/index.tsx

Lines changed: 51 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ import Image from 'next/image'
2828
import ParticipatingOrganisations from '~/components/home/helmholtz/ParticipatingOrganisations'
2929
import ResearchFieldCollection from './ResearchFieldCollection'
3030
import SpotlightSection from './SpotlightSection'
31+
import useLoginProviders from '~/auth/api/useLoginProviders'
32+
import {useAuth} from '~/auth'
3133
/*! purgecss end ignore */
3234

3335
const SPOTLIGHTS= [
@@ -36,54 +38,25 @@ const SPOTLIGHTS= [
3638
description: 'matRad is a dose calculation and inverse treatment planning toolkit for radiotherapy research and education written in Matlab.',
3739
image: 'https://hifis.net/assets/img/spotlights/matRad/matRad_prostate_carbon.png',
3840
link: '/software/matrad'
39-
},
40-
{
41-
name: 'CrystFEL',
42-
description: 'CrystFEL is a suite of programs to process data from "serial crystallography" experiments.',
43-
image: '/images/crystfel.png',
44-
link: '/software/crystfel'
45-
},
46-
{
47-
name: 'MassBank',
48-
description: 'MassBank is an open source mass spectral library for the identification of small chemical molecules of metabolomics, exposomics and environmental relevance.',
49-
image: 'https://hifis.net/assets/img/spotlights/massbank/Atrazine_Mass_Spectrum.png',
50-
link: '/software/massbank'
51-
},
52-
{
53-
name: 'FishInspector',
54-
description: 'The software FishInspector provides automatic feature detections in images of zebrafish embryos (body size, eye size, pigmentation). It is Matlab-based and provided as a Windows executable (no matlab installation needed).',
55-
image: 'https://hifis.net/assets/img/spotlights/fishinspector/FishInspector.jpg',
56-
link: '/software'
57-
},
58-
{
59-
name: 'Golem',
60-
description: 'Golem is a modelling platform for thermal-hydraulic-mechanical and non-reactive chemical processes in fractured and faulted porous media.',
61-
image: 'https://hifis.net/assets/img/spotlights/golem/golem_preview.png',
62-
link: '/software/golem-a-moose-based-application'
63-
},
64-
{
65-
name: 'Lynx',
66-
description: 'LYNX (Lithosphere dYnamics Numerical toolboX) is a novel numerical simulator for modelling thermo-poromechanical coupled processes driving the deformation dynamics of the lithosphere.',
67-
image: 'https://hifis.net/assets/img/spotlights/lynx/lynx_logo.png',
68-
link: '/software/lynx-modelling-lithosperic-dynamics'
69-
},
70-
{
71-
name: 'MeshIt',
72-
description: 'The tool MeshIT generates quality tetrahedral meshes based on structural geological information. It has been developed at the GFZ Potsdam and some extensions were later added by PERFACCT. All procedures are fully automatized and require at least scattered data points as input.',
73-
image: 'https://hifis.net/assets/img/spotlights/meshit/meshit_logo.png',
74-
link: '/software/meshit'
75-
},
76-
{
77-
name: 'Palladio',
78-
description: 'Palladio is a software architecture simulation approach which analyses software at the model level for performance bottlenecks, scalability issues, reliability threats, and allows for subsequent optimisation.',
79-
image: 'https://hifis.net/assets/img/spotlights/palladio/palladio_preview.png',
80-
link: '/software/palladio'
8141
}
8242
]
8343

8444
export default function Home() {
8545
const [organisations, setOrganisations] = useState<OrganisationForOverview[]>([])
8646
const simplebarRef = useRef()
47+
const providers = useLoginProviders()
48+
const {session} = useAuth()
49+
const status = session?.status || 'loading'
50+
51+
let getStartedHref:string
52+
if (status !== 'authenticated') {
53+
getStartedHref = providers[0]?.redirectUrl ?? ''
54+
if (typeof document !== 'undefined' ) {
55+
document.cookie = `rsd_pathname=${location.href}software/add;path=/auth;SameSite=None;Secure`
56+
}
57+
} else {
58+
getStartedHref = '/software/add'
59+
}
8760

8861
useEffect(() => {
8962
// Initialize AOS library
@@ -120,15 +93,15 @@ export default function Home() {
12093
}
12194

12295
// Only required if we have the "Add your software button"
123-
// const handleClickOpen = () => {
124-
// const loginButton = document.querySelector('.rsd-login-button')
125-
// if (loginButton) {
126-
// const evt = new MouseEvent('click', {
127-
// bubbles: true
128-
// })
129-
// loginButton.dispatchEvent(evt)
130-
// }
131-
// }
96+
const handleClickOpen = () => {
97+
const loginButton = document.querySelector('.rsd-login-button')
98+
if (loginButton) {
99+
const evt = new MouseEvent('click', {
100+
bubbles: true
101+
})
102+
loginButton.dispatchEvent(evt)
103+
}
104+
}
132105

133106
const backgroundTransitionStyle = {
134107
'transition': 'background 0.3s ease 0.1s',
@@ -144,11 +117,6 @@ export default function Home() {
144117
<div className="flex flex-col sm:flex-row flex-wrap container mx-auto px-6 md:px-10 xl:px-0 pt-16 pb-12 max-w-screen-xl text-white">
145118
<div className="min-w-min flex flex-col">
146119
<LogoHelmholtz width="220" />
147-
{/* <a onClick={handleClickOpen}>
148-
<div className="w-[250px] bg-[#05e5ba] hover:bg-primary text-secondary hover:text-white text-center font-medium text-2xl py-4 px-6 rounded-sm">
149-
Add your software
150-
</div>
151-
</a> */}
152120
</div>
153121
<div className="my-auto pt-4 md:pt-0 ml-auto">
154122
<h1 className="text-4xl md:text-5xl lg:text-6xl md:max-w-md lg:max-w-xl">Promote and Discover Research Software</h1>
@@ -164,6 +132,32 @@ export default function Home() {
164132
</div>
165133
</div>
166134

135+
{/* Announcement */}
136+
<div className="container mx-auto p-6 md:p-10 xl:py-10 max-w-screen-xl text-secondary">
137+
<h2 className="text-5xl mb-4">Add your Research Software</h2>
138+
<div className='grid grid-cols-1 lg:grid-cols-2 lg:gap-20'>
139+
<div className="md:block overflow-clip relative h-full">
140+
<Image
141+
fill
142+
className="object-cover"
143+
alt="Someone typing on a laptop"
144+
src="/images/pexels-isaque-pereira-394377.jpg"
145+
/>
146+
</div>
147+
<div>
148+
<div className='text-2xl mt-2'>
149+
The Helmholtz RSD is now <span className="hgf-text-highlight">ready to use for all Helmholtz users</span>.
150+
If you have an account at a Helmholtz institution, login and promote your Research Software now:
151+
</div>
152+
<Link href={getStartedHref} passHref>
153+
<div className="mx-auto mt-10 w-[250px] bg-[#05e5ba] hover:bg-primary text-secondary text-center font-medium text-2xl py-4 px-6 rounded-full">
154+
Add your software
155+
</div>
156+
</Link>
157+
</div>
158+
</div>
159+
</div>
160+
167161
{/* Teaser */}
168162
{/* <div className="container mx-auto p-6 md:p-10 xl:py-10 xl:px-0 max-w-screen-xl text-secondary">
169163
<h2 className='text-5xl'>Making Research Software Sustainable</h2>
@@ -202,7 +196,6 @@ export default function Home() {
202196
style={backgroundTransitionStyle}
203197
onMouseLeave={resetBackgroundImage}>
204198
<h2 className='text-5xl'>Discover software by research topic</h2>
205-
{/* <div className="text-xl my-4">Browse Software by Research Topic</div> */}
206199
<ResearchFieldCollection />
207200
</div>
208201
</div>
@@ -212,13 +205,7 @@ export default function Home() {
212205
<div className='grid grid-cols-1 lg:grid-cols-2 lg:gap-20'>
213206
<div className='text-2xl'>
214207
<h2 id="Upcoming" className='text-5xl pb-10'>Upcoming</h2>
215-
<div>We are continuously updating this service. Upcoming features include:</div>
216-
<ul className="px-6 my-4 list-disc">
217-
<li className="py-4">Login with your Helmholtz Institution&apos;s account</li>
218-
<li className="py-4">Add your own software products</li>
219-
<li className="py-4">Add related projects, funding and institutions</li>
220-
<li className="py-4">Obtain license consultation from HIFIS</li>
221-
</ul>
208+
<div>Our journey has just begun, and we will be continuously updating this service.</div>
222209
<div className="py-2">Do you have <span className="hgf-text-highlight">suggestions for improvements or new features</span>?</div>
223210
<div className="py-2">Please let us know! Send us an <a href="mailto:[email protected]?subject=Comments about RSD" className="hgf-text-highlight underline">e-mail</a>, or open an <a href="https://github.com/hifis-net/RSD-as-a-service/issues" target="_blank" className="bg-[#cdeefb] underline" rel="noreferrer">issue</a> in our GitHub repository.</div>
224211
</div>

0 commit comments

Comments
 (0)