From a41a4d200e247be252bb58abaf0ad5621d2a9bcf Mon Sep 17 00:00:00 2001 From: Audrey Hamelers Date: Tue, 10 Sep 2024 18:37:31 +0200 Subject: [PATCH] Closes https://github.com/datadryad/dryad-product-roadmap/issues/3539 --- app/assets/stylesheets/scss/_upload.scss | 8 ++++ .../components/ReadMeWizard/ReadMeSteps.jsx | 47 ++++++++++++++++++- .../react/containers/ReadMeWizard.jsx | 42 ++++++++++++++--- 3 files changed, 89 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/scss/_upload.scss b/app/assets/stylesheets/scss/_upload.scss index 290069fa3..100ed7bb7 100644 --- a/app/assets/stylesheets/scss/_upload.scss +++ b/app/assets/stylesheets/scss/_upload.scss @@ -75,4 +75,12 @@ } .readme-buttons { justify-content: center; +} + +.readme-examples { + list-style-type: none; + padding-left: 0; + i { + margin-right: .5ch; + } } \ No newline at end of file diff --git a/app/javascript/react/components/ReadMeWizard/ReadMeSteps.jsx b/app/javascript/react/components/ReadMeWizard/ReadMeSteps.jsx index df24c5fd7..e63324e6f 100644 --- a/app/javascript/react/components/ReadMeWizard/ReadMeSteps.jsx +++ b/app/javascript/react/components/ReadMeWizard/ReadMeSteps.jsx @@ -40,10 +40,44 @@ export default function ReadMeSteps({ , content: content.step2 || formatList(fileList), + examples: [ + { + key: 'nzs7h44xg', + example: + <>