Skip to content

Commit a3164af

Browse files
committed
feat: update avatar
1 parent 68b25f9 commit a3164af

File tree

13 files changed

+35
-20
lines changed

13 files changed

+35
-20
lines changed

cypress/e2e/navigation.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ describe('Navigation', () => {
1010

1111
it('has a link to the blog page', () => {
1212
cy.get('nav').within(() => cy.contains('Blog').click())
13-
cy.location('pathname').should('eq', '/blog/')
13+
cy.location('pathname').should('eq', '/blog')
14+
})
15+
16+
it('has a link to the photography page', () => {
17+
cy.get('nav').within(() => cy.contains('Photography').click())
18+
cy.location('pathname').should('eq', '/photography')
1419
})
1520
})
1621

src/assets/avatar.png

8.02 MB
Loading

src/assets/avatar.webp

-1.82 MB
Binary file not shown.

src/components/Avatar.astro

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import { Image } from 'astro:assets'
33
4-
import avatar from '~/assets/avatar.webp'
4+
import avatar from '~/assets/avatar.png'
55
---
66

77
<Image
@@ -12,7 +12,5 @@ import avatar from '~/assets/avatar.webp'
1212
width={1000}
1313
sizes="1000px"
1414
loading="eager"
15-
oncontextmenu="return false"
16-
ondragstart="return false"
17-
on-touchstart="return false"
15+
style="pointer-events: none !important;"
1816
/>

src/components/HeaderLink.astro

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ const isActive = href === Astro.url.pathname
1212
href={href}
1313
rel="prefetch"
1414
class:list={[
15-
'inline-block transition-border no-underline px-3 py-1 rounded text-sm border hover:text-black hover:dark:text-white hover:border-neutral-400',
15+
'inline-block transition-border no-underline px-3 py-1 rounded text-sm border',
16+
'hover:text-black hover:bg-neutral-50 hover:border-neutral-400', // light hover state
17+
'hover:dark:text-white hover:dark:bg-transparent hover:dark:border-neutral-600', // dark hover state
18+
'active:border-neutral-600 active:bg-neutral-100', // light active state
19+
'active:border-neutral-400 active:bg-transparent', // dark active state
1620
{
17-
'border-transparent ': !isActive,
18-
'border-neutral-200': isActive,
21+
'border-transparent': !isActive,
22+
'border-neutral-200 dark:border-neutral-800': isActive,
1923
},
2024
]}
2125
{...props}

src/components/cv/CVList.astro

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
---
2+
interface Props {
3+
id: string
4+
}
5+
6+
const { id } = Astro.props
7+
---
8+
19
<div class="prose prose-xl flex flex-col">
2-
<h2 class="text-center">
10+
<h2 class="scroll-mt-20 text-center" id={id}>
311
<slot name="title" />
412
</h2>
513
<ul class="prose">

src/components/cv/award/Awards.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const awards: Award[] = [
2121
].sort((a, b) => b.date.localeCompare(a.date))
2222
---
2323

24-
<CVList>
25-
<span slot="title" id="awards">Awards</span>
24+
<CVList id="awards">
25+
<span slot="title">Awards</span>
2626
{
2727
awards.map((entry) => (
2828
<li>

src/components/cv/education/Education.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const education: Education[] = [
2828
].sort((a, b) => b.startDate.localeCompare(a.startDate))
2929
---
3030

31-
<CVList>
32-
<span slot="title" id="education">Education</span>
31+
<CVList id="education">
32+
<span slot="title">Education</span>
3333
{
3434
education.map((entry) => (
3535
<li>

src/components/cv/experience/Experience.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ const experience: Experience[] = [
4848
].sort((a, b) => b.startDate.localeCompare(a.startDate))
4949
---
5050

51-
<CVList>
52-
<span slot="title" id="experience">Experience</span>
51+
<CVList id="experience">
52+
<span slot="title">Experience</span>
5353
{
5454
experience.map((entry) => (
5555
<li>

src/components/showcase/ExperimentsShowcase.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Mark from '~/components/showcase/Mark.astro'
23
import Showcase from '~/components/showcase/Showcase.astro'
34
import ShowcaseDescription from '~/components/showcase/ShowcaseDescription.astro'
45
import ShowcaseTitle from '~/components/showcase/ShowcaseTitle.astro'
@@ -10,7 +11,7 @@ const name = 'Experiments'
1011
<div class="prose dark:prose-invert">
1112
<ShowcaseTitle>{name} 🛠️</ShowcaseTitle>
1213
<ShowcaseDescription>
13-
A space for ideas and doodles that don't fit the scope of a
14+
A space for <Mark>ideas and doodles</Mark> that don't fit the scope of a
1415
dedicated project.
1516
</ShowcaseDescription>
1617
</div>

0 commit comments

Comments
 (0)