New Endorsements Page Layout

this whole section should be hidden if there are no current endorsements

Current Endorsements

For upcoming elections. ideally three featured content cards would fit next to each other in this row. Voter guides should be sorted first by election date, the soonest election date first in the list, and then alphabetically by state if (as often happens) multiple voter guides have the same date.

freeform content from the body streamfield

chapters or nationals can put what they want here. existing content on the national endorsements page goes here.

Past endorsements

From past years

  • California November 2023 General Election
  • California March 2023 Primary Election
  • this is a list of voter guides from the given year
  • they're initially sorted by date, with the most recent election at the top
  • they're secondarily sorted alphabetically (ideally by location, otherwise by title if location is too hard)
  • Ideally we'd expand the first item in the accordion (the most recent year) and collapse the others
  • At the national level, we may need to organize the list of endorsements from a given year further, since we endorse in many states
  • California
    • November 2023 General Election
    • March 2023 Primary Election
  • Colorado
    • November 2023 General Election
    • April 2023 Special Election
  • Other
    • A voter guide that doesn't have an associated state that we can find
  • So at the national level, we sort alphabetically by state first, then by most recent election within each state. If state data is missing (e.g., we can't pull it from the chapter a voter guide belongs to, it can be nested under an "Other" bullet point at the end of the list of states, and that can be something chapters or staff backfill. We can add a 'Location' related field to Voter Guides if needed--not sure if it is.

test