-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path105.2eef5eca.chunk.js
More file actions
1 lines (1 loc) · 8.57 KB
/
105.2eef5eca.chunk.js
File metadata and controls
1 lines (1 loc) · 8.57 KB
1
"use strict";(self.webpackChunkfezcodex=self.webpackChunkfezcodex||[]).push([[105],{57543(e,t,a){a.d(t,{A:()=>o});a(9950);var s=a(7799),r=a(44414);const o=e=>{let{value:t,onChange:a,placeholder:o="Search the archives..."}=e;return(0,r.jsxs)("div",{className:"relative max-w-md mx-auto mb-8 md:mb-16 group",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-dnd-gold/20 blur-xl rounded-full opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("div",{className:"absolute left-5 text-dnd-gold",children:(0,r.jsx)(s.$,{size:24,weight:"duotone"})}),(0,r.jsx)("input",{type:"text",value:t,onChange:e=>a(e.target.value),placeholder:o,className:"w-full bg-[#1a0f0a] border-2 border-dnd-gold/50 rounded-full py-4 pl-14 pr-6 text-[#fcfaf2] font-arvo placeholder-dnd-gold/40 focus:outline-none focus:border-dnd-gold focus:ring-2 focus:ring-dnd-gold/20 transition-all duration-300 shadow-[0_4px_20px_rgba(0,0,0,0.5)]"}),(0,r.jsx)("div",{className:"absolute right-4 w-2 h-2 rounded-full bg-dnd-gold/30 animate-pulse"})]}),(0,r.jsx)("div",{className:"absolute -bottom-2 left-1/2 -translate-x-1/2 w-3/4 h-px bg-gradient-to-r from-transparent via-dnd-gold/20 to-transparent"})]})}},80966(e,t,a){a.r(t),a.d(t,{default:()=>b});var s=a(9950),r=a(53291),o=a(34272),d=a(54516),i=a(71930),l=a(57543),n=a(89837),c=a(17103),x=a.n(c),m=a(61327),p=a(45409),h=a(39886),u=a(44414);const b=function(){const{setBreadcrumbs:e}=(0,s.useContext)(d.M),[t,a]=(0,s.useState)([]),[c,b]=(0,s.useState)(null),[f,g]=(0,s.useState)("");(0,s.useEffect)(()=>{e([{label:"S&F",path:"/stories"},{label:"The Lore",path:"/stories/lore"},{label:"The Armory",path:"/stories/items"}])},[e]),(0,s.useEffect)(()=>{(async()=>{try{const e=await fetch("".concat("","/stories/meta-items/items.piml"));if(e.ok){const t=await e.text(),s=x().parse(t);a(s.items||[])}}catch(e){console.error("Failed to fetch data:",e)}})()},[]);const v=t.filter(e=>{const t=f.toLowerCase();return e.name.toLowerCase().includes(t)||e.type.toLowerCase().includes(t)||e.description.toLowerCase().includes(t)});return(0,u.jsxs)(i.A,{children:[(0,u.jsx)(n.A,{title:"The Armory | From Serfs and Frauds",description:"Inspect the artifacts and items of the Dungeons & Dragons campaign, From Serfs and Frauds.",keywords:["Fezcodex","d&d","dnd","from serfs and frauds","items","artifacts","weapons","loot"]}),(0,u.jsxs)("div",{className:"max-w-7xl mx-auto px-6 py-12",children:[(0,u.jsxs)("header",{className:"text-center mb-12 relative",children:[(0,u.jsx)("div",{className:"flex justify-center mb-6",children:(0,u.jsx)(p.v,{size:48,className:"text-dnd-gold-light drop-shadow-[0_0_8px_rgba(249,224,118,0.4)]",weight:"duotone"})}),(0,u.jsx)("h1",{className:"text-4xl md:text-8xl font-playfairDisplay italic font-black dnd-gold-gradient-text uppercase tracking-tighter mb-4 dnd-header-pulse",children:"The Armory"}),(0,u.jsx)("p",{className:"text-base md:text-xl font-arvo text-gray-400 max-w-2xl mx-auto uppercase tracking-widest opacity-60 mb-12 px-4",children:"Artifacts, curiosities, and tools of the trade."}),(0,u.jsx)(l.A,{value:f,onChange:g,placeholder:"Search artifacts by name, type, or description..."})]}),(0,u.jsx)("section",{className:"space-y-24",children:(0,u.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:[v.map((e,t)=>(0,u.jsx)(o.P.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.1*t},onClick:()=>b(e),className:"cursor-pointer",children:(0,u.jsxs)("div",{className:"block group relative p-8 dnd-fantasy-card text-center h-full min-h-[400px] flex flex-col items-center justify-center border-2 border-black/20 shadow-2xl overflow-hidden hover:scale-[1.02] transition-transform duration-300",children:[(0,u.jsx)("div",{className:"dnd-card-rune top-8 left-8 -rotate-12",children:"\u16a6"}),(0,u.jsx)("div",{className:"dnd-card-rune bottom-8 right-8 rotate-12",children:"\u16c9"}),(0,u.jsx)("div",{className:"dnd-ink-splatter w-8 h-8 top-1/4 right-8"}),(0,u.jsx)("div",{className:"dnd-ink-splatter w-4 h-4 bottom-1/3 left-12"}),(0,u.jsx)("div",{className:"absolute top-4 left-4 w-8 h-8 border-t-2 border-l-2 border-dnd-gold opacity-60 group-hover:opacity-100 transition-all duration-500"}),(0,u.jsx)("div",{className:"absolute top-4 right-4 w-8 h-8 border-t-2 border-r-2 border-dnd-gold opacity-60 group-hover:opacity-100 transition-all duration-500"}),(0,u.jsx)("div",{className:"absolute bottom-4 left-4 w-8 h-8 border-b-2 border-l-2 border-dnd-gold opacity-60 group-hover:opacity-100 transition-all duration-500"}),(0,u.jsx)("div",{className:"absolute bottom-4 right-4 w-8 h-8 border-b-2 border-r-2 border-dnd-gold opacity-60 group-hover:opacity-100 transition-all duration-500"}),(0,u.jsx)("div",{className:"mb-6 text-dnd-crimson group-hover:scale-110 transition-transform duration-500 relative z-10",children:e.type.toLowerCase().includes("potion")?(0,u.jsx)(m.j,{size:48,weight:"duotone"}):(0,u.jsx)(p.v,{size:48,weight:"duotone"})}),(0,u.jsx)("h3",{className:"text-3xl font-playfairDisplay italic font-black text-dnd-crimson uppercase tracking-tighter mb-2 relative z-10",children:e.name}),(0,u.jsx)("p",{className:"text-xs font-arvo text-black/60 uppercase tracking-widest mb-4 font-bold relative z-10",children:e.type}),(0,u.jsx)("div",{className:"h-px w-16 bg-dnd-crimson/20 mb-6"}),(0,u.jsx)("p",{className:"text-base font-arvo text-black/70 leading-relaxed line-clamp-4 relative z-10 px-4",children:e.description}),(0,u.jsx)("div",{className:"mt-6 opacity-0 group-hover:opacity-100 transition-opacity duration-300 text-xs font-mono text-dnd-crimson uppercase tracking-widest",children:"Inspect Item"})]})},t)),0===v.length&&(0,u.jsx)("div",{className:"col-span-full text-center py-12 text-white/60 font-arvo italic",children:"The armory is empty matching your query."})]})}),(0,u.jsx)(r.N,{children:c&&(0,u.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[(0,u.jsx)(o.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>b(null),className:"absolute inset-0 bg-black/80 backdrop-blur-sm"}),(0,u.jsxs)(o.P.div,{initial:{opacity:0,scale:.9,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:20},className:"relative w-full max-w-4xl bg-[#fcfaf2] border-2 border-dnd-gold shadow-2xl overflow-hidden dnd-fantasy-card p-6 md:p-12",children:[(0,u.jsx)("button",{onClick:()=>b(null),className:"absolute top-4 right-4 text-dnd-crimson/60 hover:text-dnd-crimson hover:rotate-90 transition-all duration-300 z-50",children:(0,u.jsx)(h.u,{size:32})}),(0,u.jsxs)("div",{className:"relative z-10 flex flex-col items-center text-center",children:[(0,u.jsx)("div",{className:"mb-4 text-dnd-crimson opacity-80",children:c.type.toLowerCase().includes("potion")?(0,u.jsx)(m.j,{size:48,weight:"duotone"}):(0,u.jsx)(p.v,{size:48,weight:"duotone"})}),(0,u.jsx)("h2",{className:"text-4xl md:text-6xl font-playfairDisplay italic font-black text-dnd-crimson uppercase tracking-tighter mb-2",children:c.name}),(0,u.jsx)("p",{className:"text-sm font-arvo text-dnd-gold-darker uppercase tracking-widest mb-6 font-bold",children:c.type}),(0,u.jsx)("div",{className:"dnd-mystic-divider mb-8 w-full"}),c.image&&(0,u.jsx)("div",{className:"mb-10 p-1 bg-white border border-dnd-gold/20 shadow-2xl w-full",children:(0,u.jsx)("img",{src:c.image,alt:c.name,className:"w-full h-auto object-contain border border-black/5"})}),(0,u.jsx)("p",{className:"text-xl font-arvo text-black/90 leading-relaxed mb-10 max-w-3xl",children:c.description}),(0,u.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 w-full max-w-2xl mx-auto",children:[(0,u.jsxs)("div",{className:"bg-black/5 p-4 border border-black/10 rounded-sm",children:[(0,u.jsx)("div",{className:"text-xs font-mono text-black/50 uppercase tracking-wider mb-1",children:"Current Owner"}),(0,u.jsx)("div",{className:"text-xl font-playfairDisplay font-bold text-dnd-crimson",children:c.owner})]}),(0,u.jsxs)("div",{className:"bg-black/5 p-4 border border-black/10 rounded-sm",children:[(0,u.jsx)("div",{className:"text-xs font-mono text-black/50 uppercase tracking-wider mb-1",children:"Origin"}),(0,u.jsx)("div",{className:"text-lg font-playfairDisplay font-bold text-dnd-text truncate",title:c.book,children:c.book})]})]})]}),(0,u.jsx)("div",{className:"absolute inset-0 pointer-events-none border-[16px] border-dnd-parchment opacity-50"}),(0,u.jsx)("div",{className:"dnd-ornate-corner dnd-ornate-corner-tl"}),(0,u.jsx)("div",{className:"dnd-ornate-corner dnd-ornate-corner-tr"}),(0,u.jsx)("div",{className:"dnd-ornate-corner dnd-ornate-corner-bl"}),(0,u.jsx)("div",{className:"dnd-ornate-corner dnd-ornate-corner-br"})]})]})})]})]})}}}]);