Create a Project Card web component

This commit is contained in:
Nettika 2026-01-25 14:35:44 -08:00
parent f33746a274
commit ac64fd8ebe
No known key found for this signature in database
2 changed files with 91 additions and 1 deletions

View file

@ -5,7 +5,7 @@
[x] Create a `Project` struct that corresponds to the schema definition.
[x] Create a module or struct at your discretion for interfacing with the database. Create functions for the following: create a project, update a project's progress, archive a project, unarchive a project, and list of all projects.
[x] Create a `main.css` file in src. Use mvp.css as a starting point.
[ ] Create a `project-card.js` file in src that creates a web component for displaying a project.
[x] Create a `project-card.js` file in src that creates a web component for displaying a project.
[ ] Using a Rouille router, create `GET /main.css` and `GET /project-card.js` endpoints that returns the relevant files. Use the include_bytes! macro.
[ ] Create a `GET /projects` endpoint. Using Maud for markup generation, have this endpoint return an HTML page that shows all projects. Each project should be a `project-card` web component. Keep the page simple: no title or any buttons currently.
[ ] Create a `POST /projects` endpoint that accepts URL encoded data and creates a new project.