Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

138
Visualizações
Tailwindcss background image not showing on deploy

Both the background image and navbar background don't render. I'm using Vercel and Netlify to deploy and have used the build command as well as the publish directory setup on both sites. Tried checking my code since I'm using Tailwind for the first time, but I still can't figure out what went wrong?

The repo: https://github.com/d4nky/Tailwindcss-Portfolio
The site: https://inspiring-carson-2c8f1d.netlify.app

Any piece of information would be appreciated :)

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

You have to put img directory in your dist too, because for now, you are using path /img/background.jpg which refers to repo /dist/img/background.jpg file, that doesn't exist.

You can check that in the console, which says:

GET https://inspiring-carson-2c8f1d.netlify.app/img/background.jpg [HTTP/1.1 404 Not Found]

And the same for logo_size.jpg.

You could put those directories directly to dist directory by hand, or use some bundling tool like webpack to automate things.

about 4 years ago · Juan Pablo Isaza Relatório

0

Because the site can't find the resources. enter image description here

The links you specified in index.html are relative ones, the absolute path of which are path/to/index/ + value/of/src. For example your page will actually look for the main.js in repo-root/dist/dist/.

So you should either properly store and link your resources, or learn to use bundle tech, e.g. webpack.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda