fix image credit type in vaukuivali and projects

This commit is contained in:
Mihkel Martin Kasterpalu 2025-02-12 00:27:57 +02:00
parent d882c670ed
commit 626dd22cb1
2 changed files with 19 additions and 17 deletions

View file

@ -1,4 +1,4 @@
import type { Project } from '$lib/types'; import { ImageCreditType, type Project } from '$lib/types';
import badges from './badges'; import badges from './badges';
import skpImg from '$lib/assets/skp.jpg?enhanced'; import skpImg from '$lib/assets/skp.jpg?enhanced';
@ -12,7 +12,7 @@ const projects: Project[] = [
image: { image: {
src: skpImg, src: skpImg,
credit: { credit: {
type: 'instagram', type: ImageCreditType.instagram,
author: 'Mimmu', author: 'Mimmu',
href: 'https://www.instagram.com/musamimmu/' href: 'https://www.instagram.com/musamimmu/'
}, },
@ -27,7 +27,7 @@ const projects: Project[] = [
image: { image: {
src: dysasterImg, src: dysasterImg,
credit: { credit: {
type: 'instagram', type: ImageCreditType.instagram,
author: 'Mattias Mägi', author: 'Mattias Mägi',
href: 'https://www.instagram.com/mattias.mix/' href: 'https://www.instagram.com/mattias.mix/'
}, },
@ -42,7 +42,7 @@ const projects: Project[] = [
image: { image: {
src: monospaceeImg, src: monospaceeImg,
credit: { credit: {
type: 'instagram', type: ImageCreditType.instagram,
author: 'Liisa Jõhvik', author: 'Liisa Jõhvik',
href: 'https://www.instagram.com/liisajohvik.photo/' href: 'https://www.instagram.com/liisajohvik.photo/'
}, },
@ -67,7 +67,7 @@ const projects: Project[] = [
image: { image: {
src: '/assets/hakkerikoda.svg', src: '/assets/hakkerikoda.svg',
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'treierxyz', author: 'treierxyz',
href: 'https://treier.xyz' href: 'https://treier.xyz'
}, },

View file

@ -26,12 +26,14 @@
import chainsawImg from '$lib/assets/vaukuivali/chainsaw.jpg?enhanced'; import chainsawImg from '$lib/assets/vaukuivali/chainsaw.jpg?enhanced';
import jetImg from '$lib/assets/vaukuivali/fighters.jpg?enhanced'; import jetImg from '$lib/assets/vaukuivali/fighters.jpg?enhanced';
import hearingaidImg from '$lib/assets/vaukuivali/eardamage.jpg?enhanced'; import hearingaidImg from '$lib/assets/vaukuivali/eardamage.jpg?enhanced';
import { ImageCreditType, type EnhancedImage } from '$lib/types';
interface SoundCheckpoint { interface SoundCheckpoint {
db: number; db: number;
title: string; title: string;
description: string; description: string;
crossedTime: undefined | Date; crossedTime: undefined | Date;
image: EnhancedImage | undefined;
} }
const soundCheckpoints: SoundCheckpoint[] = $state([ const soundCheckpoints: SoundCheckpoint[] = $state([
@ -49,7 +51,7 @@
image: { image: {
src: roomImg, src: roomImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Kam Idris', author: 'Kam Idris',
href: 'https://unsplash.com/@ka_idris' href: 'https://unsplash.com/@ka_idris'
}, },
@ -64,7 +66,7 @@
image: { image: {
src: watchImg, src: watchImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'János Venczák', author: 'János Venczák',
href: 'https://unsplash.com/@venczakjanos' href: 'https://unsplash.com/@venczakjanos'
}, },
@ -79,7 +81,7 @@
image: { image: {
src: convoImg, src: convoImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Toa Heftiba', author: 'Toa Heftiba',
href: 'https://unsplash.com/@heftiba' href: 'https://unsplash.com/@heftiba'
}, },
@ -94,7 +96,7 @@
image: { image: {
src: gennImg, src: gennImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Laila Kaasik', author: 'Laila Kaasik',
href: 'https://tartu.postimees.ee/8154041/lallavad-pidutsejad-panid-tartu-otsima-tasakaalu-ooelu-ja-oorahu-vahel' href: 'https://tartu.postimees.ee/8154041/lallavad-pidutsejad-panid-tartu-otsima-tasakaalu-ooelu-ja-oorahu-vahel'
}, },
@ -109,7 +111,7 @@
image: { image: {
src: tvImg, src: tvImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Jonas Leupe', author: 'Jonas Leupe',
href: 'https://unsplash.com/@jonasleupe' href: 'https://unsplash.com/@jonasleupe'
}, },
@ -124,7 +126,7 @@
image: { image: {
src: trafficImg, src: trafficImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Google Street View', author: 'Google Street View',
href: 'https://maps.app.goo.gl/ZfADP4LnUid7d571A' href: 'https://maps.app.goo.gl/ZfADP4LnUid7d571A'
}, },
@ -139,7 +141,7 @@
image: { image: {
src: harleyImg, src: harleyImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Harley-Davidson', author: 'Harley-Davidson',
href: 'https://unsplash.com/@harleydavidson' href: 'https://unsplash.com/@harleydavidson'
}, },
@ -154,7 +156,7 @@
image: { image: {
src: landingImg, src: landingImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Scott Fillmer', author: 'Scott Fillmer',
href: 'https://unsplash.com/@scottfillmer' href: 'https://unsplash.com/@scottfillmer'
}, },
@ -169,7 +171,7 @@
image: { image: {
src: carCrashImg, src: carCrashImg,
credit: { credit: {
type: 'instagram', type: ImageCreditType.instagram,
author: 'Jordan Besson', author: 'Jordan Besson',
href: 'https://www.instagram.com/mr.blue.photographie' href: 'https://www.instagram.com/mr.blue.photographie'
}, },
@ -184,7 +186,7 @@
image: { image: {
src: chainsawImg, src: chainsawImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Benjamin Jopen', author: 'Benjamin Jopen',
href: 'https://unsplash.com/@benjopen' href: 'https://unsplash.com/@benjopen'
}, },
@ -199,7 +201,7 @@
image: { image: {
src: jetImg, src: jetImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Colin Lloyd', author: 'Colin Lloyd',
href: 'https://unsplash.com/@onthesearchforpineapples' href: 'https://unsplash.com/@onthesearchforpineapples'
}, },
@ -214,7 +216,7 @@
image: { image: {
src: hearingaidImg, src: hearingaidImg,
credit: { credit: {
type: 'web', type: ImageCreditType.web,
author: 'Mark Paton', author: 'Mark Paton',
href: 'https://unsplash.com/@heftiba' href: 'https://unsplash.com/@heftiba'
}, },