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

Merge pull request #50 from CodeSpace-Academy/main #52

Open
wants to merge 42 commits into
base: main
Choose a base branch
from

Conversation

Phillip-tech
Copy link
Collaborator

update init

Phillip-tech and others added 30 commits October 21, 2024 14:37
- Added 'use client' directive to enable client-side rendering
- Imported React, useState, and useEffect hooks
- Integrated RecipeCards component for displaying recipe data
- Added useState to store and manage fetched recipes
- Set up initial state for recipes as an empty array
- Prepared RecipeGrid for client-side data fetching
- Implemented useEffect to fetch recipes from the API
- Fetched recipe data from 'https://dummyjson.com/recipes'
- Updated state with fetched recipes and handled potential errors
- Display RecipeCards using a responsive grid with Tailwind CSS
- Passed recipe data to RecipeCards component
- Utilized grid layout for different screen sizes with padding and spacing
- Rendered recipe image, title, prep time, cook time, and rating
- Styled the card with Tailwind CSS using shadow, rounded corners, and padding
- Displayed rating with a star icon and appropriate formatting
Merge pull request #57 from CodeSpace-Academy/deployment
… additional recipe details, and reformatted JSX code"
change title to name for recipe name display
…b state, and rearranged layout with new CSS classes"
…RecipeGrid component, and updated dependencies in package.json"
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.

5 participants