JSFiddle - React, Tailwind, and code Playground

by Shuaib Khan

HTML

<html lang="en"> 
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>Search Your Favorite National Parks</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="container">
            <h1>NPS Search Up</h1>
            <form>
                <input class="inputBox" type="text"  required> Search for Park
                <br><br>
                <input class="numPerPage" type="text" value="10" required> Results per page
                <br><br>
                <input class="submitBox" type="submit">
            </form>

            <section id="results" class="text-hidden">
                <h2>Search Results</h2>
                <ul id="results-list">
                </ul>
            </section>
        </div>

        <script
        src="https://code.jquery.com/jquery-3.4.1.js"
        integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
        crossorigin="anonymous"></script>
        <script src="script.js" async defer></script>
    </body>

CSS

*{
    box-sizing: border-box;
    background: black;
    color: white;
}

.numPerPage{
    width: 20px;
};

#results.text-hidden{
    display: none;
};