MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.144.96.108
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/comfortaircon.co/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/comfortaircon.co/slider.php
<style>
    .fade-carousel {
        position: relative;
        height: 100vh;
    }

    .fade-carousel .carousel-inner .item {
        height: 100vh;
    }

    .fade-carousel .carousel-indicators>li {
        margin: 0 2px;
        background-color: #f39c12;
        border-color: #f39c12;
        opacity: .7;
    }

    .fade-carousel .carousel-indicators>li.active {
        width: 10px;
        height: 10px;
        opacity: 1;
    }

    /********************************/
    /* Hero Headers */
    /********************************/
    .hero {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 3;
        color: #fff;
        text-align: center;
        text-transform: uppercase;
        text-shadow: 1px 1px 0 rgba(0, 0, 0, .75);
        -webkit-transform: translate3d(-50%, -50%, 0);
        -moz-transform: translate3d(-50%, -50%, 0);
        -ms-transform: translate3d(-50%, -50%, 0);
        -o-transform: translate3d(-50%, -50%, 0);
        transform: translate3d(-50%, -50%, 0);
    }

    .hero h2 {
        font-size: 70px;
        font-weight: bold;
        margin: 0;
        padding: 0;
        color:#01395e;;
    }

    .fade-carousel .carousel-inner .item .hero {
        opacity: 0;
        -webkit-transition: 2s all ease-in-out .1s;
        -moz-transition: 2s all ease-in-out .1s;
        -ms-transition: 2s all ease-in-out .1s;
        -o-transition: 2s all ease-in-out .1s;
        transition: 2s all ease-in-out .1s;
    }

    .fade-carousel .carousel-inner .item.active .hero {
        opacity: 1;
        -webkit-transition: 2s all ease-in-out .1s;
        -moz-transition: 2s all ease-in-out .1s;
        -ms-transition: 2s all ease-in-out .1s;
        -o-transition: 2s all ease-in-out .1s;
        transition: 2s all ease-in-out .1s;
    }

    /********************************/
    /* Overlay */
    /********************************/
    .overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 2;
        /*background-color: #080d15;*/
        opacity: .7;
    }

    /********************************/
    /* Custom Buttons */
    /********************************/
    .btn.btn-lg {
        padding: 10px 40px;
    }

    .btn.btn-hero,
    .btn.btn-hero:hover,
    .btn.btn-hero:focus {
        color: #f5f5f5;
        background-color: #08aeb8;
        border-color: #1abc9c;
        outline: none;
        margin: 20px auto;
    }

    /********************************/
    /* Slides backgrounds */
    /********************************/
    .fade-carousel .slides .slide-1,
    .fade-carousel .slides .slide-2,
    .fade-carousel .slides .slide-3 {
        height: 100vh;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    /*.fade-carousel .slides .slide-1 {*/
    /*    background-image: url(https://ununsplash.imgix.net/photo-1416339134316-0e91dc9ded92?q=75&fm=jpg&s=883a422e10fc4149893984019f63c818);*/
    /*}*/

    /********************************/
    /* Media Queries */
    /********************************/
    @media screen and (min-width: 980px) {
        .hero {
            width: 980px;
        }
    }

    @media screen and (max-width: 640px) {
        .hero h2 {
            font-size: 2em;
        }
    }
</style>

<div class="carousel fade-carousel slide" data-ride="carousel" data-interval="4000" id="bs-carousel">
    <!-- Overlay -->
    <div class="overlay"></div>

    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#bs-carousel" data-slide-to="0" class="active"></li>
        <li data-target="#bs-carousel" data-slide-to="1"></li>
        <li data-target="#bs-carousel" data-slide-to="2"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner">
        <?php 
            $sqlide = "SELECT * FROM `tbl_slider`";
            $runide = mysqli_query($db,$sqlide) or die("Query Not run");
            while($dataide = mysqli_fetch_assoc($runide)){
        ?>
        <div class="item slides <?php echo ($dataide['s_id'] == 1) ? 'active':'';?>">
            <div class="slide-1" style='background-image: url("admin/images/<?php echo $dataide['image']?>");'></div>
            <div class="hero">
                <hgroup>
                    <h2><?php echo $dataide['title']?></h2>
                    <h4 style="color:#01395e"><?php echo $dataide['line']?></h4>
                <button class="btn btn-hero btn-lg" role="button"><a href="contact.php">GET A FREE QUOTE</a></button>
            </div>
        </div>
        <?php }?>
        <!--<div class="item slides">-->
        <!--    <div class="slide-2"></div>-->
        <!--    <div class="hero">-->
        <!--        <hgroup>-->
        <!--            <h1>We are smart</h1>-->
        <!--            <h3>Get start your next awesome project</h3>-->
        <!--        </hgroup>-->
        <!--        <button class="btn btn-hero btn-lg" role="button">See all features</button>-->
        <!--    </div>-->
        <!--</div>-->
        <!--<div class="item slides">-->
        <!--    <div class="slide-3"></div>-->
        <!--    <div class="hero">-->
        <!--        <hgroup>-->
        <!--            <h1>We are amazing</h1>-->
        <!--            <h3>Get start your next awesome project</h3>-->
        <!--        </hgroup>-->
        <!--        <button class="btn btn-hero btn-lg" role="button">See all features</button>-->
        <!--    </div>-->
        <!--</div>-->
    </div>
</div>

MMCT - 2023