<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Satoshi Club - AMA Series</title>
    <!-- custom stylesheet -->
    <link rel="stylesheet" href="./css/style.css?v=1901221355">
    <!-- remix icons -->
    <link href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" rel="stylesheet">
</head>
<?php
ob_start();
include('./dashboard/db_connection.php');
$ama_series_query  = mysqli_query($con, "SELECT * from ama_series");
$ama_series_fetch  = mysqli_fetch_array($ama_series_query);

?>

<body class="ath-body-tag" id="screen">
    <div class="sc-main ath-main np-main ama-main">
        <div class="sc-wrapper np-wrapper ama-wrapper">
            <div class="two-col-wrapper ama-two-col-wrapper">
                <div class="np-txt">
                    <div id="screenshot" onclick="takePageScreenshot()" class="sc-save">
                        <img src="./images/take-screenshot.png" class="sc-save__img">
                    </div>

                    <div class="logo-with-name">
                        <div class="logo">
                            <img src="./images/online-event.svg" alt="">
                        </div>
                        <h2>Online Event</h2>
                    </div>

                    <h1>AMA Series</h1>

                    <div class="btn-group">
                        <div class="btn">
                            <img src="./images/calendar-icon.svg" alt="">
                            <span><?php echo $ama_series_fetch['date'] ?? '01 Jan 2001' ?> - <?php echo $ama_series_fetch['time'] ?? '00:00' ?> UTC time</span>
                        </div>
                        <div class="btn">
                            <img src="./images/telegram-icon-light.svg" alt="">
                            <span><?php echo $ama_series_fetch['telegram_acc'] ?? '@satoshi_club' ?></span>
                        </div>
                    </div>
                </div>
                <div class="ama-coin-card">
                    <div class="coincard-top">
                        <div class="main-img">
                            <img src="./dashboard/uploads/<?php echo $ama_series_fetch['project_logo'] ?? NULL ?>" alt="">
                        </div>
                        <?php if (isset($ama_series_fetch['project_name']) && $ama_series_fetch['project_name'] != '') { ?>
                            <h3><?php echo $ama_series_fetch['project_name'] ?? NULL ?></h3>
                        <?php } ?>
                    </div>
                    <div class="coincard-bottom">
                        <div class="total-prizepool">
                            <div class="trophy-icon">
                                <img src="./images/trophy-icon.svg" alt="">
                            </div>
                            <div class="prize-pool">
                                <span class="opacity-6">Total Prize Pool</span>
                                <div class="price-forprizepool">$<?php echo $ama_series_fetch['prize_pool'] ?? '000' ?></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- sc-footer -->
        <footer class="sc-footer ath-footer">
            <div class="sc-wrapper">
                <div class="in-sc-footer in-ath-footer">
                    <div class="sc-sc-logo">
                        <img src="./images/satoshi-club-logo-light.svg" alt="">
                    </div>
                    <div class="sc-social opacity-6">
                        <div class="sc-social-icon ath-social-icon">
                            <img src="./images/telegram-icon-light.svg" alt="">
                            <a href="#">@satoshi_club</a>
                        </div>
                        <div class="sc-social-icon ath-social-icon">
                            <img src="./images/twitter-icon-light.svg" alt="">
                            <a href="#">esatoshiclub</a>
                        </div>
                        <div class="sc-social-icon ath-social-icon">
                            <img src="./images/web-icon-light.svg" alt="">
                            <a href="#">esatoshi.club</a>
                        </div>
                    </div>
                </div>
            </div>
        </footer>
    </div>

    <script src="./js/app.js?v=1901221355"></script>
    <script src="./js/html2canvas.min.js?v=1901221355"></script>
</body>

</html>