<?php
/**
 * @package web-prediksi
 * @since 1.0.0
 */

$beranda = get_pages([ 'post_type' => 'page', 'meta_key' => '_wp_page_template', 'meta_value' => 'page-beranda.php' ]);

?>

<!-- component header -->
<header>
    <div class="container px-3 py-2 px-lg-0">
        <div class="row no-gutters justify-content-between align-items-center">
            <div class="col-auto">
                <div class="logo-wrapper px-0 py-3">
                    <a href="<?php echo site_url(); ?>"><?php echo web_logo(); ?></a>
                </div>
            </div>
            <div class="col-auto">
                <form method="get">
                    <div class="input-group mb-0">
                        <input type="text" name="s" id="search" class="form-control" placeholder="Cari Cara Bermain">
                        <div class="input-group-append">
                            <button class="btn btn-primary" type="button"><i class="fa fa-search"></i></button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</header>

<section class="bg-color-2">
    <div class="container-fluid px-3 py-3">
        <marquee class="d-block line-height-small my-0">
            <p class="text-white line-height-small mb-0">
                <span><?php echo get_post_meta( $beranda[0]->ID, 'running_text', true ); ?></span>
            </p>
        </marquee>
    </div>
</section>
