From cb849d70e6e8e725d7e942eebf3405272756b8f0 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 17 Aug 2024 01:38:01 +0100 Subject: [PATCH] Update the leaving roadmap page --- .../Projects/LeavingRoadmapWarningModal.tsx | 51 ++++++++++-------- .../Projects/ListProjectSolutions.tsx | 15 +++--- src/components/Projects/LoadingSolutions.tsx | 54 +++++++++++++------ .../Projects/SubmissionRequirement.tsx | 6 +-- .../projects/[projectId]/solutions.astro | 4 +- 5 files changed, 82 insertions(+), 48 deletions(-) diff --git a/src/components/Projects/LeavingRoadmapWarningModal.tsx b/src/components/Projects/LeavingRoadmapWarningModal.tsx index 166a1dc4e..9a48846df 100644 --- a/src/components/Projects/LeavingRoadmapWarningModal.tsx +++ b/src/components/Projects/LeavingRoadmapWarningModal.tsx @@ -1,6 +1,6 @@ import { ArrowUpRight, X } from 'lucide-react'; import { Modal } from '../Modal'; -import { getRelativeTimeString } from '../../lib/date'; +import { SubmissionRequirement } from './SubmissionRequirement.tsx'; type LeavingRoadmapWarningModalProps = { onClose: () => void; @@ -12,32 +12,41 @@ export function LeavingRoadmapWarningModal( ) { const { onClose, onContinue } = props; - const projectTips = [ - 'Leave an upvote if you liked the project', - 'Open an issue on the GitHub repository and give the user feedback about their project', - 'Report if the solution is not relevant', - ]; - return ( -

Leaving roadmap.sh

-

- You are about to visit the project page on GitHub. Once you have - reviewed the project, please back and. +

Leaving roadmap.sh

+

+ You are about to visit the project solution on GitHub. We recommend you + to follow these tips before you leave.

- +
+

+ Make sure to come back and{' '} + leave an upvote{' '} + if you liked the solution. It helps the author and the community. +

+ +

+ If you have feedback on the solution, open an issue or a pull request + on the{' '} + + solution repository + + . +

+ +

+ Downvote the solution if it is{' '} + + incorrect or misleading + + . It helps the community. It helps the community. +

+