-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-9RFExJVy.js
More file actions
3 lines (2 loc) · 7.29 KB
/
Copy pathchunk-9RFExJVy.js
File metadata and controls
3 lines (2 loc) · 7.29 KB
1
2
3
import{N as k,r as l,R as S,j as e,L,b as _,G as z,ax as h,_ as T,A as G,m as M,X as A,aQ as C}from"../entries/pages.BZkyDMuN.js";import{o as P}from"./chunk-CJ5-m5uC.js";import{e as R}from"./chunk-DSfRf_WF.js";import{S as q}from"./chunk-D8YfSULr.js";import{B as I}from"./chunk-CxCYcf40.js";import"./chunk-BXl3LOEh.js";/* empty css */const c=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","sed","do","eiusmod","tempor","incididunt","ut","labore","et","dolore","magna","aliqua","ut","enim","ad","minim","veniam","quis","nostrud","exercitation","ullamco","laboris","nisi","ut","aliquip","ex","ea","commodo","consequat","duis","aute","irure","dolor","in","reprehenderit","in","voluptate","velit","esse","cillum","dolore","eu","fugiat","nulla","pariatur","excepteur","sint","occaecat","cupidatat","non","proident","sunt","in","culpa","qui","officia","deserunt","mollit","anim","id","est","laborum"],D=()=>{const d="Lorem Ipsum Generator",{addToast:g}=k(),[i,f]=l.useState(3),[s,b]=l.useState(!0),[o,j]=l.useState(""),m=()=>{let a=[];for(let n=0;n<i;n++){const N=Math.floor(Math.random()*5)+3;let p=[];for(let x=0;x<N;x++){const v=Math.floor(Math.random()*10)+5;let t=[];for(let u=0;u<v;u++){const y=c[Math.floor(Math.random()*c.length)];t.push(y)}t[0]=t[0].charAt(0).toUpperCase()+t[0].slice(1),p.push(t.join(" ")+".")}a.push(p.join(" "))}let r=a.join(`
`);s&&(r.startsWith("Lorem")||(r="Lorem ipsum dolor sit amet, consectetur adipiscing elit. "+r)),j(r)};S.useEffect(()=>{m()},[]);const w=()=>{navigator.clipboard.writeText(o).then(()=>{g({title:"Copied",message:"Placeholder text stored in clipboard."})})};return e.jsxs("div",{className:"min-h-screen bg-[#050505] text-white selection:bg-emerald-500/30 font-sans",children:[e.jsx(q,{title:"Lorem Ipsum Generator | Fezcodex",description:"Generate random placeholder text for your projects.",keywords:["Fezcodex","lorem ipsum","text generator","placeholder text","dummy text"]}),e.jsxs("div",{className:"mx-auto max-w-7xl px-6 py-24 md:px-12",children:[e.jsxs("header",{className:"mb-24",children:[e.jsxs(L,{to:"/apps",className:"group mb-12 inline-flex items-center gap-2 text-xs font-mono text-gray-500 hover:text-white transition-colors uppercase tracking-[0.3em]",children:[e.jsx(_,{weight:"bold",className:"transition-transform group-hover:-translate-x-1"}),e.jsx("span",{children:"Applications"})]}),e.jsx("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-12",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(I,{title:d,slug:"lorem",variant:"brutalist"}),e.jsx("p",{className:"text-xl text-gray-400 max-w-2xl font-light leading-relaxed",children:"Standardized filler protocol. Generate pseudo-Latin data blocks for structural layout verification."})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-12",children:[e.jsxs("div",{className:"relative border border-white/10 bg-white/[0.02] p-8 md:p-12 rounded-sm overflow-hidden group",children:[e.jsx("div",{className:"absolute inset-0 opacity-[0.03] pointer-events-none grayscale",children:e.jsx(z,{seed:d+i,className:"w-full h-full"})}),e.jsxs("div",{className:"relative z-10 space-y-8",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("label",{className:"font-mono text-[10px] text-gray-500 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(h,{weight:"fill"})," Paragraph_Count"]}),e.jsx("input",{type:"number",min:"1",max:"50",value:i,onChange:a=>f(parseInt(a.target.value)||1),className:"w-full bg-black/40 border border-white/10 rounded-sm p-4 font-mono text-xl text-white focus:border-emerald-500/50 outline-none transition-colors"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("label",{className:"font-mono text-[10px] text-gray-500 uppercase tracking-widest flex items-center gap-2",children:"Standard_Prefix"}),e.jsxs("button",{onClick:()=>b(!s),className:`w-full p-4 border rounded-sm flex items-center justify-between transition-all ${s?"bg-emerald-500/10 border-emerald-500 text-emerald-500":"bg-black/40 border-white/10 text-gray-400 hover:border-white/30"}`,children:[e.jsx("span",{className:"font-mono text-xs uppercase tracking-wider",children:'Start with "Lorem ipsum..."'}),s?e.jsx(R,{size:24,weight:"fill"}):e.jsx(P,{size:24})]})]})]}),e.jsxs("button",{onClick:m,className:"w-full group relative inline-flex items-center justify-center gap-4 px-10 py-6 bg-white text-black hover:bg-emerald-400 transition-all duration-300 font-mono uppercase tracking-widest text-sm font-black rounded-sm",children:[e.jsx(T,{weight:"bold",size:20,className:"group-hover:rotate-180 transition-transform duration-500"}),e.jsx("span",{children:"Generate Sequence"})]})]})]}),e.jsx(G,{children:o&&e.jsxs(M.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"relative group border border-emerald-500/20 bg-emerald-500/[0.02] p-8 md:p-12 rounded-sm overflow-hidden",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6 border-b border-emerald-500/10 pb-6",children:[e.jsxs("label",{className:"font-mono text-[10px] text-emerald-500 uppercase tracking-widest font-black flex items-center gap-2",children:[e.jsx("span",{className:"h-px w-4 bg-emerald-500/20"})," ","Output_Stream"]}),e.jsx("button",{onClick:w,className:"text-emerald-500 hover:text-white transition-colors",children:e.jsx(A,{size:24,weight:"bold"})})]}),e.jsx("div",{className:"font-serif text-lg leading-relaxed text-gray-300 whitespace-pre-wrap",children:o})]})})]}),e.jsxs("div",{className:"lg:col-span-4 space-y-8",children:[e.jsxs("div",{className:"border border-white/10 bg-white/[0.02] p-8 rounded-sm",children:[e.jsxs("h3",{className:"font-mono text-[10px] font-bold text-emerald-500 uppercase tracking-widest mb-10 flex items-center gap-2",children:[e.jsx(C,{weight:"fill"}),"Generator_Specs"]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"p-6 border border-white/5 bg-white/[0.01] rounded-sm",children:[e.jsx("span",{className:"font-mono text-[10px] text-gray-600 uppercase block mb-2",children:"Source_Dialect"}),e.jsx("p",{className:"text-white font-black uppercase tracking-tight",children:"Pseudo-Latin_V1"})]}),e.jsxs("div",{className:"p-6 border border-white/5 bg-white/[0.01] rounded-sm",children:[e.jsx("span",{className:"font-mono text-[10px] text-gray-600 uppercase block mb-2",children:"Word_Bank_Size"}),e.jsxs("p",{className:"text-white font-black uppercase tracking-tight",children:[c.length," Units"]})]})]})]}),e.jsxs("div",{className:"p-8 border border-white/10 bg-white/[0.01] rounded-sm flex items-start gap-4",children:[e.jsx(h,{size:24,className:"text-gray-700 shrink-0 mt-1"}),e.jsx("p",{className:"text-[10px] font-mono uppercase tracking-[0.2em] leading-relaxed text-gray-500",children:"Lorem Ipsum is industry-standard dummy text used to demonstrate the visual form of a document without the distraction of meaningful content."})]})]})]}),e.jsxs("footer",{className:"mt-32 pt-12 border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-6 text-gray-600 font-mono text-[10px] uppercase tracking-[0.3em]",children:[e.jsx("span",{children:"Fezcodex_Text_Synthesizer_v2.0"}),e.jsx("span",{className:"text-gray-800",children:"STREAM_STATUS // NOMINAL"})]})]})]})};export{D as default};