Skip to content

Commit 4caf2b7

Browse files
committed
Adds navbar
1 parent c797a9f commit 4caf2b7

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

src/assets/images/GitHub.png

20.8 KB
Loading

src/assets/images/linkedIn.png

12.6 KB
Loading

src/components/Projects.svelte

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<script>
2+
export let title = "Projects";
3+
</script>
4+
5+
<div class="projects-container">
6+
<h1>{title}</h1>
7+
<p>Under Construction.</p>
8+
</div>
9+
10+
<style>
11+
.projects-container {
12+
min-height: calc(100vh - 64px);
13+
display: flex;
14+
flex-direction: column;
15+
align-items: center;
16+
justify-content: center;
17+
background: #f5f5f5;
18+
text-align: center;
19+
padding: 2rem;
20+
}
21+
h1 {
22+
margin-bottom: 0.5rem;
23+
}
24+
p {
25+
font-size: 1.25rem;
26+
color: #666;
27+
}
28+
</style>

src/components/TimelineItem.svelte

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@
2727
console.log('Element found:', itemEl);
2828
2929
// On mobile portrait, avoid horizontal transforms to prevent overflow
30-
if (isMobilePortrait()) {
31-
gsap.set(itemEl, { x: 0, opacity: 1 });
32-
return;
33-
}
30+
const offset = isMobilePortrait() ? 15 : 50;
3431
3532
// Set initial state - slightly off-screen and invisible
3633
gsap.set(itemEl, {
37-
x: side === "left" ? -50 : 50,
34+
x: side === "left" ? -offset : offset,
3835
opacity: 0
3936
});
4037
@@ -60,7 +57,7 @@
6057
hasAnimated = false;
6158
6259
gsap.to(itemEl, {
63-
x: side === "left" ? -50 : 50,
60+
x: side === "left" ? -offset : offset,
6461
opacity: 0,
6562
duration: 0.7,
6663
ease: "power2.in"

0 commit comments

Comments
 (0)