feat: Proposal Listing Page/Index #85
Labels
feature request
New feature / enhancement request
frontend
good first issue
Good for newcomers
help wanted
Extra attention is needed
Related: #3
Proposal Pages
Individual proposals will each need their own listing on the site.
For simplicity, we'll pull the listings from markdown files. Astro has first-class support for creating pages in markdown. With the pagination and layout APIs, we should have the option down the road to wrap the markdown content for each issue with some shared ui/layout.Each proposal should be 1 markdown page and have certain minimum required fields. All proposals should share a common subdirectory. At first we can use simple links and an index page for navigation. Voting data will be pulled from an API at runtime, but we can assume each proposal has at least the following static data:Individual proposals will each need their own listing on the site.
As @zenlex pointed out, it probably makes more sense to just get the proposal data as JSON and pass it as props to a dynamically rendered page. My brain was just stuck in markdown-land 😅
Frontmatter fields:JSON Schema:
Content:H2 - Title
H3 - Summary
H3 - Full Description
Tip
See below for an example you can copy
Proposal Index Page
Users should be able to easily browse proposals from a central location, which should be linked from (at least) the site's homepage. This could be as simple as a list of links to start, but could eventually include stateful proposal cards with filtering and/or search. This is the gateway to user enfranchisement, so it's important that users can find the proposals that are important to them.
Proposal Page Example
The text was updated successfully, but these errors were encountered: