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

Add "Check live site" and "Check Code" Buttons to Project Cards #51

Open
khalidkhankakar opened this issue Dec 2, 2024 · 0 comments
Open

Comments

@khalidkhankakar
Copy link

khalidkhankakar commented Dec 2, 2024

Problem Statement:
Currently, the project cards in our application lack direct links for users to:

  1. Visit the live website where the project is hosted.
  2. View the source code repository for the project.

This makes it inconvenient for users to explore project details effectively.

Proposed Solution:
Add two buttons to each project card:

  1. "Check live site" Button: Redirects users to the live hosted project and now it redirect link is not working to hosted project.
  2. "Check Code" Button: Redirects users to the respective GitHub repository of the project.

How I Will Solve This Issue
Fetch Hosted Project Links and Repository URLs:

  1. I will retrieve the hosted project URLs and GitHub repository URLs for all projects directly from your GitHub.
  2. Create an Object Array
    I will create a structured object array where each object contains the following properties:
    websiteUrl: Link to the live hosted project.
    codeUrl: Link to the GitHub repository

Acceptance Criteria:
Each project card should display two buttons labeled "Check live site" and "Check Code".

  1. Clicking the "Check live site" button should open the hosted project in a new tab.
  2. Clicking the "Check Code" button should open the GitHub repository in a new tab.

Ensure buttons are (khalidkhankakar) styled consistently with the project card design.

Implementation Details:
Add URL fields (websiteUrl and codeUrl) to the project data model if not already present.
Modify the project card component to display these buttons dynamically based on the provided URLs.
Implement styling using existing CSS/utility classes for visual consistency.
Test the feature for responsiveness and accessibility.

Why This Feature Matters:
Enhances user experience by providing quick access to live projects and their source code.
Encourages interaction with hosted projects and increases code visibility for developers.

Assignee:
@adrianhajdin @sujatagunale , I would like to work on this feature. Please assign this issue to me so I can begin implementing it.

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

No branches or pull requests

1 participant