diff --git a/src/app/page.tsx b/src/app/page.tsx index 3dde0ef..19367f1 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,6 +1,7 @@ import { FaBookBookmark } from "react-icons/fa6" import { FiBook, FiBookOpen, FiClipboard, FiFileText, FiPenTool, FiTriangle, FiUploadCloud } from "react-icons/fi" import { CardCaption } from "@/components/card-caption" +import { CardCourse } from "@/components/card-course" import { CardIcon } from "@/components/card-icon" import { CardPathSelection } from "@/components/card-path-selection" import { Hero } from "@/components/home/hero" @@ -58,6 +59,12 @@ export default function Home() { ))} +
+ + + + +
diff --git a/src/components/card-course.tsx b/src/components/card-course.tsx new file mode 100644 index 0000000..52c1fd8 --- /dev/null +++ b/src/components/card-course.tsx @@ -0,0 +1,36 @@ +import type { IconType } from "react-icons" +import { CiGlobe } from "react-icons/ci" +import { FaAngleRight } from "react-icons/fa6" +import { IoLocationOutline } from "react-icons/io5" +import { Card, CardAction, CardContent } from "./ui/card" + +export function CardCourse({ + courseName, + iconLocation: IconLocation = IoLocationOutline, + location = "Milano Leonardo", + iconLanguage: IconLanguage = CiGlobe, + language = "ITA", + iconSelect: IconSelect = FaAngleRight, +}: { + courseName: string + iconLocation?: IconType + location?: "Milano Leonardo" | "Milano Bovisa" | "Cremona" | "Lecco" | "Mantova" | "Piacenza" | "Xi'an" //Magari poi si mette solo string come tipo nel caso si pullino da un DB + iconLanguage?: IconType + language?: "ITA" | "ENG" //Idem + iconSelect?: IconType +}) { + return ( + + {courseName} + + {location} + + + {language} + + + + + + ) +}