Create template for project cards on homepage
@tblacknc ya está trabajando en esto.
Desde el 19/1/2022.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Currently, we show cards for selected projects on the homepage (codeforphilly.org):

However, the HTML for each card is repeated, with information like heading hard-coded:
https://github.com/CodeForPhilly/codeforphilly.org/blob/develop/html-templates/home.tpl#L100-L115
Proposed Solution
If we use a template, then we can consolidate this repeated code into one place. In other words, we could have a template like this in the home.tpl page:
{template projectTile name description logo=no}
<h1>{$name|escape}</h1>
{$description|escape|markdown}
{/template}
And then create the individual cards using something like this:
{projectTile name="Project 1" description="## This is a cool project"}
{projectTile name="Project 2" description="## This is a another project"}
Here is a link to the template engine docs (owoo). Note that it is fairly old, but if we can get our work pretty far, and post it on the #cfp-homepage-redesign channel, we can hopefully lean a bit on @themightychris to fill in any gaps.
Outcome
The homepage should look the exact same, but the underlying code should be much cleaner, since it uses the template. If there are any useful changes to the look / homepage content, let's handle them after implementing a template (just to be sure we get templating down).
- Lenguaje dominante
- CSS
- Estrellas
- 10
- Forks
- 7
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CodeForPhilly/codeforphilly.org
-
redesign
CodeForPhilly/codeforphilly.org#96 · 1 asignado ·
-
redesign
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
redesign
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
CodeForPhilly/codeforphilly.org#94 · 2 comentarios ·
-
.epic redesign
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 55/100