PageSourceSearch

https://cdn.photogpt.io/photogpt/public/_nuxt/DTUBZZk52.js

js photogpt.io collected 2026-10-02 15:21:46 UTC 8,210 bytes, 1 lines download raw bytes

1import{$n as e,Cr as t,Vn as n,cn as r,dn as i,er as a,fn as o,gn as s,hn as c,ln as l,mn as ee,nn as u,un as d,vn as f,yr as p,zn as m}from"./CN5n7lzd.js";import{d as h,u as g}from"./DHqVTvkC.js";import{t as te}from"./CUPYd_NG.js";import{i as ne}from"./Da5lF777.js";import{_t as re,i as ie}from"#entry";import{t as ae}from"./CVnxWUl_2.js";import"./DT8NV1Kd2.js";import{t as oe}from"./UoGKl4e12.js";var _={class:`bg-white dark:bg-gray-900 min-h-screen`},se={key:0,class:`py-6`},ce={class:`container mx-auto px-4 sm:px-6 lg:px-8`},le={class:`grid sm:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-8`},ue={class:`bg-white dark:bg-gray-800 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 overflow-hidden group-hover:scale-[1.02]`},de={key:0,class:`aspect-[120/63] overflow-hidden`},fe=[`src`,`alt`],v={class:`p-6`},y={class:`flex flex-wrap items-center gap-2 mb-3`},b={class:`text-gray-500 dark:text-gray-400 text-sm`},x={class:`font-heading text-xl font-bold text-gray-900 dark:text-white mb-3 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors line-clamp-2`},S={class:`text-gray-600 dark:text-gray-300 mb-4 line-clamp-2`},C={class:`flex flex-col gap-3`},w={class:`flex items-center gap-3`},T=[`src`,`alt`],E={class:`flex-1 min-w-0`},D={class:`text-sm font-medium text-gray-900 dark:text-white truncate`},O={class:`text-xs text-gray-500 dark:text-gray-400 truncate`},k={key:0,class:`flex flex-wrap gap-2`},A={class:`py-6`},j={class:`container mx-auto px-4 sm:px-6 lg:px-8`},M={class:`flex flex-col sm:flex-row sm:items-center sm:justify-between mb-8`},N={class:`font-heading text-xl sm:text-2xl font-bold text-gray-900 dark:text-white mb-4 sm:mb-0`},P={class:`grid sm:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-8 mb-12`},F={class:`bg-white dark:bg-gray-800 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-300 overflow-hidden group-hover:scale-[1.02]`},I={key:0,class:`aspect-[120/63] overflow-hidden`},L=[`src`,`alt`],R={class:`p-6`},z={class:`flex flex-wrap items-center gap-2 mb-3`},B={class:`text-gray-500 dark:text-gray-400 text-sm`},V={class:`text-gray-500 dark:text-gray-400 text-sm`},pe={class:`font-heading text-base font-bold text-gray-900 dark:text-white mb-3 transition-colors line-clamp-2`},me={class:`text-sm text-gray-600 dark:text-gray-300 mb-4 line-clamp-2`},he={class:`flex flex-col gap-3`},ge={class:`flex items-center gap-3`},_e=[`src`,`alt`],ve={class:`flex-1 min-w-0`},ye={class:`text-sm font-medium text-gray-900 dark:text-white truncate`},be={class:`text-xs text-gray-500 dark:text-gray-400 truncate`},xe={key:0,class:`flex flex-wrap gap-2`},Se={key:0,class:`flex flex-col sm:flex-row items-center justify-between gap-4`},Ce={class:`flex items-center gap-2 mx-auto`},we={class:`hidden sm:flex items-center gap-1`},Te={key:1,class:`px-2 text-gray-400`},Ee={key:2,class:`px-2 text-gray-400`},H=6,U=f({__name:`index`,async setup(f){let U,W,G=r(()=>({title:`Blog - PhotoGPT`,description:`Discover tips, guides, and the latest news on AI image generation in the PhotoGPT Blog. Master photo editing and unleash your creativity.`,keywords:`PhotoGPT blog, AI image generation tips, photo editing tutorials, creative design with AI, image generator insights.`})),De=g(),Oe=h(),K=r(()=>{let e=Number.parseInt(De.query.page)||1;return Math.max(1,e)}),{data:q}=([U,W]=e(()=>ne(`blog-posts`,()=>oe(`blog`).order(`date`,`DESC`).all())),U=await U,W(),U),J=r(()=>K.value===1&&q.value?.filter(e=>e.featured&&!e.draft)||[]),Y=r(()=>q.value?.filter(e=>!e.featured&&!e.draft)||[]),X=r(()=>Math.ceil(Y.value.length/H)),ke=r(()=>{let e=(K.value-1)*H,t=e+H;return Y.value.slice(e,t)});function Z(e){e>=1&&e<=X.value&&Oe.push({query:{page:e.toString()}})}function Ae(){K.value<X.value&&Z(K.value+1)}function je(){K.value>1&&Z(K.value-1)}function Q(e){return new Date(e).toLocaleDateString(`en-US`,{year:`numeric`,month:`long`,day:`numeric`})}let $=r(()=>{let e=[],t=Math.max(1,K.value-2),n=Math.min(X.value,t+5-1);n-t+1<5&&(t=Math.max(1,n-5+1));for(let r=t;r<=n;r++)e.push(r);return e});return te({title:G.value.title,meta:[{name:`description`,content:G.value.description},{name:`keywords`,content:G.value.keywords}],link:[{rel:`canonical`,href:`https://photogpt.io/blog`}]}),(e,r)=>{let f=re,h=ie,g=ae;return m(),o(`div`,_,[r[8]||(r[8]=ee(`<section class="relative bg-gradient-to-br pb-8 pt-12"><div class="container mx-auto px-4 sm:px-6 lg:px-8"><div class="max-w-4xl mx-auto text-center"><h1 class="font-heading text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-gray-900 dark:text-white mb-6"> PhotoGPT <span class="text-brand-500">Blog</span></h1><p class="text-base text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto"> Explore AI-powered image tutorials and tips, and learn to use PhotoGPT for design, marketing, and creative projects. </p></div></div></section>`,1)),p(J).length>0&&p(K)===1?(m(),o(`section`,se,[l(`div`,ce,[r[3]||(r[3]=l(`h2`,{class:`font-heading text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white mb-8 text-center`},` Featured Articles `,-1)),l(`div`,le,[(m(!0),o(u,null,n(p(J),e=>(m(),o(`article`,{key:e.path,class:`group cursor-pointer`},[s(f,{to:e.path,class:`block`},{default:a(()=>[l(`div`,ue,[e.thumbnail?(m(),o(`div`,de,[l(`img`,{src:e.thumbnail,alt:e.title,class:`w-full h-full object-cover group-hover:scale-110 transition-transform duration-300`},null,8,fe)])):i(``,!0),l(`div`,v,[l(`div`,y,[r[2]||(r[2]=l(`span`,{class:`bg-blue-100 dar
1k:bg-blue-900 text-blue-800 dark:text-blue-200 px-3 py-1 rounded-full text-sm font-medium`},` Featured `,-1)),l(`span`,b,t(Q(e.date)),1)]),l(`h3`,x,t(e.title),1),l(`p`,S,t(e.description),1),l(`div`,C,[l(`div`,w,[e.author_avatar?(m(),o(`img`,{key:0,src:e.author_avatar,alt:e.author_name,class:`w-8 h-8 rounded-full object-cover`},null,8,T)):i(``,!0),l(`div`,E,[l(`p`,D,t(e.author_name),1),l(`p`,O,t(e.read_minutes)+` min read `,1)])]),e.tags?(m(),o(`div`,k,[(m(!0),o(u,null,n(e.tags.slice(0,3),e=>(m(),o(`span`,{key:e,class:`bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 px-2 py-1 rounded-md text-xs font-medium`},t(e),1))),128))])):i(``,!0)])])])]),_:2},1032,[`to`])]))),128))])])])):i(``,!0),l(`section`,A,[l(`div`,j,[l(`div`,M,[l(`h2`,N,t(p(K)===1?`Latest Articles`:`Articles - Page ${p(K)}`),1)]),l(`div`,P,[(m(!0),o(u,null,n(p(ke),e=>(m(),o(`article`,{key:e.path,class:`group cursor-pointer`},[s(f,{to:e.path,class:`block`},{default:a(()=>[l(`div`,F,[e.thumbnail?(m(),o(`div`,I,[l(`img`,{src:e.thumbnail,alt:e.title,class:`w-full h-full object-cover group-hover:scale-110 transition-transform duration-300`},null,8,L)])):i(``,!0),l(`div`,R,[l(`div`,z,[l(`span`,B,t(Q(e.date)),1),r[4]||(r[4]=l(`span`,{class:`text-gray-400 dark:text-gray-500`},`•`,-1)),l(`span`,V,t(e.read_minutes)+` min read `,1)]),l(`h3`,pe,t(e.title),1),l(`p`,me,t(e.description),1),l(`div`,he,[l(`div`,ge,[e.author_avatar?(m(),o(`img`,{key:0,src:e.author_avatar,alt:e.author_name,class:`w-8 h-8 rounded-full object-cover`},null,8,_e)):i(``,!0),l(`div`,ve,[l(`p`,ye,t(e.author_name),1),l(`p`,be,t(e.author_job),1)])]),e.tags?(m(),o(`div`,xe,[(m(!0),o(u,null,n(e.tags.slice(0,3),e=>(m(),o(`span`,{key:e,class:`bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 px-2 py-1 rounded-md text-xs font-medium`},t(e),1))),128))])):i(``,!0)])])])]),_:2},1032,[`to`])]))),128))]),p(X)>1?(m(),o(`div`,Se,[l(`nav`,Ce,[s(h,{disabled:p(K)===1,variant:`outline`,onClick:je},{default:a(()=>[...r[5]||(r[5]=[c(` Previous `,-1)])]),_:1},8,[`disabled`]),l(`div`,we,[p($)[0]>1?(m(),d(h,{key:0,onClick:r[0]||(r[0]=e=>Z(1))},{default:a(()=>[...r[6]||(r[6]=[c(` 1 `,-1)])]),_:1})):i(``,!0),p($)[0]>2?(m(),o(`span`,Te,`...`)):i(``,!0),(m(!0),o(u,null,n(p($),e=>(m(),d(h,{key:e,variant:e===p(K)?`solid`:`ghost`,size:`md`,class:`w-8 justify-center`,onClick:t=>Z(e)},{default:a(()=>[c(t(e),1)]),_:2},1032,[`variant`,`onClick`]))),128)),p($)[p($).length-1]<p(X)-1?(m(),o(`span`,Ee,`...`)):i(``,!0),p($)[p($).length-1]<p(X)?(m(),d(h,{key:3,onClick:r[1]||(r[1]=e=>Z(p(X)))},{default:a(()=>[c(t(p(X)),1)]),_:1})):i(``,!0)]),s(h,{disabled:p(K)===p(X),variant:`outline`,onClick:Ae},{default:a(()=>[...r[7]||(r[7]=[c(` Next `,-1)])]),_:1},8,[`disabled`])])])):i(``,!0)])]),s(g)])}}});
1export{U as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.