Compare commits

...

2 commits

Author SHA1 Message Date
Kaan Barmore-Genç 945c615045
Do keep the full size image for the og tag though
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-05-11 13:03:05 -05:00
Kaan Barmore-Genç 24fbda877b
Set fixed sizes for the logo and profile picture 2024-05-11 13:02:23 -05:00
2 changed files with 11 additions and 14 deletions

View file

@ -1,7 +1,8 @@
<script>
import Avif from './profile.avif';
import Jpeg from './profile.avif?format=jpeg';
import WebP from './profile.avif?format=webp';
import Avif from './profile.avif?w=320&format=avif';
import Jpeg from './profile.avif?w=320&format=jpeg';
import JpegFull from './profile.avif?format=jpeg';
import WebP from './profile.avif?w=320&format=webp';
import cv from '../cv.pdf';
import EnvelopeSimple from 'phosphor-svelte/lib/EnvelopeSimple';
@ -18,7 +19,7 @@
<meta property="profile:first_name" content="Kaan" />
<meta property="profile:last_name" content="Barmore-Genç" />
<meta property="profile:username" content="@SeriousBug" />
<meta property="og:image" content={`https://bgenc.net${Jpeg}`} />
<meta property="og:image" content={`https://bgenc.net${JpegFull}`} />
</svelte:head>
<div data-pagefind-body>
@ -101,8 +102,8 @@
@import '../button';
picture {
max-width: 320px;
max-height: 320px;
width: 320px;
height: 320px;
margin: 0 auto;
clip-path: var(--clip-path);
}

View file

@ -3,9 +3,9 @@
import Spacer from '$lib/Spacer.svelte';
import { onMount } from 'svelte';
import Avif from './logo.avif';
import Jpeg from './logo.avif?format=jpeg';
import WebP from './logo.avif?format=webp';
import Avif from './logo.avif?w=192&format=avif';
import Jpeg from './logo.avif?w=192&format=jpeg';
import WebP from './logo.avif?w=192&format=webp';
import List from 'phosphor-svelte/lib/List';
import { afterNavigate } from '$app/navigation';
@ -115,10 +115,6 @@
.logo {
width: 12rem;
align-self: flex-start;
}
.logo picture {
min-width: 6rem;
min-height: 3rem;
height: 12rem;
}
</style>