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

Annas moviezone #86

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

Annas moviezone #86

wants to merge 17 commits into from

Conversation

Anna2024WebDev
Copy link

Copy link

@HeleneWestrin HeleneWestrin left a comment

Choose a reason for hiding this comment

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

Great job with this project Anna! I really like how the code was structured, it was very easy to follow and understand. Well done!

I've left a couple of comments with suggestions.

One other thing I noticed is that you have the same issue as I did, which is that if you try to refresh the page you end up on Netlify's error page. I found out you need to create a file in the public folder that you call _redirects. Inside it you just add /* /index.html 200. Then it will start working after you deploy :)

index.html Outdated
</style>

<!-- Preload background image -->
<link rel="preload" href="/src/assets/background_sky.jpg" as="image">

Choose a reason for hiding this comment

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

I think that this preload of the background image is not working correctly. In the console it gets a 404 Not Found. Probably because it is located in the /src/assets folder. I think you need to have it in the public folder for it to work.

Copy link
Author

@Anna2024WebDev Anna2024WebDev Nov 26, 2024

Choose a reason for hiding this comment

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

Hmm I already have it stored in the public folder.

I found the problem, I had the wrong path to the public folder. Now it works! :-) Thank you!

@@ -0,0 +1,59 @@
/* eslint-disable react/prop-types */
import { styled } from "styled-components";

Choose a reason for hiding this comment

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

I really like how nice and clean your code is!

export const Navbar = () => {
return (
<Nav>
<NavList aria-label="Main Navigation">

Choose a reason for hiding this comment

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

Great job with the aria labels 👏

className="movie-backdrop"
/>
</BackdropContainer>
<BackButton to="/">

Choose a reason for hiding this comment

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

It would be nice if this link could be a little bit "smarter". So that if I'm on the Upcoming page and I click on a movie, then the link would take me back to the Upcoming page. Now it always leads to the home page.

Copy link
Author

@Anna2024WebDev Anna2024WebDev Nov 26, 2024

Choose a reason for hiding this comment

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

I have fixed this now :-)

@Anna2024WebDev
Copy link
Author

Great job with this project Anna! I really like how the code was structured, it was very easy to follow and understand. Well done!

I've left a couple of comments with suggestions.

One other thing I noticed is that you have the same issue as I did, which is that if you try to refresh the page you end up on Netlify's error page. I found out you need to create a file in the public folder that you call _redirects. Inside it you just add /* /index.html 200. Then it will start working after you deploy :)

Great! Thank you! I was really annoyed about that. Now it works! Thanks!! 🌟

… showing correct page based on location(now playing or upcoming movies) also changed text on navbar and updated now playing and upcoming movie components with origin
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.

3 participants