-
Notifications
You must be signed in to change notification settings - Fork 1
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
implemented both dynamic metadata on the recipe detail page so that each recipe has unique SEO information & SEO best practices. #68
Open
Mateo-Benzien
wants to merge
100
commits into
CodeSpace-Academy:main
Choose a base branch
from
Cheplusplus:SEO
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update init
…_2024_GROUP_C into Single-Recipe-Api_Endpoint
- 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
…_2024_GROUP_C into Grid-and-Card-Layout
Merge pull request #57 from CodeSpace-Academy/deployment
Grid and card layout
…igation to recipe details page."
… additional recipe details, and reformatted JSX code"
change title to name for recipe name display
…b state, and rearranged layout with new CSS classes"
…ASE_2024_GROUP_C into Grid-and-Card-Layout
…24_GROUP_C into Grid-and-Card-Layout
- Implemented a tag section in the recipe detail view to showcase relevant tags. - Added conditional rendering to ensure tags are displayed only if available. - Enhanced UI to improve user experience by allowing easier navigation through tags.
…ing logic and simplifying code structure."
…GROUP_C into Grid-and-Card-Layout
…GROUP_C into Search-Recipes
…e navigation button, and updated search button and overlay styles
1. **SEO Enhancements**: - Imported the `Head` component from `next/head` to manage dynamic meta tags. - Included dynamic `<title>` and `<meta>` tags based on the recipe's title and description for better SEO. - Added Open Graph meta tags for improved social sharing. 2. **Structured Data**: - Added a `<script>` tag with JSON-LD format to provide structured data about the recipe, enhancing search engine understanding. 3. **Main Heading**: - Included a `<h1>` tag displaying the recipe title, which helps with SEO.
…into deployment
…e-svg-core, and typescript dependencies to package-lock.json"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SEO Enhancements:
Head
component fromnext/head
to manage dynamic meta tags.<title>
and<meta>
tags based on the recipe's title and description for better SEO.Structured Data:
<script>
tag with JSON-LD format to provide structured data about the recipe, enhancing search engine understanding.Main Heading:
<h1>
tag displaying the recipe title, which helps with SEO.