<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="/css/style.css">
        <link href="/img/pokebola.ico" rel="icon" type="image/x-icon" />
        <title>Create Your Movie</title>
    </head>

    <body>
        <nav>
            <img src="/img/movie.png" class="img" alt="Site Logo">
            <ul>
                <li>
                    <a href="/">Home</a>
                </li>      
            </ul>
        </nav>

        <% if(message != "") {  %>
            <section class="message">
                <p><%= message %></p> <span id="close">&times;</span>
            </section>
        <% }  %>
        
        <section class="main-class-cadastro">
            <form method="POST">
            
                <section class="form-control">
                    <label for="name">Name:</label>
                    <input type="text" name="nome" id="name" placeholder="Movie Name" >
                </section>

                <section class="form-control">
                    <label for="description">Description:</label>
                    <input type="text" name="descricao" id="description" placeholder="Movie description" >
                </section>

                <section class="form-control">
                    <label for="poster">Poster:</label>
                    <input type="text" name="imagem" id="poster" placeholder="Movie Poster" >
                </section>

                <button type="submit" class="button">Add movie</button>
            </form>
        </section>

        <script src="/js/script.js"></script>
    </body>
</html>