<?php require_once("../resources/config.php"); ?>

<?php include(TEMPLATE_FRONT . DS . "header.php"); ?>

<!-- Page Content -->
<div class="container">

    <div class="row">
        <!-- include(TEMPLATE_FRONT . DS . "side_nav.php");  -->


        <div class="col-md-12">


            <div class="row carousel-holder">


                <div class="col-md-12">
                    <?php include(TEMPLATE_FRONT . DS . "slider.php"); ?>
                </div>


            </div>

            <div class="row">

                <div class="col-md-12 text-center">
                    <h2><a href="contact.php">Contact us now</a> to learn how to get up to 30% off your order when you apply our military discount.</h2>
                </div>

            </div>

            <!-- <div class="row">

               // get_products function used to be here

            </div> -->

            <!-- Hardcoded categories with pictures below. Use add_category and create an update_category function to dynamically add and update categories in admin section in future versions -->

            <div class="row">
                <div class="col-md-12 text-left">
                    <h3>Shop by Category</h3>
                </div>
                <div class="col-md-3 col-sm-6 hero-feature">
                    <div class="thumbnail">
                        <a href="category.php?id=3"> <img src="../resources/uploads/Gina+Canopy+Bed.webp" alt="Queen size bed with canopy frame and wooden headboard."> </a>
                        <a href="category.php?id=3">
                            <h3>Bedroom</h3>
                        </a>
                    </div>
                </div>

                <div class="col-md-3 col-sm-6 hero-feature">
                    <div class="thumbnail">
                        <a href="category.php?id=17"> <img src="../resources/uploads/biege room view.jpg" alt="plush vinyl recliner in a reclined position"> </a>
                        <a href="category.php?id=17">
                            <h3>Living Room</h3>
                        </a>
                    </div>
                </div>

                <div class="col-md-3 col-sm-6 hero-feature">
                    <div class="thumbnail">
                        <a href="category.php?id=18"> <img src="../resources/uploads/kitchen-category.jpg" alt="Sunlit room with four chairs and a wooden table."> </a>
                        <a href="category.php?id=18">
                            <h3>Kitchen</h3>
                        </a>
                    </div>
                </div>


                <div class="col-md-3 col-sm-6 hero-feature">
                    <div class="thumbnail">
                        <a href="category.php?id=19"> <img src="../resources/uploads/white room view.jpg" alt="Sunlit white room. There's an L-shaped desk with a laptop open on it with books next to it."> </a>
                        <a href="category.php?id=19">
                            <h3>Office</h3>
                        </a>
                    </div>
                </div>




            </div>
            <!-- Row ends here -->

        </div>

    </div>

</div>
<!-- /.container -->

<?php include(TEMPLATE_FRONT . DS . "footer.php"); ?>