-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcomponent---src-pages-dynamic-maker-js-c4a751e8319daa277f0e.js
1 lines (1 loc) · 5.92 KB
/
component---src-pages-dynamic-maker-js-c4a751e8319daa277f0e.js
1
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[105],{7254:function(e,t,a){"use strict";var r=a(9474);t.A=e=>{let{src:t,alt:a,className:l,width:n,height:s}=e;return r.createElement("img",{width:n||250,height:s||250,loading:"lazy",src:t,alt:a,className:l})}},1714:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return k}});var r=a(6783),l=a.n(r),n=a(8651),s=a.n(n),o=a(9474),i=a(2983),c=a(9980);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},m.apply(this,arguments)}var d=["cdnSuffix","cdnUrl","countryCode","style","svg"],x=function(e){var t=e.cdnSuffix,a=void 0===t?"svg":t,r=e.cdnUrl,l=void 0===r?"https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/":r,n=e.countryCode,s=e.style,i=e.svg,c=void 0!==i&&i,x=function(e,t){if(null==e)return{};var a,r,l={},n=Object.keys(e);for(r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,d);if("string"!=typeof n)return null;if(c){var f=""+l+n.toLowerCase()+"."+a;return(0,o.createElement)("img",Object.assign({},x,{src:f,style:m({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},s)}))}var g=n.toUpperCase().replace(/./g,(function(e){return String.fromCodePoint(e.charCodeAt(0)+127397)}));return(0,o.createElement)("span",Object.assign({role:"img"},x,{style:m({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},s)}),g)},f=a(5832),g=a(1875),h=a(4723),u=a(4739),v=a.n(u),p=a(7254),b=a(9443);var k=e=>{const{pageContext:t}=e,{maker:a,selfOrder:r}=t,n=(0,i.GR)("4281536561"),m=!0===r?a.sculpts:l()(a.sculpts,(e=>e.name));return o.createElement(g.A,null,o.createElement(h.A,{title:a.name,img:(e=>{const t=n.logos.nodes.find((t=>t.relativePath.includes(e)));return s()(t)?"/android-chrome-512x512.png":(0,f.c)(t)})(a.id).src}),o.createElement("div",{className:"mt-6"},[{label:"Home",link:"/"}].map((e=>o.createElement(o.Fragment,null,o.createElement(i.N_,{to:e.link,className:(0,b.A)("text-sm font-medium text-slate-900/60 underline transition-colors","hover:text-slate-800/60","dark:text-slate-50/80","dark:hover:text-white/90")},e.label)," ","/"," ")))),o.createElement("div",{className:"my-6 flex items-center justify-between"},o.createElement("div",{className:"flex items-center gap-x-4 text-2xl"},o.createElement("h2",{className:"font-bold"},a.name),a.nationality&&o.createElement(x,{className:"emojiFlag text-base leading-4",countryCode:`${a.nationality.toUpperCase()}`,svg:!0})),o.createElement("div",{className:"flex items-center gap-x-2"},o.createElement("span",{className:"text-xs font-semibold uppercase max-lg:hidden"},"External links :"),(a.website||a.instagram||a.discord)&&o.createElement("ul",{className:"-ml-1 flex list-none flex-row flex-wrap"},a.artisanCollector&&o.createElement("li",{className:"flex h-auto px-1"},o.createElement("a",{href:a.artisanCollector,title:"Artisan Collector",target:"_blank",rel:"noopener noreferrer",className:"text-lg text-slate-900/80 transition-colors hover:text-slate-900/100 dark:text-white/80 dark:hover:text-white/100"},o.createElement(v(),{className:"svg-inline--fa fa-w-16"}))),a.website&&o.createElement("li",{className:"flex h-auto px-1"},o.createElement("a",{href:a.website,target:"_blank",rel:"noopener noreferrer",className:"text-lg text-slate-900/80 transition-colors hover:text-slate-900/100 dark:text-white/80 dark:hover:text-white/100"},o.createElement(c.g,{icon:["fas","globe"]}))),a.instagram&&o.createElement("li",{className:"flex h-auto px-1"},o.createElement("a",{href:a.instagram,target:"_blank",rel:"noopener noreferrer",className:"text-lg text-slate-900/80 transition-colors hover:text-slate-900/100 dark:text-white/80 dark:hover:text-white/100"},o.createElement(c.g,{icon:["fab","instagram"]}))),a.discord&&o.createElement("li",{className:"flex h-auto px-1"},o.createElement("a",{href:a.discord,target:"_blank",rel:"noopener noreferrer",className:"text-lg text-slate-900/80 transition-colors hover:text-slate-900/100 dark:text-white/80 dark:hover:text-white/100"},o.createElement(c.g,{icon:["fab","discord"]}))),a.src&&o.createElement("li",{className:"flex h-auto px-1"},o.createElement("a",{href:a.src,target:"_blank",rel:"noopener noreferrer",className:"text-lg text-slate-900/80 transition-colors hover:text-slate-900/100 dark:text-white/80 dark:hover:text-white/100"},o.createElement(c.g,{icon:["fas","file"]})))))),o.createElement("ul",{className:"grid grid-cols-1 gap-2 md:grid-cols-3 lg:grid-cols-4 lg:gap-4 xl:grid-cols-5"},m.map((e=>o.createElement("li",{key:e.id,className:"flex flex-col"},o.createElement(i.N_,{to:e.link,className:(0,b.A)("block w-full overflow-hidden rounded-md bg-white shadow-md transition","hover:border-slate-400/80 hover:shadow-lg","dark:border dark:border-slate-600/50 dark:bg-slate-700 dark:text-slate-200 dark:shadow-none")},o.createElement("div",{className:"h-[250px] border-b border-slate-200 bg-white dark:border-b-2 dark:border-slate-600"},o.createElement(p.A,{src:e.previewImg,className:"h-full w-full object-cover",alt:`${a.name} - ${e.name}`})),o.createElement("div",{className:"p-4 text-center font-bold"},o.createElement("div",{className:"text-sm"},e.name))))))))}},4739:function(e,t,a){var r=a(9474);function l(e){return r.createElement("svg",e,[r.createElement("style",{type:"text/css",key:0}),r.createElement("polygon",{fill:"currentColor",points:"305.9,416.3 530.1,543.6 434.8,599.4 391.3,573.1 441.7,544.4 306,467.3 169.1,546 305.6,623.5 \n\t345,601 388.5,627.2 305.8,674.6 81.7,543.6 305.9,416.3 ",key:1}),r.createElement("path",{fill:"currentColor",d:"M547.5,253.6L305.9,117L64.3,253.6l-2,1.1v0.2v260.9l44.3-23.3v-69.7l199.3-112.7l199.3,112.7v69.7l44.3,23.3\n\tV397v0V255v-0.2L547.5,253.6z M505.2,372L305.9,259.3L106.6,372v-89.4l201-113.7l197.5,111.7V372z",key:2})])}l.defaultProps={version:"1.1",id:"_x30_",x:"0px",y:"0px",viewBox:"0 0 612 792",style:{enableBackground:"new 0 0 612 792"},xmlSpace:"preserve"},e.exports=l,l.default=l}}]);