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

Recipe_finder addition #134

Closed
wants to merge 3 commits into from
Closed

Recipe_finder addition #134

wants to merge 3 commits into from

Conversation

shrehs
Copy link
Contributor

@shrehs shrehs commented Oct 6, 2024

Closes: #72

  • Title: Recipe Finder
  • Your Name: Shreya H S
  • Idenitfy yourself: GSSOC-Ext'24

Describe the add-ons or changes you've made 📃

Give a clear description of what have you added or modifications made
Flexbox Layout: Implemented a flexbox layout to organize the recipe items in a responsive manner. Each recipe item is displayed in a flexible container, allowing for better alignment and spacing without altering the size or shape of the elements.

Clickable Recipe Items: Modified the recipe item layout so that the entire item is clickable, not just the title. This enhances user experience by making it easier to navigate to the recipe details.

Title Style Adjustments: Removed the default blue color and underline from the recipe title links on hover, ensuring a cleaner appearance that matches your design preferences. This was achieved by adding specific CSS styles.

Input Placeholder Text: Added placeholder text inside the input box to guide users on what to enter (e.g., “Enter ingredients or dish name”), which disappears when the user clicks on the input field.

Title and more formating: Adjusted the font size of the recipe titles for better readability, making them more prominent without changing their color or style drastically.

Git Ignore File: Guided on creating a .gitignore file to prevent sensitive information, such as API keys, virtual enve from being pushed to the repository.

Checklist: ☑️

  • My code follows the Contributing Guidelines & Code of Conduct of this project.
  • This PR does not contain plagiarized content.
  • [x ] I have performed a self-review of my own code.
  • [ x] I have commented my code, particularly wherever it was hard to understand.
  • [x ] My changes generate no new warnings.

Screenshots 📷

Screenshot (131)
Screenshot (132)
Screenshot (133)

Copy link

github-actions bot commented Oct 6, 2024

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.

Copy link
Owner

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

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

  • Follow the naming conventions and read guidelines.
  • Also attach a working video.
  • Link your pr with your assigned issue.


# Function to fetch recipes
def fetch_recipes(query):
api_key = os.getenv('SPOONACULAR_API_KEY') # Retrieve API key from environment variable
Copy link
Owner

Choose a reason for hiding this comment

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

Use streamlit secrets to store these environment variables. Don't use os.getenv.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll do the required changes and get back to you.

Copy link
Owner

Choose a reason for hiding this comment

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

Undo these changes.

Copy link
Owner

Choose a reason for hiding this comment

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

delete it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey,
Hope this finds you well. I have opened #172 PR for the First Review requested changes. Please do let me know if it requires further changes. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📃: Recipe Finder
2 participants