2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
import{j as t,L as m,u as p}from"./vendor-BKmmeuxg.js";import{C as l}from"./card-D9_SJYq6.js";import{g as n,S as d}from"./section-Bz0LxI_C.js";import"./utils-DxSsnXxD.js";import"./dialog-B2gN9MvT.js";import"./use-lang-YfV87_zl.js";import"./chunked-uploader-input-D0XPVOTS.js";import"./button-BpNwv2aE.js";import"./index-WW_1X1qx.js";import"./input-DM0goJrn.js";import"./index-D9-QKOod.js";import"./input-error-LaPr_4wd.js";import"./loading-button-BnTVAMJ7.js";import"./label-HmIcv5Yx.js";import"./textarea-CyndvowL.js";import"./inertia-SZXqLvQm.js";import"./icon-picker-dialog-AqyWbPod.js";import"./icon-picker-iXyBXP6r.js";import"./debounce-CWHP_ANh.js";import"./tooltip-BsX7Z6vz.js";import"./scroll-area-C8HGru-R.js";import"./table-header-DVkEnG6Y.js";import"./table-DWOXv4Pu.js";import"./table-page-size-OCfjNXER.js";import"./dropdown-menu-DO-po5c1.js";import"./route-B4ZMN77y.js";import"./avatar-j28afJTV.js";const c=({category:e})=>t.jsx(m,{href:route("category.courses",{category:e.slug}),children:t.jsxs(l,{className:"border-muted hover:!shadow-card h-[110px] gap-4 rounded-2xl px-12 py-6 !shadow-none",children:[t.jsx("p",{className:"text-lg font-medium",children:e.title}),t.jsxs("p",{className:"text-muted-foreground",children:[e.courses_count," Courses"]})]})}),H=()=>{const{props:e}=p(),{page:s,customize:a,topCategories:i}=e,r=n(s,"top_categories");return t.jsxs(d,{customize:a,pageSection:r,containerClass:"py-20",children:[t.jsxs("div",{className:"relative z-10 mx-auto mb-10",children:[t.jsx("h2",{className:"mb-4 text-3xl font-bold sm:text-4xl",children:r==null?void 0:r.title}),t.jsx("p",{className:"text-muted-foreground",children:r==null?void 0:r.description})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"relative z-10 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:i.map(o=>t.jsx(c,{category:o},o.id))}),t.jsx("div",{className:"after:pointer-events-none after:absolute after:top-0 after:left-0 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']"}),t.jsx("div",{className:"after:pointer-events-none after:absolute after:right-0 after:bottom-0 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']"})]})]})};export{H as default};
|