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

Image not rendering on main page #62

Open
georgiaewhitney opened this issue Feb 8, 2023 · 1 comment
Open

Image not rendering on main page #62

georgiaewhitney opened this issue Feb 8, 2023 · 1 comment

Comments

@georgiaewhitney
Copy link

function home() {
  return /*HTML*/ ` 
    <div class="home-container">
    <h1>I :heart: food!</h1>
    
    <div class ="img_container">
       <img src="../public/images/donut.png" alt="Donut image">
    </div>

    <div class="button_container">
        <a href="/sign-up">Sign Up</a>
        <a href="/log-in">Log In</a>
    </div>
    </div>
  `;
}

I think this is to do with the URL path - is your public folder readable?

@georgiaewhitney
Copy link
Author

Ah! I can't find your static middleware.

server.use(express.static(path.join(__dirname, 'public')));

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

No branches or pull requests

1 participant