eggplantSword's avatar

Setup a html landing page on Laradock or wsl

Hi, I usually only work with Laravel but I've been tasked a landing page at work and I have the html/tailwind part however I'm really at a loss on how to get it running on my local environment. I use wsl on my computer with Laradock, how can I get a simple html landing page to work?

I have my links in the hosts file. And I have a project folder that for the moment only has an index.html file to test that it works.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>HTML + CSS</title>
    <link rel="stylesheet" href="styles.css" />
    <link
      href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"
      rel="stylesheet"
    />
  </head>
  <body>
    <h1 class="text-red-400">This is a simple HTML + CSS template!</h1>
  </body>
</html>

When I go to my url I see 404 not found, what did I miss?

My idea is to make a simple landing page that has a simple php backend where I can send an email with an attachment, I found this example for a html page with php form, is this is good way to do this so I can use this as an example? https://github.com/ozhala/landing-page-example-free-php/blob/master/index.html

0 likes
1 reply

Please or to participate in this conversation.