Skip to content

Reimplement project gallery as static content #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

1ec5
Copy link
Member

@1ec5 1ec5 commented Mar 28, 2025

A new include loads the projects CSV file as a data file and constructs the project gallery all at build time, replacing JavaScript code that built the HTML at runtime. This eliminates the dependency on the PapaParse library.

The modal works again. The modal’s content is now baked into the static webpage as a series of HTML data attributes on the card’s container element. The button that opens the modal passes the DOM element to the code that populates the modal.

Deleted the mostly redundant script for populating the homepage version of the project gallery. Instead, the include accepts optional parameters to filter the gallery and/or limit to a maximum number of results.

Updated the website’s own project card to mention the technologies and skills this project uses.

Before After
14 projects, including maintained and archived projects, and an undefined project 6 projects, all active
14 projects, including an undefined project 13 projects
The whole page shifted to the left A modal with more details about the OSM project

Fixes #112 and fixes #118.

1ec5 added 3 commits March 27, 2025 19:59
Load projects CSV at build time as a data file. Pass modal content to JavaScript via HTML data attributes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Homepage lists all the projects Project modals missing
1 participant