mirror of
https://github.com/kremalicious/blog.git
synced 2024-06-28 16:48:00 +02:00
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
---
|
|
import type { Exif } from '@lib/exif'
|
|
import {
|
|
Camera,
|
|
Crosshair,
|
|
Aperture,
|
|
Stopwatch,
|
|
Sun,
|
|
Maximize
|
|
} from '@images/components'
|
|
import ExifData from './ExifData.astro'
|
|
import styles from './index.module.css'
|
|
import ExifMap from './ExifMap.tsx'
|
|
|
|
type Props = {
|
|
exif: Exif
|
|
}
|
|
|
|
const { model, focalLength, fstop, shutterspeed, exposure, iso, gps } =
|
|
Astro.props.exif.exif
|
|
---
|
|
|
|
<aside class={styles.exif}>
|
|
<div class={styles.data}>
|
|
{model && <ExifData title="Camera model" value={model} icon={Camera} />}
|
|
{
|
|
focalLength && (
|
|
<ExifData title="Focal length" value={focalLength} icon={Crosshair} />
|
|
)
|
|
}
|
|
{fstop && <ExifData title="Aperture" value={fstop} icon={Aperture} />}
|
|
{
|
|
shutterspeed && (
|
|
<ExifData title="Shutter speed" value={shutterspeed} icon={Stopwatch} />
|
|
)
|
|
}
|
|
{exposure && <ExifData title="Exposure" value={exposure} icon={Sun} />}
|
|
{iso && <ExifData title="ISO" value={iso} icon={Maximize} />}
|
|
</div>
|
|
{
|
|
gps?.latitude && (
|
|
<div class={styles.map}>
|
|
<ExifMap gps={gps} client:only="react" />
|
|
</div>
|
|
)
|
|
}
|
|
</aside>
|