-
Notifications
You must be signed in to change notification settings - Fork 101
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
Conversation
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. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undo these changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete it
There was a problem hiding this comment.
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.
Closes: #72
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: ☑️
Screenshots 📷