Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

1.3 KB
Raw Blame
import { Button as CustomButton } from '@src/react/shared/components/ui/newDesign/button';
import { LearnCardProps } from '@src/react/shared/types/onboard.types';
import { FC } from 'react';
import { FaArrowRight } from 'react-icons/fa6';

export const LearnCard: FC<LearnCardProps> = ({ image, title, description, link, external }) => {
  return (
    <div className="border border-solid border-gray-300 rounded-lg p-3 w-full sm:w-[calc(50%-8px)] lg:w-[calc(33.33%-11px)] md:h-[162px] max-md:w-full relative">
      <div className="flex flex-col md:flex-row h-full gap-5">
        {/* Left section - Image */}
        <div className="flex items-center">
          <img src={image} alt={title} className="w-18 h-18" />
        </div>

        {/* Right section - Description and Button */}
        <div className="flex flex-col flex-1">
          <p className="text-sm text-gray-500 line-clamp-3">{description}</p>
          <CustomButton
            variant="secondary"
            isLink
            label={title}
            addIcon={true}
            Icon={<FaArrowRight className="inline-block ml-1" />}
            linkTo={link}
            iconPosition="right"
            className="self-end w-max mt-2 md:mt-auto"
            external={external}
          />
        </div>
      </div>
    </div>
  );
};