@@ -40,7 +40,7 @@ const projects = [
4040 url: ' https://hackcuu.com' ,
4141 description: ' HackCUU 2017 MLH hackathon lead organizer.' ,
4242 image: await getImage ({ src: hackcuuImage , format: ' avif' }),
43- }
43+ },
4444]
4545
4646const navItems = [' Home' , ' Skills' , ' Projects' , ' Contact' ]
@@ -125,12 +125,12 @@ const socialNetworks = [
125125
126126<Layout title =" Jonas Perusquia Morales" >
127127
128- <header class =" fixed top-0 left-0 right-0 z-10 bg-grayblue-800 bg-opacity-90" >
128+ <header class =" fixed top-0 left-0 right-0 z-20 bg-grayblue-800 bg-opacity-90" >
129129 <nav class =" container mx-auto px-6 py-3" >
130- <ul class =" flex justify-center space-x-8 " >
130+ <ul class =" flex justify-center gap-6 " >
131131 { navItems .map ((item ) => (
132132 <li >
133- <a href = { ` #${item .toLowerCase ()} ` } class = " text-sm font-medium uppercase tracking-wider transition-colors text-grayblue-300 hover:text-blue-300" >
133+ <a href = { ` #${item .toLowerCase ()} ` } class = " text-sm font-light uppercase tracking-wider transition-colors text-grayblue-300 hover:text-blue-300" >
134134 { item }
135135 </a >
136136 </li >
@@ -139,8 +139,8 @@ const socialNetworks = [
139139 </nav >
140140 </header >
141141
142- <main class =" container mx-auto px-6 pt-20" >
143- <section id =" home" class =" py-20" >
142+ <main class =" container mx-auto px-6 pt-14 xs:pt- 20" >
143+ <section id =" home" class =" py-14 sm:py- 20" >
144144 <div class =" flex flex-col items-center lg:flex-row lg:justify-between" >
145145 <div class =" mb-8 text-center lg:mb-0 lg:text-left lg:w-1/2" >
146146 <h1 class =" mb-4 text-5xl font-medium" >Jonas Perusquia Morales</h1 >
@@ -161,37 +161,39 @@ const socialNetworks = [
161161 </div >
162162 </div >
163163 <div class =" mt-12 animate-bounce text-center" >
164- <span class =" material-symbols-rounded mx-auto !text-5xl text-blue-300 rotate-90" >chevron_right</span >
164+ <span class =" material-symbols-rounded mx-auto !text-5xl text-blue-300 rotate-90" >chevron_right</span >
165165 </div >
166166 </section >
167167
168- <section id =" skills" class =" py-20" >
168+ <section id =" skills" class =" py-14 sm:py- 20" >
169169 <h2 class =" mb-12 text-center text-3xl font-medium" >Skills & Expertise</h2 >
170170 <div class =" grid grid-cols-2 gap-8 md:grid-cols-4" >
171171 { skills .map ((skill ) => (
172- <div class = " rounded-lg bg-grayblue-800 p-6 text-center shadow-lg transition-transform duration-300 hover:scale-105 " >
173- <p class = " text-lg font-medium" >{ skill } </p >
172+ <div class = " rounded-lg bg-grayblue-800 p-6 text-center shadow-lg transition-all duration-300 hover:bg-slate-700 hover: scale-110 " >
173+ <p class = " text-lg text-center break-words hyphens-auto font-medium" >{ skill } </p >
174174 </div >
175175 ))}
176176 </div >
177177 </section >
178178
179- <section id =" projects" class =" py-20" >
179+ <section id =" projects" class =" py-14 sm:py- 20" >
180180 <h2 class =" mb-12 text-center text-3xl font-medium" >Featured Projects</h2 >
181181 <div class =" grid gap-8 md:grid-cols-2 lg:grid-cols-3" >
182182 {
183183 projects .map (project =>
184- <a href = { project .url } class = " rounded-lg bg-grayblue-800 p-6 shadow-lg transition-transform duration-300 hover: scale-105 " >
184+ <a href = { project .url } class = " rounded-lg bg-grayblue-800 p-6 shadow-lg scale-image " >
185185 <h3 class = " mb-3 text-xl font-semibold text-blue-300" >{ project .name } </h3 >
186- <p class = " text-grayblue-300" >{ project .description } </p >
187- <img src = { project .image .src } alt = { project .name } ></img >
186+ <p class = " text-grayblue-300 mb-6" >{ project .description } </p >
187+ <div class = " overflow-hidden aspect-video rounded-lg" >
188+ <img class = " duration-300 transition-all aspect-video" src = { project .image .src } alt = { project .name } ></img >
189+ </div >
188190 </a >
189191 )
190192 }
191193 </div >
192194 </section >
193195
194- <section id =" contact" class =" py-20" >
196+ <section id =" contact" class =" py-14 sm:py- 20" >
195197 <h2 class =" mb-12 text-center text-3xl text-grayblue-100 font-medium" >Get in Touch</h2 >
196198 <div class =" flex justify-center flex-wrap gap-8" >
197199 {
@@ -206,47 +208,7 @@ const socialNetworks = [
206208 </main >
207209
208210 <footer class =" bg-grayblue-800 py-6 text-center text-sm text-grayblue-400" >
209- <p >Made with < span class = " material-symbols-rounded text-red-500 [font-variation-settings:'FILL'_1] " >favorite</ span > from Chihuahua, Mexico.</p >
211+ <p >Made with ♥️ from Chihuahua, Mexico.</p >
210212 </footer >
211213
212- <style >
213- /* Add any global styles here */
214- html {
215- scroll-behavior: smooth;
216- }
217- </style >
218-
219- <script >
220- // Add any client-side JavaScript here
221- document.addEventListener('astro:page-load', () => {
222- // This runs on initial page load and on view transitions
223- const header = document.querySelector('header');
224- const navItems = document.querySelectorAll('nav a');
225-
226- const observerOptions = {
227- root: null,
228- rootMargin: '0px',
229- threshold: 0.7,
230- };
231-
232- const observer = new IntersectionObserver((entries) => {
233- entries.forEach((entry) => {
234- if (entry.isIntersecting) {
235- navItems.forEach((item) => {
236- if (item.getAttribute('href') === `#${entry.target.id}`) {
237- item.classList.add('text-blue-300');
238- } else {
239- item.classList.remove('text-blue-300');
240- }
241- });
242- }
243- });
244- }, observerOptions);
245-
246- document.querySelectorAll('section').forEach((section) => {
247- observer.observe(section);
248- });
249- });
250- </script >
251-
252214</Layout >
0 commit comments