Skip to content

Commit 5771426

Browse files
committed
improve styling bits
1 parent d37708d commit 5771426

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

public/img/parkingVolkskrant.png

41.7 KB
Loading

src/pages/contact.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const image = '/logo.png';
3939
</section>
4040

4141
<section class="contactPage__social w-full sm:w-3/4 md:w-1/2 mx-auto">
42-
<h2 class="h2 text-5xl md:text-6xl">Find me on other platforms</h2>
42+
<h2 class="h2 text-4xl md:text-5xl">Find me on other platforms</h2>
4343

4444
<ul class="flex flex-row justify-center gap-4 md:gap-8 flex-wrap mb-24 text-[var(--text)]">
4545
<li>

src/pages/index.astro

+17-12
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,23 @@ const posts = (await getCollection('projects'))
77
.filter((post) => post.data.status === 'public')
88
.sort((a, b) => new Date(b.data.createdAt).getTime() - new Date(a.data.createdAt).getTime())
99
.slice(0, 3);
10+
11+
const headingText = [
12+
'Hey, I\'m Sam.',
13+
'I\'m',
14+
'a',
15+
'front',
16+
'end',
17+
'developer',
18+
'creating',
19+
'digital',
20+
'experiences'
21+
];
1022
---
1123

1224
<Layout
1325
title="Portfolio | Sam de Kanter"
14-
description="Sam is a Front end Developer creating digital experiences currently studying Communication and multimedia design in Amsterdam."
26+
description="Sam is a Front end Developer creating digital experience"
1527
image="http://schelpkikker.nl/logo.png"
1628
follow
1729
>
@@ -32,16 +44,10 @@ const posts = (await getCollection('projects'))
3244
</div>
3345

3446
<div>
35-
<h1 class="max-w-3xl sm:ml-[10%] h2 leading-[0.75]">
36-
<span class="mask"><span>Hey, I'm Sam.</span></span>
37-
<span class="mask" style="--order: 1"><span>I'm</span></span>
38-
<span class="mask" style="--order: 2"><span>a</span></span>
39-
<span class="mask" style="--order: 3"><span>front</span></span>
40-
<span class="mask" style="--order: 4"><span>end</span></span>
41-
<span class="mask" style="--order: 5"><span>developer</span></span>
42-
<span class="mask" style="--order: 6"><span>creating</span></span>
43-
<span class="mask" style="--order: 7"><span>digital</span></span>
44-
<span class="mask" style="--order: 8"><span>experiences</span></span>
47+
<h1 class="sm:ml-[10%] h2 leading-[0.75] balance">
48+
{headingText.map((text, i) => (
49+
<span class="mask mr-3.5" style={`--order: ${i}`}><span>{text}</span></span>
50+
))}
4551
</h1>
4652

4753
<a class="scroll" href="#whatIdo">scroll</a>
@@ -119,7 +125,6 @@ const posts = (await getCollection('projects'))
119125
h1 span {
120126
display: inline-block;
121127
overflow: hidden;
122-
margin-right: calc(1em / 8);
123128
height: 1.25em;
124129
font-size: clamp(2.5rem, 1.5625rem + 4.1667vw, 3.75rem);
125130
}

0 commit comments

Comments
 (0)