PluginProbe
Extendify / 3.0.5
Extendify v3.0.5
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Assist / components / dashboard / cards / DemoCard.jsx

DemoCard.jsx in Extendify 3.0.5, at src/Assist/components/dashboard/cards/DemoCard.jsx

35 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { useTasksStore } from '@assist/state/tasks';
2
3 export const DemoCard = ({ task }) => {
4 const { completeTask, isCompleted } = useTasksStore();
5 return (
6 <div
7 className="flex h-full w-full bg-cover bg-right-bottom bg-no-repeat"
8 style={{
9 backgroundImage: `url(${task?.backgroundImage})`,
10 }}
11 >
12 <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">
13 <div className="title text-2xl font-semibold md:mt-32 md:text-4xl md:leading-10">
14 {task.title}
15 </div>
16 <div className="description mt-2 text-sm md:text-base lg:mr-16">
17 {task.description}
18 </div>
19 <div className="cta mt-8 flex flex-wrap items-center text-sm md:gap-3">
20 <a
21 target="_blank"
22 className="min-w-24 cursor-pointer rounded-xs bg-design-main px-4 py-2.5 text-center text-sm font-medium text-design-text no-underline hover:opacity-90 md:block"
23 href={task.link}
24 onClick={() => completeTask(task.slug)}
25 >
26 {isCompleted(task.slug)
27 ? task.buttonLabels.completed
28 : task.buttonLabels.notCompleted}
29 </a>
30 </div>
31 </div>
32 </div>
33 );
34 };
35