Skip to content

Commit

Permalink
feat(CP): add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
shihyuchou621 committed Jul 20, 2023
1 parent 68dc1b6 commit 2b09555
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion app/components/star.tsx → app/components/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { faStar } from "@fortawesome/free-solid-svg-icons";
import { faCircleArrowDown, faStar } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

export const StarCheck = () => {
Expand All @@ -16,3 +16,11 @@ export const StarUnCheck = () => {
</div>
);
};

export const ArrowAltCircleDown = () => {
return (
<div className="mx-auto my-[10px] h-[50px] w-[50px]">
<FontAwesomeIcon icon={faCircleArrowDown} color="#B1C951" />
</div>
);
};
4 changes: 3 additions & 1 deletion app/routes/($lang).curing.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { LinksFunction, V2_MetaFunction } from "@remix-run/node";
import { StarCheck, StarUnCheck } from "~/components/star";
import { ArrowAltCircleDown, StarCheck, StarUnCheck } from "~/components/icons";
import stylesheet from "~/styles/curing.css";

export const links: LinksFunction = () => [
Expand Down Expand Up @@ -114,6 +114,8 @@ export default function () {
</tr>
</table>
</div>
<ArrowAltCircleDown />
<i className="fa fa-arrow-circle-o-down" aria-hidden="true"></i>
</div>
</div>
);
Expand Down

0 comments on commit 2b09555

Please sign in to comment.