jedmund-svelte/src/lib/components/SingleColumnPhotoGrid.svelte
Justin Edmund a31291d69f refactor: replace deprecated $grey- variables with $gray-
- Replace 802 instances of $grey- variables with $gray- across 106 files
- Remove legacy color aliases from variables.scss
- Maintain consistent naming convention throughout codebase

This completes the migration to the new color scale system.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 21:41:50 -04:00

60 lines
1 KiB
Svelte

<script lang="ts">
import PhotoItem from './PhotoItem.svelte'
import type { PhotoItem as PhotoItemType } from '$lib/types/photos'
import { isAlbum } from '$lib/types/photos'
const {
photoItems,
albumSlug
}: {
photoItems: PhotoItemType[]
albumSlug?: string
} = $props()
</script>
<div class="single-column-grid">
{#each photoItems as item}
<div class="photo-container">
<PhotoItem {item} {albumSlug} />
{#if !isAlbum(item) && item.caption}
<div class="photo-details">
<p class="photo-caption">{item.caption}</p>
</div>
{/if}
</div>
{/each}
</div>
<style lang="scss">
.single-column-grid {
display: flex;
flex-direction: column;
gap: $unit-4x;
width: 100%;
}
.photo-container {
width: 100%;
}
.photo-details {
padding: $unit-2x 0 0;
}
.photo-caption {
margin: 0;
font-size: 0.9rem;
line-height: 1.6;
color: $gray-20;
}
@include breakpoint('phone') {
.single-column-grid {
gap: $unit-3x;
}
.photo-details {
padding: $unit 0;
}
}
</style>