Separate lens and focal length, add more boyce thompson photos, tag existing appropriately

This commit is contained in:
2022-12-28 22:08:39 -07:00
parent bb4d2e5c62
commit 9b795f3ab9
13 changed files with 34 additions and 26 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
data/gallery/DSC06124.jpg LFS Normal file

Binary file not shown.

BIN
data/gallery/DSC06204.jpg LFS Normal file

Binary file not shown.

BIN
data/gallery/DSC06294.jpg LFS Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -10,6 +10,7 @@ import Calendar from "@spectrum-icons/workflow/Calendar";
import Stopwatch from "@spectrum-icons/workflow/Stopwatch"; import Stopwatch from "@spectrum-icons/workflow/Stopwatch";
import Exposure from "@spectrum-icons/workflow/Exposure"; import Exposure from "@spectrum-icons/workflow/Exposure";
import Filmroll from "@spectrum-icons/workflow/Filmroll"; import Filmroll from "@spectrum-icons/workflow/Filmroll";
import Dolly from "@spectrum-icons/workflow/Dolly";
import Camera from "@spectrum-icons/workflow/Camera"; import Camera from "@spectrum-icons/workflow/Camera";
import Circle from "@spectrum-icons/workflow/Circle"; import Circle from "@spectrum-icons/workflow/Circle";
import Location from "@spectrum-icons/workflow/Location"; import Location from "@spectrum-icons/workflow/Location";
@@ -272,7 +273,7 @@ const GalleryImage = ({ data, location: { state } }) => {
<MetadataItem <MetadataItem
data={shutterSpeed} data={shutterSpeed}
icon={<Stopwatch UNSAFE_style={IconStyle} />} icon={<Stopwatch UNSAFE_style={IconStyle} />}
title="shutter speed" title="shutter"
/> />
{meta.FNumber && ( {meta.FNumber && (
<MetadataItem <MetadataItem
@@ -286,6 +287,11 @@ const GalleryImage = ({ data, location: { state } }) => {
icon={<Filmroll UNSAFE_style={IconStyle} />} icon={<Filmroll UNSAFE_style={IconStyle} />}
title="ISO" title="ISO"
/> />
<MetadataItem
data={meta.FocalLength + "mm"}
icon={<Dolly UNSAFE_style={IconStyle} />}
title="focal"
/>
</div> </div>
<MetadataItem <MetadataItem
data={locationString} data={locationString}
@@ -301,12 +307,7 @@ const GalleryImage = ({ data, location: { state } }) => {
)} )}
{(meta.LensModel || meta.FocalLength) && ( {(meta.LensModel || meta.FocalLength) && (
<MetadataItem <MetadataItem
data={[ data={ meta.LensModel === "----" ? null : meta.LensModel}
meta.LensModel === "----" ? null : meta.LensModel,
meta.FocalLength && `${meta.FocalLength}mm`,
]
.filter(Boolean)
.join(" @")}
icon={<Circle UNSAFE_style={IconStyle} />} icon={<Circle UNSAFE_style={IconStyle} />}
title="lens" title="lens"
/> />

View File

@@ -20,7 +20,7 @@ const KeywordsPicker = ({ keywords, value, onChange }: KeywordsPickerProps) => {
<li key={keyword}> <li key={keyword}>
<button <button
className={classNames( className={classNames(
`py-[5px] px-3 rounded-full`, `py-[5px] px-3 rounded-full text-sm`,
`text-black border border-black`, `text-black border border-black`,
selected selected
? "bg-transparentblack font-bold" ? "bg-transparentblack font-bold"

View File

@@ -53,10 +53,7 @@ export function Select<T extends object>(props: AriaSelectProps<T>) {
} ${state.isOpen ? "bg-gray-100" : "bg-white"}`} } ${state.isOpen ? "bg-gray-100" : "bg-white"}`}
ref={ref} ref={ref}
> >
<span <span {...valueProps} className="text-sm">
{...valueProps}
className="text-sm"
>
{state.selectedItem {state.selectedItem
? state.selectedItem.rendered ? state.selectedItem.rendered
: "Select an option"} : "Select an option"}

View File

@@ -189,6 +189,8 @@ const GalleryPage = ({ data }: PageProps<Queries.GalleryPageQueryQuery>) => {
<div className="flex flex-col md:flex-row md:items-end justify-between px-4 md:px-8 sm:mx-auto"> <div className="flex flex-col md:flex-row md:items-end justify-between px-4 md:px-8 sm:mx-auto">
<KeywordsPicker <KeywordsPicker
keywords={[ keywords={[
"Boyce Thompson Arboretum",
"winter",
"night", "night",
"coast", "coast",
// "city", // "city",
@@ -199,8 +201,7 @@ const GalleryPage = ({ data }: PageProps<Queries.GalleryPageQueryQuery>) => {
"fireworks", "fireworks",
"panoramic", "panoramic",
"Portland Japanese Garden", "Portland Japanese Garden",
"shoot the light", // "shoot the light",
"winter"
// "sunset", // "sunset",
]} ]}
onChange={setKeyword} onChange={setKeyword}