Skip to content

Commit

Permalink
Added titles and some descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehovey committed Apr 6, 2024
1 parent 0cc6ac6 commit 8e6313a
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 11 deletions.
164 changes: 164 additions & 0 deletions src/data/photos.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
import type {PortfolioPhoto} from "src/types";

export const photoPortfolio: PortfolioPhoto[] = [
{
title: "Hackberry Canyon",
description: "A resonant slot canyon in Capitol Reef.",
},
{
title: "Willow",
description: "Our sweet and wonderful Willow.",
},
{
title: "Optics",
description: "",
},
{
title: "Miwok Homes",
description: "",
},
{
title: "Radio Nowhere",
description: "",
},
{
title: "Ascent",
description: "",
},
{
title: "Mosquito Lake",
description: "Composed similarly to a photo by my late uncle Bob Hovey.",
},
{
title: "Trix Yogurt Sunset",
description: "",
},
{
title: "Crimson Butte",
description: "",
},
{
title: "Secluded Cove",
description: "",
},
{
title: "Three Phase",
description: "",
},
{
title: "Rayleigh's Gleaming",
description: "Taken after an early Winter storm.",
},
{
title: "Continuum",
description: "",
},
{
title: "Badlands",
description: "",
},
{
title: "Rhyolite",
description: "",
},
{
title: "Solar Quills",
description: "",
},
{
title: "Living in the Moment",
description: "",
},
{
title: "Lil Fren",
description: "",
},
{
title: "The Sisters",
description: "",
},
{
title: "Strata",
description: "",
},
{
title: "Shoreline",
description: "",
},
{
title: "Amador Iris",
description: "",
},
{
title: "Vein",
description: "",
},
{
title: "Lunar Eclipse",
description: "",
},
{
title: "Darmera Peltata",
description: "",
},
{
title: "Granite Spring",
description: "Taken using lens-whacking on a 50mm.",
},
{
title: "Hammock Horizon",
description: "",
},
{
title: "Caldor Burn Scar",
description: "",
},
{
title: "Tiger Pool",
description: "",
},
{
title: "Laminar",
description: "",
},
{
title: "Evening Lichen",
description: "",
},
{
title: "Electra Bloom",
description: "",
},
{
title: "Forgotten Garden",
description: "",
},
{
title: "All of Us, Stars",
description: "",
},
{
title: "Grand Teton",
description: "",
},
{
title: "Freel from Winemucca Lake",
description: "",
},
{
title: "Transmissions",
description: "",
},
{
title: "Batholiths",
description: "",
},
{
title: "Jade",
description: "",
},
{
title: "Orion Nebula",
description: "",
},
].map((partial, i) => ({...partial, index: i + 1}));
12 changes: 2 additions & 10 deletions src/lib/PhotographyPortfolio.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,7 @@
import PortfolioPhotoDisplay from "./PortfolioPhotoDisplay.svelte";
import { currentView } from "../state/views";
import { selectedPhoto } from "../state/photography";
const photoCount = 40;
const portfolio: PortfolioPhoto[] = Array(40)
.fill(null)
.map((_, i) => ({
index: i + 1,
title: `Photo ${i}`,
description: "TBD",
}));
import { photoPortfolio } from "../data/photos";
const goBack = () => {
currentView.setView(View.Main);
Expand All @@ -26,7 +18,7 @@
<div class="photo-portfolio-container">
{#if $selectedPhoto === null}
<ul class="photo-list">
{#each portfolio as photo}
{#each photoPortfolio as photo}
<PhotoThumbnail {photo} />
{/each}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/state/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {View} from "../types";
import {writable} from "svelte/store";

function createState() {
const {subscribe, set} = writable<View>(View.Photos);
const {subscribe, set} = writable<View>(View.Main);

return {
subscribe,
Expand Down
1 change: 1 addition & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ button.back-button {
span.photo-title {
font-weight: bold;
font-size: 1.5rem;
margin-bottom: 10px;
}
}

Expand Down

0 comments on commit 8e6313a

Please sign in to comment.