hodcroftlab / covariants

Real-time updates and information about key SARS-CoV-2 variants, plus the scripts that generate this information.
https://covariants.org/
GNU Affero General Public License v3.0
316 stars 111 forks source link

Add Variant Graph to Variant Intro Page #254

Closed emmahodcroft closed 2 years ago

emmahodcroft commented 2 years ago

Add a picture of the Nextclade Clade graph to the Variant intro page.

However, this isn't ready to merge as the image size isn't looking great. Tried with HTML but this messes up the indent to the right. With Markdown doesn't mess up indent, but couldn't figure out how to scale. image

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hodcroftlab/covariants/FAz7uqjQkQhrbVAMahtt5FUZFYH4
✅ Preview: https://covariants-git-addvariantgraph-hodcroftlab.vercel.app

ivan-aksamentov commented 2 years ago

I made the schema into React component. I added it to the home page and the variants page.

The svg is in web/src/assets/images/clades.svg

There is a new makefile target to update the svg:

make update-clades-svg

It also runs when running:

make web-data
emmahodcroft commented 2 years ago

Thank you for working on this @ivan-aksamentov ! The deploy looks great to me, at multiple resolutions. I'm happy with this if you are!