📄Page Structure

StarterPage.cshtml

@{
   ViewBag.Title = "Starter";
   ViewBag.pTitle = "Dashboard";
   Layout = "~/Views/Shared/_Layout.cshtml";
}
                            

<!-- Start All Card -->
<div class="flex flex-col gap-4 min-h-[calc(100vh-212px)]">
    <div class="grid grid-cols-1 gap-4">
        <div class="gap-6 p-5 bg-white border rounded dark:bg-darklight dark:border-darkborder md:col-span-2 xl:col-span-2 border-black/10">
            <h2 class="mb-4 text-base font-semibold text-black dark:text-white/80">Card Title</h2>
            <div class="grid grid-cols-1 gap-4">
                <div>
                    <img src="~/assets/images/logo-dark.svg" class="mx-auto h-11 dark:hidden " alt="">
                    <img src="~/assets/images/logo-light.svg" class="hidden mx-auto h-11 dark:block" alt="">
                </div>
            </div>
        </div>
    </div>
</div>
<!-- End All Card -->                           
                            
@section scripts{       
    
    <!-- App js -->
    <script src="~/assets/js/app.js"></script>

}

Layout settings

You can change the default layout from Views\Shared\_Layout.cshtml file in the body tag.

<body data-pc-preset="preset-1" data-pc-sidebar-theme="light"
    data-pc-sidebar-caption="true" data-pc-direction="ltr" data-pc-theme="light">
AttributeDescription

data-pc-preset= "preset-1"

To set the your primary theme color you can change ['preset-1' to 'preset-10'] for different color.

data-pc-sidebar-theme = "light"

To set the Light color left Sidebar.

data-pc-sidebar-theme = "dark"

To set the Light color dark Sidebar.

data-pc-sidebar-caption = "true"

To set the caption on.

data-pc-sidebar-caption = "false"

To set the caption off.

data-pc-direction = "ltr"

To set the layout direction left to right.

data-pc-direction = "rtl"

To set the layout direction right to left.

data-pc-theme = "light"

To set the layout theme light.

data-pc-theme = "dark"

To set the layout theme dark.

Last updated