Skip to content

Issue 70 add projects to member pages#91

Open
belledw wants to merge 18 commits intomainfrom
issue-70-Add_projects_to_member_pages
Open

Issue 70 add projects to member pages#91
belledw wants to merge 18 commits intomainfrom
issue-70-Add_projects_to_member_pages

Conversation

@belledw
Copy link
Collaborator

@belledw belledw commented Feb 7, 2026

Change Summary

  • Added section to display games a member has contributed to in their member profile page.
  • The game title, description and thumbnail is fetched from the backend for display.
  • Each game is linked to its specific game page.

Change Form

Fill this up (NA if not available). If a certain criteria is not met, can you please give a reason.

  • The pull request title has an issue number
  • The change works by "Smoke testing" or quick testing
  • The change has tests - Not sure if needed
  • The change has documentation

Other Information

  • The artwork section should be added in a separate issue.

Related issue

Comment on lines +13 to +22
function getGameCoverUrl(
game_cover_thumbnail: string | null | undefined,
): string {
if (!game_cover_thumbnail) return "/game_dev_club_logo.svg";
if (game_cover_thumbnail.startsWith("http")) return game_cover_thumbnail;
// Use environment variable for Django backend base URL
const apiBaseUrl =
process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000";
return `${apiBaseUrl}${game_cover_thumbnail}`;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is unnecessary. We can just use the URL sent by the backend, and not display an image if necessary.

We definitely shouldn't be hard coding URLs like "http://localhost:8000".

className="group-hover:brightness-75 group-hover:duration-200"
/>
<Link
className="mt-[-165px] hidden place-self-center rounded-md bg-accent p-3 font-firaCode text-light_1 drop-shadow-md hover:underline group-hover:flex group-hover:blur-0 group-hover:duration-200"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use pixel units for css. The standard tailwind units are much more consistent and responsive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add projects to member pages

3 participants