/** @jsx jsx */ import { css, cx, jsx } from "@emotion/core"; // import * as React from "react"; // @ts-ignore import COLORS from "../../constants/colors"; import { CardAtom, TextAtom } from "../../atoms"; const hoverableCard = css` transition: all 0.2s ease-out; box-shadow: 0px 4px 24px rgba(57, 70, 84, 0.1); :hover { transform: translateY(0px); transition: all 0.2s ease-out; box-shadow: 0px 4px 24px rgba(57, 70, 84, 0.2); } `; const beginnerGradient = "background: linear-gradient(270deg, #645AFF 0%, #5AC4FF 100%); border-radius: 8px 8px 0px 0px;"; const intermediateGradient = "background: linear-gradient(90deg, #FB529F 0%, #FFA844 100%); border-radius: 8px 8px 0px 0px;"; const expertGradient = "background: linear-gradient(270deg, #7143BF 0%, #C86DD7 100%); border-radius: 8px 8px 0px 0px;"; const generateGradientByDifficulty = (difficulty: any) => { switch (difficulty.toUpperCase()) { case "EXPERT": return expertGradient; case "INTERMEDIATE": return intermediateGradient; case "BEGINNER": default: return beginnerGradient; } }; const LearningPathCardMolecule = ({ title = "", instructor = "KODE Team", coverImage = null, fullImage = true, description = "", courses = [], level = { name: "", label: "" }, ProgressBarComponent = () => null, FooterComponent = () => null, small, className = "", }: any) => { return (
{coverImage && (
)}
{title} {courses && (
{`${courses.length} kelas di learning path ini`.toUpperCase()}
)} {description}
); }; LearningPathCardMolecule.displayName = "LearningPathCardMolecule"; export { LearningPathCardMolecule };