Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Available Clubs Page #24

Open
2 tasks
IkeHunter opened this issue Oct 24, 2024 · 0 comments
Open
2 tasks

Available Clubs Page #24

IkeHunter opened this issue Oct 24, 2024 · 0 comments
Labels
frontend Involves more work with HTML, CSS, JS good first issue Good for newcomers

Comments

@IkeHunter
Copy link
Collaborator

Info

If users signup for the app, they should be able to find a club to join from a list of available clubs. Clicking a link/button next to a specific club (whether a list item, table row, or card) should add a user to that club. This can be in the form of an <a> tag linking to the join url, examples:

<!-- For a club with id 1, link should look like: -->
<a href="/clubs/club/1/join/">Join</a>
<!-- Using Django templating and dynamic urls, create link for each club -->
{% for club in clubs %}
<!-- other club info... -->
<a href="{% url 'clubs:join' club.id %}">Join</a>
{% endfor %}

Any ideas/suggestions on design or layout are welcomed. If you are comfortable in Django, you can edit the functional view clubs.views.available_clubs_view() to add any necessary context for dynamic data. Otherwise, just mock up a solution using plain html and css, and you can use example data in lieu of dynamic context data (ie using static value "Open Source Club" instead of {{ club.name }} for a clubs's name)

Task

  • Design available clubs page
  • Build out page in html/css/js

Files

  • Put html in app/clubs/templates/clubs/available-clubs.html
  • Put global CSS in app/static/css/style.css
  • Put scoped CSS (specific to that page) in a new file: app/clubs/static/clubs/available-clubs.css and add link to available-clubs.html (see example in club-home.html)
  • Put JS in app/static/js/script.js
  • If need scoped JS, create new file: app/clubs/static/clubs/available-clubs.js and add link to available-clubs.html
@IkeHunter IkeHunter added good first issue Good for newcomers frontend Involves more work with HTML, CSS, JS labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Involves more work with HTML, CSS, JS good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant