<?php
include "config/MainFunction.php";
$angels = $use->angels();
$articles = $use->randomArticleSeven();
$angels = $use->mergeArray($angels, $articles);
?>
<!doctype html>
<html lang="en">

<head>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4801985982356333"
     crossorigin="anonymous"></script>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
    <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,700;1,400;1,500;1,600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/new-style.css">
    <link rel="icon" type="image/png" href="images/arch-logo.png" />
    <title>Daily Prayer Message | Homepage</title>
</head>

<body>

    <section class="header">
        <a href="./" class="text-decoration-none">
            <img class="logo" src="images/logo.png" alt="Logi">
        </a>
    </section>
    <section class="intro py-5">
        <div class="karmicbg">
            <div class="container">
                <div class="dailyreading">
                        <h1>Your Daily</h1>
                        <h2>Prayer Message</h2>
                        <h1>For Your Today</h1>
                        <div class="reavel_btn mt-5">
                            <a href="#Cardssection" class="btn">
                                Reveal My Message
                            </a>
                        </div>
                </div>
            </div>
        </div>
    </section>
    <section class="w-100 clearfix anglespure" id="Anglepure">
        <div class="container">
                <div class="row">
                    <div class="col-md-6">
                        <div class="angleimg">
                            <img src="images/img.png" class="">
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="angletext pe-md-5">
                            <h1>Angels are Pure Divine <br>Beings of Light.</h1>
                            <p>
                            Many of them work with humankind to bring about peace and guidance.</p><p>To connect with the angels, you do not need special skills as everyone has the ability to communicate with them. In doing so you will find that it leads to a happier, more peaceful and fulfilling life.</p><p>Angels can connect with you anytime in any place. Just ask them to assist you in any area of your life that you need support with and they will happily do so. Angels cannot intervene in your life unless you ask them to. Once you let them in, you will feel the presence of the angels around you and you will never feel alone.</p>
                            </p>
                            <div class="reavel_btn mt-5">
                            <a href="javascript:void(0);" class="btn text-white">
                            Learn More About DAILY prayer
                            </a>
                        </div>
                        </div>
                    </div>
                </div>
    </div>
    </section>
    <section class="w-100 clearfix cardssection py-5" id="Cardssection">
        <div class="container">
            <div class="card_heading text-center mb-5">
                <h3>Which Daily Prayer Message Do You Wish <br> To Hear From Today?</h3>
                <h5>Tap on the Envelope below to reveal their message for you:</h5>
            </div>
            <div class="row pt-md-5">
            <div class="col-lg-10 m-auto">
            <div class="row pt-md-5">
            <?php foreach ($angels as $angel) : ?>
                    <div class="col-md-4 col-6 box mb-5 flip-box">
                        <a href="article.php?url=<?= $angel['url'] ?>">
                            <div class="flip-container flip-box-inner">
                                <div class="flip-box-front">
                                    <img src="images/card/<?= $angel['angel'] ?>.png" alt="Archangel Ariel" class="">
                                </div>
                               
                            </div>
                        </a>
                    </div>
                <?php endforeach; ?>
            </div>
            </div>
            </div>
        </div>
        </section>
        <section class="populer">
       <div class="populer">
       <div class="container">
           <div class="populerheading text-center">
               <h3>Popular Articles</h3>
           </div>
           <div class="row mt-5">
                <div class="col-lg-10 m-auto">
                    <div class="row">
                    <?php foreach ($use->popularArticles() as $article) : ?>
                        <div class="col-md-4 mb-4">
                            <div class="populer_box h-100 position-relative">
                                    <div class="populer_img">
                                        <img src="images/thumb/<?= $article['image'] ?>">
                                    </div>
                                    <div class="sub_heading py-4">
                                        <h6><?= $article['title'] ?></h6>
                                        <p><?php
                                echo substr($article['content'], 0, 120); ?></p>
                                    </div>
                                    <div class="read_more">
                                        <a href="article.php?url=<?= $article['url'] ?>" class="text-decoration-none">
                                            Read More <img src="images/arrow.png" class="ms-1">
                                        </a>
                                    </div>
                            </div>
                        </div>
                        <?php endforeach; ?>
                        
                    </div>
                    
                </div>
            </div>
            <div class="text-center reavel_btn my-5">
                         <a href="article.php?url=<?= $article['url'] ?>" class="btn text-white">
                         browse other article
                            </a>
                    </div>
       </div>
       </div>
   </section>
        <section class="footer  py-4 bg-dark">
            <div class="container">
                <div class="row">
                <div class="col-lg-10 m-auto">
                <div class="row footer_border">
                    <div class="col-8">
                        <div class="footer_logo ">
                            <img src="images/logo.png">
                        </div>
                    </div>
                    <div class="col-4">
                        <div class="follow_us">
                            <h6>Follow Us</h6>
                            <div class="footer-links">
                                <a  href="javascript:void(0);"><i class="fa fa-facebook" aria-hidden="true"></i></a>
                                <a  href="javascript:void(0);"><i class="fa fa-instagram" aria-hidden="true"></i></a>
                                <a  href="javascript:void(0);"><i class="fa fa-twitter" aria-hidden="true"></i>
</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row pt-2">
                    <div class="col-md-8">
                        <p class="footer-text">© 2021 Karmic Tarot Message. All rights reserved.</p>
                    </div>
               
                <div class="col-md-4">
                    <div class="footer-links ">
                        <a class="footer-link" href="javascript:void(0);">Terms &amp; Conditions</a>
                        <a class="footer-link" href="javascript:void(0);">Privacy Policy</a>
                    </div>
                </div>
            </div>
                </div>
                </div>
               
            </div>
                
           
            
        </section>
        <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>

    </body>

    </html>