Git Product home page Git Product logo

Comments (5)

Vinetos avatar Vinetos commented on July 17, 2024

This background image link is giving a 404 error :
image

The issue is closed. Do you need help ?

from react-coming-soon-template.

arrlancore avatar arrlancore commented on July 17, 2024

This background image link is giving a 404 error :
image

The issue is closed. Do you need help ?

Sorry my bad, should be not closed. Yes I also see the 404. Do you have any idea why?

from react-coming-soon-template.

rowhitswami avatar rowhitswami commented on July 17, 2024

Let me take this up

from react-coming-soon-template.

martink-rsa avatar martink-rsa commented on July 17, 2024

The issue is that the image is referenced as:
https://arrlancore.github.io/static/bg-coming-soon-8c63f78b338c490c72be7355de424730.jpeg
This links to the following where you will see that it does not include the repo (react-coming-soon-template):
https://arrlancore.github.io/static/bg-coming-soon-8c63f78b338c490c72be7355de424730.jpeg

You will see that the image is at the following address:
https://arrlancore.github.io/react-coming-soon-template/static/bg-coming-soon-8c63f78b338c490c72be7355de424730.jpeg

The filepath needs a period (.) in the front which will then correctly add the repo to the URL:
background-image: url(./static/bg-coming-soon-8c63f78b338c490c72be7355de424730.jpeg);

You will then see the image is correctly referenced. Imgur link

Be careful of when you develop locally as GitHub Pages will always add your repo name (github.io/name/repo/index.html) whereas when you develop locally on something such as LiveServer (VSCode Extension), it is going to have a root address such as 192.168.1.10/index.html . Adding a period . at the start of the path should solve this for you moving forward.

from react-coming-soon-template.

arrlancore avatar arrlancore commented on July 17, 2024

Thanks all for sugesting, try using netlify and the issue solved. Now we build on https://react-coming-soon-template.netlify.com/

from react-coming-soon-template.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.