Skip to content

Commit

Permalink
restructure decorative border for share courses dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahongsf committed Sep 12, 2024
1 parent fe46695 commit 20d0fc8
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/elements/shareCourses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,32 @@ const ShareCourses = ({courseName, courseUrl, courseNum}: Props) => {
>
<div className="absolute -top-3 left-3/4 z-0 h-10 w-10 rotate-45 bg-white" />
<ul className="list-unstyled bg-white">
<li className="relative m-0 text-nowrap border-b border-spirited-light py-0 hocus:border-transparent">
<li className="relative m-0 text-nowrap py-0">
<a
href={emailCopy}
className="block border-b-[4px] border-transparent px-6 py-5 font-normal text-black no-underline hocus:border-spirited-light hocus:text-black"
className="group block border-b-4 border-transparent font-normal text-black no-underline hocus:border-spirited-light hocus:text-black"
data-course-shared={courseNum}
>
Share via email
<span className="block border-b border-spirited-light px-6 py-5 group-hocus:border-transparent">
Share via email
</span>
</a>
</li>
<li className="relative m-0 text-nowrap border-b border-spirited-light py-0 hocus:border-transparent">
<li className="relative m-0 text-nowrap py-0">
<a
href={smsCopy}
className="block border-b-[4px] border-transparent px-6 py-5 font-normal text-black no-underline hocus:border-spirited-light hocus:text-black"
className="group block border-b-4 border-transparent font-normal text-black no-underline hocus:border-spirited-light hocus:text-black"
data-course-shared={courseNum}
>
Share via text
<span className="block border-b border-spirited-light px-6 py-5 group-hocus:border-transparent">
Share via text
</span>
</a>
</li>
<li className="relative m-0 text-nowrap py-0">
<button
onClick={() => copy(copyUrl)}
className="block border-b-0 border-b-[4px] border-transparent px-6 py-5 font-normal text-black no-underline hocus:border-spirited-light hocus:text-black"
className="block border-b-0 border-b-4 border-transparent px-6 py-5 font-normal text-black no-underline hocus:border-spirited-light hocus:text-black"
data-course-shared={courseNum}
>
Copy share link
Expand Down

0 comments on commit 20d0fc8

Please sign in to comment.