Skip to content

Commit 933cb12

Browse files
committed
copy URL educate
1 parent 3d0ad9f commit 933cb12

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/modes/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const Modes: NextPage<{ searchParams: { url: string; name: string } }> = ({
2323
}}
2424
heading="Practice mode"
2525
paragraph="Learn and familiarize yourself with the questions and answers without any time constraint."
26+
subparagraph="You can copy URL to comeback to the same question later."
2627
wrapperClassNames="from-[#0284C7] to-[#2DD48F]"
2728
headingClassNames="group-hover:from-[#0284C7] group-hover:to-[#2DD48F]"
2829
/>

components/ExamLink.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ interface ExamLinkProps
77
LinkProps {
88
heading: string;
99
paragraph: string;
10+
subparagraph?: string;
1011
wrapperClassNames?: string;
1112
headingClassNames?: string;
1213
}
@@ -16,6 +17,7 @@ const ExamLink = ({
1617
paragraph,
1718
wrapperClassNames,
1819
headingClassNames,
20+
subparagraph = "",
1921
...linkProps
2022
}: ExamLinkProps) => {
2123
return (
@@ -36,6 +38,9 @@ const ExamLink = ({
3638
{heading}
3739
</h2>
3840
<p className="text-sm text-slate-400 mt-7">{paragraph}</p>
41+
{subparagraph !== "" && (
42+
<p className="text-sm text-slate-400 mt-2">{subparagraph}</p>
43+
)}
3944
</div>
4045
</Link>
4146
);

0 commit comments

Comments
 (0)