2 lines
3.5 KiB
JavaScript
2 lines
3.5 KiB
JavaScript
import{u as p,j as e,D as l,L as x,c1 as h}from"./vendor-BKmmeuxg.js";import{B as u}from"./button-BpNwv2aE.js";import{C as f}from"./card-D9_SJYq6.js";import{g,a as m,S as j}from"./section-Bz0LxI_C.js";import{c as N}from"./utils-DxSsnXxD.js";import b from"./instructor-socials-B3AJqF_m.js";import"./index-WW_1X1qx.js";import"./dialog-B2gN9MvT.js";import"./use-lang-YfV87_zl.js";import"./chunked-uploader-input-D0XPVOTS.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 X=()=>{const{props:d}=p(),{page:n,instructor:t,customize:o}=d,s=g(n,"instructor"),i=m(s).filter((a,r)=>r%2===0),c=m(s).filter((a,r)=>r%2!==0);return e.jsxs(j,{customize:o,pageSection:s,containerClass:"py-20 overflow-y-hidden",contentClass:"relative",children:[e.jsxs("div",{className:"relative z-10 mx-auto mb-10 w-full text-center md:max-w-lg",children:[e.jsx("h2",{className:"mb-2 text-3xl font-bold sm:text-4xl",children:s==null?void 0:s.title}),e.jsx("p",{className:"text-muted-foreground",children:s==null?void 0:s.description})]}),e.jsxs("div",{className:"relative z-10 mx-auto grid w-full max-w-[964px] grid-cols-1 gap-8 md:grid-cols-3",children:[e.jsx("div",{className:"space-y-12",children:i==null?void 0:i.map((a,r)=>e.jsxs("div",{children:[e.jsx("div",{className:"bg-background shadow-card-md h-10 w-10 rounded p-2",children:e.jsx(l,{name:a.icon,className:"text-secondary-foreground h-6 w-6"})}),e.jsx("h3",{className:"pt-4 pb-2 font-semibold",children:a.title}),e.jsx("p",{className:"text-muted-foreground text-sm",children:a.description})]},r))}),e.jsxs(f,{className:"!shadow-card-hover space-y-6 p-5",children:[e.jsx("img",{className:"h-[190px] w-full rounded-lg object-cover object-top",src:(s==null?void 0:s.thumbnail)||"/assets/images/blank-image.jpg",alt:t?t.user.name:""}),t&&e.jsxs("div",{className:N("space-y-6",o&&"section-edit"),children:[o&&e.jsx(u,{asChild:!0,size:"icon",variant:"secondary",className:"absolute top-3 right-3 z-20",children:e.jsx(x,{href:route("settings.account",{tab:"profile-update"}),children:e.jsx(h,{className:"h-7 w-7"})})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"font-semibold",children:t.user.name}),e.jsx("p",{className:"text-muted-foreground text-sm",children:t.designation}),e.jsx("p",{className:"text-muted-foreground text-sm",children:t.biography})]}),e.jsx(b,{instructor:t,className:"py-0",buttonClass:"w-8 h-8"})]})]}),e.jsx("div",{className:"space-y-12",children:c==null?void 0:c.map((a,r)=>e.jsxs("div",{children:[e.jsx("div",{className:"bg-background shadow-card-md h-10 w-10 rounded p-2",children:e.jsx(l,{name:a.icon,className:"text-secondary-foreground h-6 w-6"})}),e.jsx("h3",{className:"pt-4 pb-2 font-semibold",children:a.title}),e.jsx("p",{className:"text-muted-foreground text-sm",children:a.description})]},r))})]}),e.jsx("div",{className:"after:pointer-events-none after:absolute after:top-1/2 after:left-1/2 after:h-[290px] after:w-[290px] after:-translate-x-1/2 after:-translate-y-1/2 after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[320px] after:content-['']"})]})};export{X as default};
|