| Server IP : 66.29.153.156 / Your IP : 216.73.216.226 Web Server : LiteSpeed System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64 User : lastyfjz ( 1521) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/lastyfjz/www/wp-content/plugins/extendify/src/Assist/components/dashboard/cards/ |
Upload File : |
import { useTasksStore } from '@assist/state/tasks';
export const DemoCard = ({ task }) => {
const { completeTask, isCompleted } = useTasksStore();
return (
<div
className="flex h-full w-full bg-cover bg-right-bottom bg-no-repeat"
style={{
backgroundImage: `url(${task?.backgroundImage})`,
}}>
<div className="flex h-full w-full grow flex-col bg-black/10 px-8 py-8 text-white lg:mr-20 lg:bg-transparent">
<div className="title text-2xl font-semibold md:mt-32 md:text-4xl md:leading-10">
{task.title}
</div>
<div className="description mt-2 text-sm md:text-base lg:mr-16">
{task.description}
</div>
<div className="cta mt-8 flex flex-wrap items-center text-sm md:gap-3">
<a
target="_blank"
className="min-w-24 cursor-pointer rounded-sm bg-design-main px-4 py-2.5 text-center text-sm font-medium text-design-text no-underline hover:opacity-90 md:block"
href={task.link}
onClick={() => completeTask(task.slug)}>
{isCompleted(task.slug)
? task.buttonLabels.completed
: task.buttonLabels.notCompleted}
</a>
</div>
</div>
</div>
);
};