@@ -7,6 +7,7 @@ import PensionSimulator from './components/PensionSimulator';
77import PricingSection from './components/PricingSection' ;
88import FAQSection from './components/FAQSection' ;
99import Footer from './components/Footer' ;
10+ import Link from 'next/link' ;
1011
1112// Valor UF actual (se podría actualizar con una API en producción)
1213const UF_VALUE = 39000 ;
@@ -86,59 +87,36 @@ export default function Home() {
8687 const handleCalculate = ( ) => {
8788 if ( ! saldo || isNaN ( Number ( saldo ) ) ) return ;
8889 setIsCalculating ( true ) ;
89- setResult ( null ) ; // Oculta el resultado anterior mientras calcula
90+ setResult ( null ) ;
9091 setTimeout ( ( ) => {
9192 setResult ( calculateTotalPension ( Number ( saldo ) ) ) ;
9293 setIsCalculating ( false ) ;
9394 } , 3000 ) ;
9495 } ;
9596
9697 return (
97- < div className = "min-h-screen w-full bg-cover bg-center flex flex-col items-center justify-center" style = { { backgroundImage : 'url(/bg-hero.png)' } } >
98- < div className = "mt-8 bg-white rounded-3xl shadow-2xl px-8 py-10 max-w-lg w-full flex flex-col items-center border-2 border-gray-200" style = { { minHeight : 420 } } >
98+ < div className = "min-h-screen w-full bg-cover bg-center flex flex-col items-center justify-center" style = { { backgroundImage : 'url(/bg-hero.png)' , backgroundColor : 'rgba(255, 255, 255, 0.7)' , backgroundBlendMode : 'overlay' } } >
99+ < div className = "mt-8 bg-white rounded-3xl shadow-2xl px-12 py-16 max-w-2xl w-full flex flex-col items-center border-2 border-gray-200" >
99100 { /* Header */ }
100- < div className = "mb-6 " >
101- < span className = "text-3xl font-bold text-gray-700 mr-1" > Me</ span >
102- < span className = "text-3xl font-bold text-orange-400" > Jubilo</ span >
101+ < div className = "mb-8 " >
102+ < span className = "text-4xl font-bold text-gray-700 mr-1" > Me</ span >
103+ < span className = "text-4xl font-bold text-orange-400" > Jubilo</ span >
103104 </ div >
104105 { /* Main Title */ }
105- < h1 className = "text-4xl md:text-5xl font-bold text-center text-gray-900 mb-2 " >
106- Ya quieres < span className = "text-orange-400" > jubilar </ span > ?
106+ < h1 className = "text-5xl md:text-6xl font-bold text-center text-gray-900 mb-6 " >
107+ Toma el control de tus ahorros
107108 </ h1 >
108109 { /* Subtext */ }
109- < p className = "text-lg text-center text-gray-700 mb-6 " >
110- Descubre con cuánto $$ < br /> podrías jubilar < span className = "font-bold" > HOY </ span > :
110+ < p className = "text-2xl text-center text-gray-700 mb-10 " >
111+ Renta más. Paga menos comisión. Jubila mejor.
111112 </ p >
112- { /* Input and Button */ }
113- < input
114- type = "text"
115- placeholder = "Saldo AFP"
116- value = { saldo }
117- onChange = { e => {
118- const value = e . target . value . replace ( / [ ^ 0 - 9 ] / g, '' ) ;
119- setSaldo ( value ) ;
120- } }
121- className = "w-full max-w-xs px-4 py-3 mb-4 border border-gray-400 rounded-lg text-center text-lg focus:outline-none focus:ring-2 focus:ring-blue-400 placeholder:text-gray-700 text-gray-700"
122- />
123- < button
124- className = "w-full max-w-xs bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 rounded-full text-lg shadow-md transition-colors flex items-center justify-center mb-2"
125- onClick = { handleCalculate }
113+ { /* Button */ }
114+ < Link
115+ href = "/entra"
116+ className = "w-full max-w-md bg-blue-600 hover:bg-blue-700 text-white font-bold py-4 rounded-full text-xl shadow-md transition-colors flex items-center justify-center"
126117 >
127- Quiero saber < span className = "ml-2" > 👀</ span >
128- </ button >
129- { /* Result Box o Calculando */ }
130- { isCalculating ? (
131- < CalculandoScreen />
132- ) : result && (
133- < div className = "mt-6 w-full max-w-xs bg-blue-50 border-2 border-blue-200 rounded-2xl p-5 text-center shadow-lg animate-fade-in" >
134- < h2 className = "text-xl font-bold text-blue-900 mb-2" > ¡Tu pensión estimada!</ h2 >
135- < div className = "text-lg text-gray-700 mb-1 flex justify-between" > < span > Renta Vitalicia:</ span > < span className = "font-semibold" > ${ result . rentaVitalicia . toLocaleString ( 'es-CL' ) } </ span > </ div >
136- < div className = "text-lg text-gray-700 mb-1 flex justify-between" > < span > Seguro Social:</ span > < span className = "font-semibold" > ${ result . seguroSocial . toLocaleString ( 'es-CL' ) } </ span > </ div >
137- < div className = "text-lg text-gray-700 mb-1 flex justify-between" > < span > PGU:</ span > < span className = "font-semibold" > ${ result . pgu . toLocaleString ( 'es-CL' ) } </ span > </ div >
138- < hr className = "my-2 border-blue-200" />
139- < div className = "text-lg font-bold text-blue-800 flex justify-between" > < span > Total:</ span > < span > ${ result . total . toLocaleString ( 'es-CL' ) } </ span > </ div >
140- </ div >
141- ) }
118+ Descubre cómo
119+ </ Link >
142120 </ div >
143121 </ div >
144122 ) ;
0 commit comments