ImperialCollegeLondon / RSD-as-a-service

This repo contains the new RSD-as-a-service implementation
https://research.software
1 stars 0 forks source link

Imperial home page starter #16

Closed dmijatovic closed 9 months ago

dmijatovic commented 1 year ago

Custom Imperial College homepage starter

This is the starter/example/template of custom homepage for Imperial College London. @dalonsoa Maybe you can use this PR/branch as a starter?

Used frontend technologies (knowledge required/use documentation):

Basic setup

To add a custom landing page for imperial we use the following two-stage approach:

  1. There is a frontend/components/home/imperial folder located in this repo that contains the components needed for the Imperial landing page. An simple template is provided (see below for more details) which can be extended.

  2. There is a separate deployment/imperial folder (in the .gitignore of this repo) which contains data items like settings.json, index.css, fonts, etc. As there can only be one copy of these files, the different implementations (default, helmholtz, imperial) have different value and will clash. We therefore mount this folder separately in the docker-compose.yml (example provided in the PR). This allows each instance of the RSD to use its own styles. An example of the content of this folder is provided in imperial.zip. See below for more details.

Changes proposed in this pull request:

How to test:

{
  "host": {
    "name": "imperial",
    "email": "rsd@imperial-college.com",
    "emailHeaders": [],
    "logo_url": "/images/imperial-college-logo.svg",
    "website": "https://www.imperial.ac.uk/",
    "feedback": {
      "enabled": true,
      "url": "rsd@esciencecenter.nl",
      "issues_page_url": "https://github.com/research-software-directory/RSD-as-a-service/issues"
    },
    "login_info_url":"https://research-software-directory.github.io/documentation/getting-access.html",
    "terms_of_service_url": "/page/terms-of-service/",
    "privacy_statement_url": "/page/privacy-statement/"
  },
 ... other settings
}

Current state of custom homepage for Imprial College London

image

PR Checklist:

dalonsoa commented 1 year ago

Hi @dmijatovic , many thanks for putting this together. It is incredibly useful and will make our life way easier.

I cannot give you a date for us to work on this, but I suspect that it will be while you're away. I am sure we will manage, so don't worry too much. Chances are this will be tackled by @cc-a , who leads the project from our side, and @CWestICL , another member of our team who has experience with React.

We will keep in touch.

dmijatovic commented 1 year ago

@dalonsoa Thanks for the update! I will be happy to help after I am back from vacation (August 7th 2023) if any help is needed :-).