2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{d as k,c as o,t as c,g as v,b as t,o as s,E as T,u as $,m as E,f as i,e as _,F as m,r as b,i as p,q as z}from"./index-CzwJBVIC.js";import{_ as f,p as w}from"./index-8GqMb-ax.js";import{u as P}from"./uploadUrl-CyxyoWKj.js";const O={class:"section-title"},N={key:0,class:"en-title"},A={key:1,class:"subtitle"},R=k({__name:"SectionTitle",props:{title:{},enTitle:{},subtitle:{}},setup(r){return(l,n)=>(s(),o("div",O,[r.enTitle?(s(),o("p",N,c(r.enTitle),1)):v("",!0),t("h2",null,c(r.title),1),r.subtitle?(s(),o("p",A,c(r.subtitle),1)):v("",!0)]))}}),I=f(R,[["__scopeId","data-v-68532efb"]]),V={class:"culture-card-icon",viewBox:"0 0 64 64",width:"40",height:"40","aria-hidden":"true",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L={key:0,stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"},Z={key:1,stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"},j={key:2,stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round",d:"M32 14 48 32 32 50 16 32 32 14z"},B={key:3,stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"},F={key:4,cx:"32",cy:"32",r:"18",stroke:"currentColor","stroke-width":"1.75"},D=k({__name:"CultureCardIcon",props:{type:{}},setup(r){return(l,n)=>(s(),o("svg",V,[r.type==="vision"?(s(),o("g",L,[...n[0]||(n[0]=[t("circle",{cx:"32",cy:"32",r:"20"},null,-1),t("ellipse",{cx:"32",cy:"32",rx:"20",ry:"8"},null,-1),t("path",{d:"M12 32h40M32 12v40"},null,-1)])])):r.type==="mission"?(s(),o("g",Z,[...n[1]||(n[1]=[T('<circle cx="32" cy="32" r="22" data-v-6522fec0></circle><g transform="translate(32,32)" data-v-6522fec0><g transform="translate(0,-12)" data-v-6522fec0><circle cy="-4" r="3.5" data-v-6522fec0></circle><path d="M0 0v9M-5 9h10" data-v-6522fec0></path></g><g transform="rotate(120) translate(0,-12)" data-v-6522fec0><circle cy="-4" r="3.5" data-v-6522fec0></circle><path d="M0 0v9M-5 9h10" data-v-6522fec0></path></g><g transform="rotate(240) translate(0,-12)" data-v-6522fec0><circle cy="-4" r="3.5" data-v-6522fec0></circle><path d="M0 0v9M-5 9h10" data-v-6522fec0></path></g></g>',2)])])):r.type==="values"?(s(),o("path",j)):r.type==="spirit"?(s(),o("g",B,[...n[2]||(n[2]=[t("path",{fill:"none",d:"M32 10c-9 0-14 7-14 15 0 6 3 11 7 13v3h14v-3c4-2 7-7 7-13 0-8-5-15-14-15z"},null,-1),t("path",{fill:"none","stroke-width":"1.5",d:"M32 23c-2-1.8-5-.6-5 2 0 1.8 2 3.5 5 6 3-2.5 5-4.2 5-6 0-2.6-3-3.8-5-2z"},null,-1),t("path",{d:"M26 42h12M28 46h8"},null,-1)])])):(s(),o("circle",F))]))}}),U=f(D,[["__scopeId","data-v-6522fec0"]]),W={class:"about-page"},q={class:"page-banner"},H={class:"container page-banner-content"},K={class:"section"},Y={class:"container"},G={key:0,class:"intro-content"},J={class:"section",style:{background:"@gray-50"}},Q={class:"container"},X={class:"culture-grid"},tt={class:"culture-card__icon-ring","aria-hidden":"true"},et={class:"culture-card__title"},ot={class:"culture-card__en"},st={class:"culture-card__desc"},nt={class:"section"},rt={class:"container"},ct={class:"workshop-grid"},at={class:"workshop-info"},it=k({__name:"AboutPage",setup(r){const{t:l,locale:n}=$(),u=p(null),g=p([]),y=p([]);function M(a){return a?{backgroundImage:`url(${P(a)})`,backgroundSize:"cover",backgroundPosition:"center"}:{backgroundColor:"#e5e7eb"}}const C={vision:"VISION",mission:"MISSION",values:"CORE VALUE",spirit:"SPIRIT"};function S(a){return C[a]??""}return E(async()=>{try{const[a,h]=await Promise.all([w.getAboutList(),w.getWorkshops()]),e=a.data||[];u.value=e.find(d=>d.sectionType==="introduction"),g.value=e.filter(d=>["vision","mission","values","spirit"].includes(d.sectionType)).sort((d,x)=>(d.sortOrder??0)-(x.sortOrder??0)),y.value=h.data||[]}catch{}}),(a,h)=>(s(),o("div",W,[t("section",q,[h[0]||(h[0]=t("div",{class:"page-banner-overlay"},null,-1)),t("div",H,[t("h1",null,c(i(l)("about.title")),1)])]),t("section",K,[t("div",Y,[_(I,{title:i(l)("about.introduction"),enTitle:"COMPANY PROFILE"},null,8,["title"]),u.value?(s(),o("div",G,[t("p",null,c(i(n)==="zh"?u.value.contentZh:u.value.contentEn),1)])):v("",!0)])]),t("section",J,[t("div",Q,[t("div",X,[(s(!0),o(m,null,b(g.value,e=>(s(),o("div",{key:e.aboutId,class:"culture-card card"},[t("div",tt,[_(U,{type:e.sectionType},null,8,["type"])]),t("h3",et,c(i(n)==="zh"?e.titleZh:e.titleEn),1),t("p",ot,c(S(e.sectionType)),1),t("p",st,c(i(n)==="zh"?e.contentZh:e.contentEn),1)]))),128))])])]),t("section",nt,[t("div",rt,[_(I,{title:i(l)("about.workshop"),enTitle:"WORKSHOP"},null,8,["title"]),t("div",ct,[(s(!0),o(m,null,b(y.value,e=>(s(),o("div",{key:e.workshopId,class:"workshop-card card"},[t("div",{class:"workshop-img",style:z(M(e.imagePath))},null,4),t("div",at,[t("h3",null,c(i(n)==="zh"?e.nameZh:e.nameEn),1),t("p",null,c(i(n)==="zh"?e.descriptionZh:e.descriptionEn),1)])]))),128))])])])]))}}),ht=f(it,[["__scopeId","data-v-0f102983"]]);export{ht as default};
|