Skip to content

Homepage button colors are hardcoded using if/than statements in html #78

@dindrick

Description

@dindrick

They should instead attached to the proper objects in the common_utils.py file.

Link to code to improve:

{% if loop.index0 == 0 %}bg-cyan-50 hover:bg-cyan-100{% endif %}
{% if loop.index0 == 1 %}bg-indigo-50 hover:bg-indigo-100{% endif %}
{% if loop.index0 == 2 %}bg-yellow-50 hover:bg-yellow-100{% endif %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions