connection base prisma + postgres + login ok
This commit is contained in:
3
.next/static/chunks/02e8536809396536.css
Normal file
3
.next/static/chunks/02e8536809396536.css
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/070a78325e29fc80.js
Normal file
1
.next/static/chunks/070a78325e29fc80.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/0b0db8395d3fe8fd.js
Normal file
1
.next/static/chunks/0b0db8395d3fe8fd.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/0d48399cd7665c53.js
Normal file
1
.next/static/chunks/0d48399cd7665c53.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/14e10270b5f76fa2.js
Normal file
1
.next/static/chunks/14e10270b5f76fa2.js
Normal file
@@ -0,0 +1 @@
|
||||
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78445,e=>{"use strict";var t=e.i(59760);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:n,...d},u)=>(0,t.createElement)("svg",{ref:u,...l,width:r,height:r,stroke:e,strokeWidth:i?24*Number(a)/Number(r):a,className:s("lucide",o),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...n.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(c)?c:[c]])),i=(e,l)=>{let i=(0,t.forwardRef)(({className:i,...o},c)=>(0,t.createElement)(a,{ref:c,iconNode:l,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...o}));return i.displayName=r(e),i};e.s(["default",()=>i],78445)},12856,(e,t,s)=>{t.exports=e.r(96479)},41498,e=>{"use strict";let t=(0,e.i(78445).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],41498)},6746,e=>{"use strict";let t=(0,e.i(78445).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],6746)},72150,e=>{"use strict";var t=e.i(30064),s=e.i(41498),r=e.i(6746);let l=({currentPlan:e,onBack:l,onSelectPlan:a})=>(0,t.jsx)("div",{className:"min-h-screen bg-[#eef2ff] py-20 px-8",children:(0,t.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,t.jsxs)("button",{onClick:l,className:"flex items-center gap-2 text-slate-500 hover:text-blue-600 mb-12 font-bold transition-colors",children:[(0,t.jsx)(r.ArrowLeft,{size:20})," Retour"]}),(0,t.jsxs)("div",{className:"text-center mb-16",children:[(0,t.jsx)("h2",{className:"text-4xl font-black text-slate-900 mb-4",children:"Choisissez votre destin d'écrivain."}),(0,t.jsx)("p",{className:"text-slate-500",children:"Passez au plan supérieur pour libérer toute la puissance de l'IA."})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[{id:"free",name:"Gratuit",price:"0€",desc:"Idéal pour découvrir PlumeIA.",features:["10 actions IA / mois","1 projet actif","Bible du monde simple"]},{id:"pro",name:"Auteur Pro",price:"12€",desc:"Pour les écrivains sérieux.",features:["500 actions IA / mois","Projets illimités","Export Word & EPUB","Support prioritaire"],popular:!0},{id:"master",name:"Maître Plume",price:"29€",desc:"Le summum de l'écriture IA.",features:["Actions IA illimitées","Accès Gemini 3 Pro","Bible du monde avancée","Outils de révision avancés"]}].map(r=>(0,t.jsxs)("div",{className:`bg-white rounded-3xl p-8 border transition-all ${r.popular?"border-blue-500 shadow-2xl scale-105 z-10":"border-indigo-100 shadow-xl"}`,children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h4",{className:"text-xl font-bold text-slate-900 mb-2",children:r.name}),(0,t.jsxs)("div",{className:"text-4xl font-black text-slate-900 mb-2",children:[r.price,(0,t.jsx)("span",{className:"text-sm font-normal text-slate-400",children:"/mois"})]}),(0,t.jsx)("p",{className:"text-sm text-slate-500",children:r.desc})]}),(0,t.jsx)("ul",{className:"space-y-4 mb-10",children:r.features.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-center gap-3 text-sm text-slate-700",children:[(0,t.jsx)("div",{className:"text-blue-500 bg-blue-50 p-0.5 rounded-full",children:(0,t.jsx)(s.Check,{size:14})}),e]},r))}),(0,t.jsx)("button",{onClick:()=>a(r.id),className:`w-full py-4 rounded-2xl font-black transition-all ${r.id===e?"bg-slate-100 text-slate-400 cursor-default":r.popular?"bg-blue-600 text-white hover:bg-blue-700":"bg-slate-900 text-white hover:bg-slate-800"}`,children:r.id===e?"Plan Actuel":"Sélectionner"})]},r.id))})]})});var a=e.i(12856),i=e.i(18404);function o(){let e=(0,a.useRouter)(),{user:s}=(0,i.useAuthContext)();return(0,t.jsx)(l,{currentPlan:s?.subscription.plan||"free",onBack:()=>e.push(s?"/dashboard":"/"),onSelectPlan:()=>e.push(s?"/checkout":"/login")})}e.s(["default",()=>o],72150)}]);
|
||||
1
.next/static/chunks/1a59817cc31dbd7f.js
Normal file
1
.next/static/chunks/1a59817cc31dbd7f.js
Normal file
File diff suppressed because one or more lines are too long
39
.next/static/chunks/243eedfdf0191d5a.js
Normal file
39
.next/static/chunks/243eedfdf0191d5a.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/26b64173345909cf.js
Normal file
1
.next/static/chunks/26b64173345909cf.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/2d1ce1663f6952f0.js
Normal file
1
.next/static/chunks/2d1ce1663f6952f0.js
Normal file
File diff suppressed because one or more lines are too long
4
.next/static/chunks/2ec26efb5effde60.js
Normal file
4
.next/static/chunks/2ec26efb5effde60.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/2f95708884cc928a.js
Normal file
1
.next/static/chunks/2f95708884cc928a.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/342f8c662a90d061.js
Normal file
1
.next/static/chunks/342f8c662a90d061.js
Normal file
File diff suppressed because one or more lines are too long
2
.next/static/chunks/52427933b11d700a.js
Normal file
2
.next/static/chunks/52427933b11d700a.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/6eddc7a29ea4b1ec.js
Normal file
1
.next/static/chunks/6eddc7a29ea4b1ec.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/7dee21f4f59da1b4.js
Normal file
1
.next/static/chunks/7dee21f4f59da1b4.js
Normal file
@@ -0,0 +1 @@
|
||||
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44026,e=>{"use strict";let t=(0,e.i(78445).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],44026)},78445,e=>{"use strict";var t=e.i(59760);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:n="",children:o,iconNode:c,...d},u)=>(0,t.createElement)("svg",{ref:u,...a,width:r,height:r,stroke:e,strokeWidth:i?24*Number(l)/Number(r):l,className:s("lucide",n),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(o)?o:[o]])),i=(e,a)=>{let i=(0,t.forwardRef)(({className:i,...n},o)=>(0,t.createElement)(l,{ref:o,iconNode:a,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...n}));return i.displayName=r(e),i};e.s(["default",()=>i],78445)},12856,(e,t,s)=>{t.exports=e.r(96479)},11690,e=>{"use strict";let t=(0,e.i(78445).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],11690)},37143,e=>{"use strict";var t=e.i(30064),s=e.i(59760),r=e.i(18404),a=e.i(44026);let l=(0,e.i(78445).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var i=e.i(11690);let n=({onSuccess:e,onRegister:n})=>{let[o,c]=(0,s.useState)(""),[d,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(""),[h,p]=(0,s.useState)(!1),{login:f}=(0,r.useAuthContext)();async function b(t){t.preventDefault(),x(""),p(!0);try{await f(o,d),e()}catch(e){x(e.message||"Une erreur inattendue est survenue."),p(!1)}}return(0,t.jsx)("div",{className:"min-h-screen bg-slate-50 flex overflow-hidden font-sans text-slate-900 items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"w-full max-w-md bg-white rounded-2xl shadow-xl overflow-hidden p-8 animate-in fade-in zoom-in duration-300",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-black text-slate-900 mb-2",children:"Connexion"}),(0,t.jsx)("p",{className:"text-slate-500",children:"Bienvenue ! Connectez-vous à votre compte"})]}),m&&(0,t.jsxs)("div",{className:"mb-6 p-4 bg-red-50 border border-red-100 text-red-600 text-sm font-medium rounded-xl flex items-center gap-2 animate-in shake duration-300",children:[(0,t.jsx)(l,{size:18}),m]}),(0,t.jsxs)("form",{onSubmit:b,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{className:"text-xs font-black text-slate-500 uppercase tracking-widest ml-1",htmlFor:"email",children:"Email"}),(0,t.jsx)("input",{id:"email",type:"email",className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-medium transition-all",placeholder:"votre@email.com",value:o,onChange:e=>c(e.target.value),required:!0})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{className:"text-xs font-black text-slate-500 uppercase tracking-widest ml-1",htmlFor:"password",children:"Mot de passe"}),(0,t.jsx)("input",{id:"password",type:"password",className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:ring-2 focus:ring-blue-500 font-medium transition-all",placeholder:"••••••••",value:d,onChange:e=>u(e.target.value),required:!0})]}),(0,t.jsxs)("button",{type:"submit",className:"w-full bg-slate-900 text-white py-4 rounded-xl font-bold flex items-center justify-center gap-2 hover:bg-blue-600 transition-all shadow-xl disabled:opacity-50 mt-6",disabled:h,children:[h?(0,t.jsx)(a.Loader2,{className:"animate-spin"}):"Se connecter"," ",(0,t.jsx)(i.ArrowRight,{size:18})]})]}),(0,t.jsxs)("div",{className:"mt-8 text-center text-sm text-slate-500",children:["Pas encore de compte ?"," ",(0,t.jsx)("button",{onClick:n,className:"font-bold text-blue-600 hover:text-blue-800 transition-colors ml-1",children:"Créer un compte"})]})]})})};var o=e.i(12856);function c(){let e=(0,o.useRouter)();return(0,t.jsx)(n,{onSuccess:()=>e.push("/dashboard"),onRegister:()=>e.push("/signup")})}e.s(["default",()=>c],37143)}]);
|
||||
1
.next/static/chunks/7e431064c812a46a.js
Normal file
1
.next/static/chunks/7e431064c812a46a.js
Normal file
File diff suppressed because one or more lines are too long
3
.next/static/chunks/8214509c661073ff.js
Normal file
3
.next/static/chunks/8214509c661073ff.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/a56b0a8519201145.js
Normal file
1
.next/static/chunks/a56b0a8519201145.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/a6dad97d9634a72d.js
Normal file
1
.next/static/chunks/a6dad97d9634a72d.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/a6dad97d9634a72d.js.map
Normal file
1
.next/static/chunks/a6dad97d9634a72d.js.map
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/b882acfc29dfc10d.js
Normal file
1
.next/static/chunks/b882acfc29dfc10d.js
Normal file
File diff suppressed because one or more lines are too long
8
.next/static/chunks/baf4bf5c18ffa192.js
Normal file
8
.next/static/chunks/baf4bf5c18ffa192.js
Normal file
File diff suppressed because one or more lines are too long
2
.next/static/chunks/ca38dfad29c437c1.js
Normal file
2
.next/static/chunks/ca38dfad29c437c1.js
Normal file
File diff suppressed because one or more lines are too long
1
.next/static/chunks/fb9632df44fe5bfa.js
Normal file
1
.next/static/chunks/fb9632df44fe5bfa.js
Normal file
File diff suppressed because one or more lines are too long
4
.next/static/chunks/turbopack-c61e6754afd196ce.js
Normal file
4
.next/static/chunks/turbopack-c61e6754afd196ce.js
Normal file
File diff suppressed because one or more lines are too long
BIN
.next/static/media/02046ca7e906ed9f-s.78def622.woff2
Normal file
BIN
.next/static/media/02046ca7e906ed9f-s.78def622.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/0797a9ffe47acb65-s.a9cc7c2a.woff2
Normal file
BIN
.next/static/media/0797a9ffe47acb65-s.a9cc7c2a.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/1bffadaabf893a1e-s.7cd81963.woff2
Normal file
BIN
.next/static/media/1bffadaabf893a1e-s.7cd81963.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/248e1dc0efc99276-s.p.8a6b2436.woff2
Normal file
BIN
.next/static/media/248e1dc0efc99276-s.p.8a6b2436.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/2bbe8d2671613f1f-s.76dcb0b2.woff2
Normal file
BIN
.next/static/media/2bbe8d2671613f1f-s.76dcb0b2.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/2c55a0e60120577a-s.2a48534a.woff2
Normal file
BIN
.next/static/media/2c55a0e60120577a-s.2a48534a.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/5476f68d60460930-s.c995e352.woff2
Normal file
BIN
.next/static/media/5476f68d60460930-s.c995e352.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/6bbcb5b36acd717c-s.656fbe30.woff2
Normal file
BIN
.next/static/media/6bbcb5b36acd717c-s.656fbe30.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/7c2c7251ac640798-s.d6988a53.woff2
Normal file
BIN
.next/static/media/7c2c7251ac640798-s.d6988a53.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2
Normal file
BIN
.next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/9c72aa0f40e4eef8-s.18a48cbc.woff2
Normal file
BIN
.next/static/media/9c72aa0f40e4eef8-s.18a48cbc.woff2
Normal file
Binary file not shown.
BIN
.next/static/media/ad66f9afd8947f86-s.7a40eb73.woff2
Normal file
BIN
.next/static/media/ad66f9afd8947f86-s.7a40eb73.woff2
Normal file
Binary file not shown.
11
.next/static/msXsDwtlDxhrnfeF2dg3H/_buildManifest.js
Normal file
11
.next/static/msXsDwtlDxhrnfeF2dg3H/_buildManifest.js
Normal file
@@ -0,0 +1,11 @@
|
||||
self.__BUILD_MANIFEST = {
|
||||
"__rewrites": {
|
||||
"afterFiles": [],
|
||||
"beforeFiles": [],
|
||||
"fallback": []
|
||||
},
|
||||
"sortedPages": [
|
||||
"/_app",
|
||||
"/_error"
|
||||
]
|
||||
};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB()
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
1
.next/static/msXsDwtlDxhrnfeF2dg3H/_ssgManifest.js
Normal file
1
.next/static/msXsDwtlDxhrnfeF2dg3H/_ssgManifest.js
Normal file
@@ -0,0 +1 @@
|
||||
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
|
||||
Reference in New Issue
Block a user