| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513 |
- ---
- import Head from "@components/_head.astro";
- import Footer from "@components/dashboard/_footer.astro";
- import Topbar from "@components/dashboard/_topbar.astro";
- import Sidenav from "@components/dashboard/_sidenav.astro";
- import Scripts from "@components/_scripts.astro";
- const title = "AdminLTE | Dashboard v3";
- const path = "../../dist";
- const mainPage = "dashboard";
- const page = "index3";
- ---
- <!DOCTYPE html>
- <html lang="en">
- <!--begin::Head-->
- <head>
- <Head title={title} path={path} />
- <!-- apexcharts -->
- <link
- rel="stylesheet"
- href="https://cdn.jsdelivr.net/npm/apexcharts@3.37.1/dist/apexcharts.css"
- integrity="sha256-4MX+61mt9NVvvuPjUWdUdyfZfxSB1/Rf9WtqRHgG5S0="
- crossorigin="anonymous"
- />
- </head>
- <body class="layout-fixed sidebar-expand-lg bg-body-tertiary">
- <!--begin::App Wrapper-->
- <div class="app-wrapper">
- <Topbar path={path} />
- <Sidenav path={path} mainPage={mainPage} page={page} />
- <!--begin::App Main-->
- <main class="app-main">
- <!--begin::App Content Header-->
- <div class="app-content-header">
- <!--begin::Container-->
- <div class="container-fluid">
- <!--begin::Row-->
- <div class="row">
- <div class="col-sm-6">
- <h3 class="mb-0">Dashboard v3</h3>
- </div>
- <div class="col-sm-6">
- <ol class="breadcrumb float-sm-end">
- <li class="breadcrumb-item"><a href="#">Home</a></li>
- <li class="breadcrumb-item active" aria-current="page">
- Dashboard v3
- </li>
- </ol>
- </div>
- </div>
- <!--end::Row-->
- </div>
- <!--end::Container-->
- </div>
- <div class="app-content">
- <!--begin::Container-->
- <div class="container-fluid">
- <!--begin::Row-->
- <div class="row">
- <div class="col-lg-6">
- <div class="card mb-4">
- <div class="card-header border-0">
- <div class="d-flex justify-content-between">
- <h3 class="card-title">Online Store Visitors</h3>
- <a href="javascript:void(0);" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">View Report</a>
- </div>
- </div>
- <div class="card-body">
- <div class="d-flex">
- <p class="d-flex flex-column">
- <span class="fw-bold fs-5">820</span>
- <span>Visitors Over Time</span>
- </p>
- <p class="ms-auto d-flex flex-column text-end">
- <span class="text-success">
- <i class="bi bi-arrow-up"></i> 12.5%
- </span>
- <span class="text-secondary">Since last week</span>
- </p>
- </div>
- <!-- /.d-flex -->
- <div class="position-relative mb-4">
- <div id="visitors-chart"></div>
- </div>
- <div class="d-flex flex-row justify-content-end">
- <span class="me-2">
- <i class="bi bi-square-fill text-primary"></i> This Week
- </span>
- <span>
- <i class="bi bi-square-fill text-secondary"></i> Last Week
- </span>
- </div>
- </div>
- </div>
- <!-- /.card -->
- <div class="card mb-4">
- <div class="card-header border-0">
- <h3 class="card-title">Products</h3>
- <div class="card-tools">
- <a href="#" class="btn btn-tool btn-sm">
- <i class="bi bi-download"></i>
- </a>
- <a href="#" class="btn btn-tool btn-sm">
- <i class="bi bi-list"></i>
- </a>
- </div>
- </div>
- <div class="card-body table-responsive p-0">
- <table class="table table-striped align-middle">
- <thead>
- <tr>
- <th>Product</th>
- <th>Price</th>
- <th>Sales</th>
- <th>More</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <img
- src={path + "/assets/img/default-150x150.png"}
- alt="Product 1"
- class="rounded-circle img-size-32 me-2"
- />
- Some Product
- </td>
- <td>$13 USD</td>
- <td>
- <small class="text-success me-1">
- <i class="bi bi-arrow-up"></i>
- 12%
- </small>
- 12,000 Sold
- </td>
- <td>
- <a href="#" class="text-secondary">
- <i class="bi bi-search"></i>
- </a>
- </td>
- </tr>
- <tr>
- <td>
- <img
- src={path + "/assets/img/default-150x150.png"}
- alt="Product 1"
- class="rounded-circle img-size-32 me-2"
- />
- Another Product
- </td>
- <td>$29 USD</td>
- <td>
- <small class="text-info me-1">
- <i class="bi bi-arrow-down"></i>
- 0.5%
- </small>
- 123,234 Sold
- </td>
- <td>
- <a href="#" class="text-secondary">
- <i class="bi bi-search"></i>
- </a>
- </td>
- </tr>
- <tr>
- <td>
- <img
- src={path + "/assets/img/default-150x150.png"}
- alt="Product 1"
- class="rounded-circle img-size-32 me-2"
- />
- Amazing Product
- </td>
- <td>$1,230 USD</td>
- <td>
- <small class="text-danger me-1">
- <i class="bi bi-arrow-down"></i>
- 3%
- </small>
- 198 Sold
- </td>
- <td>
- <a href="#" class="text-secondary">
- <i class="bi bi-search"></i>
- </a>
- </td>
- </tr>
- <tr>
- <td>
- <img
- src={path + "/assets/img/default-150x150.png"}
- alt="Product 1"
- class="rounded-circle img-size-32 me-2"
- />
- Perfect Item
- <span class="badge text-bg-danger">NEW</span>
- </td>
- <td>$199 USD</td>
- <td>
- <small class="text-success me-1">
- <i class="bi bi-arrow-up"></i>
- 63%
- </small>
- 87 Sold
- </td>
- <td>
- <a href="#" class="text-secondary">
- <i class="bi bi-search"></i>
- </a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <!-- /.card -->
- </div>
- <!-- /.col-md-6 -->
- <div class="col-lg-6">
- <div class="card mb-4">
- <div class="card-header border-0">
- <div class="d-flex justify-content-between">
- <h3 class="card-title">Sales</h3>
- <a href="javascript:void(0);" class="link-primary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">View Report</a>
- </div>
- </div>
- <div class="card-body">
- <div class="d-flex">
- <p class="d-flex flex-column">
- <span class="fw-bold fs-5">$18,230.00</span>
- <span>Sales Over Time</span>
- </p>
- <p class="ms-auto d-flex flex-column text-end">
- <span class="text-success">
- <i class="bi bi-arrow-up"></i> 33.1%
- </span>
- <span class="text-secondary">Since Past Year</span>
- </p>
- </div>
- <!-- /.d-flex -->
- <div class="position-relative mb-4">
- <div id="sales-chart"></div>
- </div>
- <div class="d-flex flex-row justify-content-end">
- <span class="me-2">
- <i class="bi bi-square-fill text-primary"></i> This year
- </span>
- <span>
- <i class="bi bi-square-fill text-secondary"></i> Last year
- </span>
- </div>
- </div>
- </div>
- <!-- /.card -->
- <div class="card">
- <div class="card-header border-0">
- <h3 class="card-title">Online Store Overview</h3>
- <div class="card-tools">
- <a href="#" class="btn btn-sm btn-tool">
- <i class="bi bi-download"></i>
- </a>
- <a href="#" class="btn btn-sm btn-tool">
- <i class="bi bi-list"></i>
- </a>
- </div>
- </div>
- <div class="card-body">
- <div
- class="d-flex justify-content-between align-items-center border-bottom mb-3"
- >
- <p class="text-success fs-2">
- <svg
- height="32"
- fill="none"
- stroke="currentColor"
- stroke-width="1.5"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- aria-hidden="true"
- >
- <path
- stroke-linecap="round"
- stroke-linejoin="round"
- d="M19.5 12c0-1.232-.046-2.453-.138-3.662a4.006 4.006 0 00-3.7-3.7 48.678 48.678 0 00-7.324 0 4.006 4.006 0 00-3.7 3.7c-.017.22-.032.441-.046.662M19.5 12l3-3m-3 3l-3-3m-12 3c0 1.232.046 2.453.138 3.662a4.006 4.006 0 003.7 3.7 48.656 48.656 0 007.324 0 4.006 4.006 0 003.7-3.7c.017-.22.032-.441.046-.662M4.5 12l3 3m-3-3l-3 3"
- ></path>
- </svg>
- </p>
- <p class="d-flex flex-column text-end">
- <span class="fw-bold">
- <i class="bi bi-graph-up-arrow text-success"></i> 12%
- </span>
- <span class="text-secondary">CONVERSION RATE</span>
- </p>
- </div>
- <!-- /.d-flex -->
- <div
- class="d-flex justify-content-between align-items-center border-bottom mb-3"
- >
- <p class="text-info fs-2">
- <svg
- height="32"
- fill="none"
- stroke="currentColor"
- stroke-width="1.5"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- aria-hidden="true"
- >
- <path
- stroke-linecap="round"
- stroke-linejoin="round"
- d="M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"
- ></path>
- </svg>
- </p>
- <p class="d-flex flex-column text-end">
- <span class="fw-bold">
- <i class="bi bi-graph-up-arrow text-info"></i> 0.8%
- </span>
- <span class="text-secondary">SALES RATE</span>
- </p>
- </div>
- <!-- /.d-flex -->
- <div
- class="d-flex justify-content-between align-items-center mb-0"
- >
- <p class="text-danger fs-2">
- <svg
- height="32"
- fill="none"
- stroke="currentColor"
- stroke-width="1.5"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- aria-hidden="true"
- >
- <path
- stroke-linecap="round"
- stroke-linejoin="round"
- d="M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z"
- ></path>
- </svg>
- </p>
- <p class="d-flex flex-column text-end">
- <span class="fw-bold">
- <i class="bi bi-graph-down-arrow text-danger"></i>
- 1%
- </span>
- <span class="text-secondary">REGISTRATION RATE</span>
- </p>
- </div>
- <!-- /.d-flex -->
- </div>
- </div>
- </div>
- <!-- /.col-md-6 -->
- </div>
- <!--end::Row-->
- </div>
- <!--end::Container-->
- </div>
- <!--end::App Content-->
- </main>
- <!--end::App Main-->
- <Footer />
- </div>
- <!--end::App Wrapper-->
- <!--begin::Script-->
- <Scripts path={path} />
- <!-- OPTIONAL SCRIPTS -->
- <!-- apexcharts -->
- <script
- src="https://cdn.jsdelivr.net/npm/apexcharts@3.37.1/dist/apexcharts.min.js"
- integrity="sha256-+vh8GkaU7C9/wbSLIcwq82tQ2wTf44aOHA8HlBMwRI8="
- crossorigin="anonymous"
- ></script>
- <script is:inline>
- // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
- // IT'S ALL JUST JUNK FOR DEMO
- // ++++++++++++++++++++++++++++++++++++++++++
- const visitors_chart_options = {
- series: [
- {
- name: "High - 2023",
- data: [100, 120, 170, 167, 180, 177, 160],
- },
- {
- name: "Low - 2023",
- data: [60, 80, 70, 67, 80, 77, 100],
- },
- ],
- chart: {
- height: 200,
- type: "line",
- toolbar: {
- show: false,
- },
- },
- colors: ["#0d6efd", "#adb5bd"],
- stroke: {
- curve: "smooth",
- },
- grid: {
- borderColor: "#e7e7e7",
- row: {
- colors: ["#f3f3f3", "transparent"], // takes an array which will be repeated on columns
- opacity: 0.5,
- },
- },
- legend: {
- show: false,
- },
- markers: {
- size: 1,
- },
- xaxis: {
- categories: ["22th", "23th", "24th", "25th", "26th", "27th", "28th"],
- },
- };
- const visitors_chart = new ApexCharts(
- document.querySelector("#visitors-chart"),
- visitors_chart_options
- );
- visitors_chart.render();
- const sales_chart_options = {
- series: [
- {
- name: "Net Profit",
- data: [44, 55, 57, 56, 61, 58, 63, 60, 66],
- },
- {
- name: "Revenue",
- data: [76, 85, 101, 98, 87, 105, 91, 114, 94],
- },
- {
- name: "Free Cash Flow",
- data: [35, 41, 36, 26, 45, 48, 52, 53, 41],
- },
- ],
- chart: {
- type: "bar",
- height: 200,
- },
- plotOptions: {
- bar: {
- horizontal: false,
- columnWidth: "55%",
- endingShape: "rounded",
- },
- },
- legend: {
- show: false,
- },
- colors: ["#0d6efd", "#20c997", "#ffc107"],
- dataLabels: {
- enabled: false,
- },
- stroke: {
- show: true,
- width: 2,
- colors: ["transparent"],
- },
- xaxis: {
- categories: [
- "Feb",
- "Mar",
- "Apr",
- "May",
- "Jun",
- "Jul",
- "Aug",
- "Sep",
- "Oct",
- ],
- },
- fill: {
- opacity: 1,
- },
- tooltip: {
- y: {
- formatter: function (val) {
- return "$ " + val + " thousands";
- },
- },
- },
- };
- const sales_chart = new ApexCharts(
- document.querySelector("#sales-chart"),
- sales_chart_options
- );
- sales_chart.render();
- </script>
- <!--end::Script-->
- </body><!--end::Body-->
- </html>
|