Skip to content

Commit 55d569f

Browse files
authored
Merge pull request #24 from jonaspm/dev
minor tweaks
2 parents d4dbfbb + f60a486 commit 55d569f

File tree

5 files changed

+39
-59
lines changed

5 files changed

+39
-59
lines changed

bun.lockb

4.28 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"astro": "astro"
1010
},
1111
"dependencies": {
12-
"@types/react": "^18.3.4",
13-
"@types/react-dom": "^18.3.0",
14-
"astro": "^4.14.5",
12+
"astro": "4.15.1",
1513
"material-symbols": "^0.22.2"
1614
},
1715
"devDependencies": {

src/pages/index.astro

Lines changed: 18 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -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
4646
const 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>

src/styles/global.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44
@tailwind components;
55
@tailwind utilities;
66
@import 'material-symbols/index.css';
7+
8+
html {
9+
scroll-behavior: smooth;
10+
}
11+
12+
.scale-image:hover {
13+
& img {
14+
@apply scale-110;
15+
}
16+
}
17+
18+
@keyframes skill-background-change {
19+
from {
20+
@apply bg-grayblue-800;
21+
}
22+
to {
23+
@apply bg-slate-300;
24+
}
25+
}
726
// // SASS VARIABLES
827

928
// // COLORS

tailwind.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default {
5858
sans: ['Inter', 'sans-serif'],
5959
},
6060
animation: {
61+
'skill-background': 'skill-background-change 300ms ease-in-out 0s 1 both',
6162
typewriter: "typewriter 8s steps(23) -6s infinite alternate both, blinkTextCursor 800ms infinite normal",
6263
"fade-in":
6364
"fadeIn 800ms calc(var(--delay-index) * 0.5s) ease-out forwards",

0 commit comments

Comments
 (0)