added deploy watch, pull script. minor refactors

This commit is contained in:
Hunter
2026-10-03 14:31:43 -04:00
parent 6dbaa647dc
commit 30c8ad9293
30 changed files with 370 additions and 213 deletions

View File

@@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import type { Project } from "@/data/content";
import { type Project, imageSrc, imageDescription } from "@/data/content";
import SimpleGallery from "./SimpleGallery";
import Link from "next/link";
import "../styles/project-card.css";
@@ -144,7 +144,7 @@ export default function ProjectCard({ project, visible, selected = false, setSel
textAlign: "center",
width: "10em",
borderRadius: "var(--radius-md)",
}} href={"/project/"+project.slug} >See More</Link>
}} href={"/project/"+project.slug} title={`See more details about ${project.title}`}>See More</Link>
<Link
className="expand-on-hover-button"
@@ -160,7 +160,7 @@ export default function ProjectCard({ project, visible, selected = false, setSel
textAlign: "center",
width: "10em",
borderRadius: "var(--radius-md)",
}} target="_blank" href={project.link} >Link</Link>
}} target="_blank" href={project.link} title={`Open ${project.link} in a new tab`}>Link</Link>
</div>
)}
</div>
@@ -168,8 +168,9 @@ export default function ProjectCard({ project, visible, selected = false, setSel
}
function imgComponent(){
const image = project.images![0];
return (
<img src={`/${project.images?.[0]}`} alt={`${project.title} screenshot`} width={800} height={180} style={{width: "100%", borderRadius: 4, marginBottom: 16, objectFit: "cover", height: 180}} />
<img src={`/${imageSrc(image)}`} alt={imageDescription(image) ?? `${project.title} screenshot`} width={800} height={180} style={{width: "100%", borderRadius: 4, marginBottom: 16, objectFit: "cover", height: 180}} />
);
}