Top
Go to loading.tsx file and comment or remove Loader section
Remove design of loader from src >> app >> [lng] >> loading.tsx between comment of Loader starts to Loader ends
<!-- Loader starts -->
<div className="loader-wrapper">
<div className="main-loader">
<div className="bar-0"></div>
<div className="bar-1"></div>
<div className="bar-2"></div>
<div className="bar-3"></div>
<div className="bar-4"></div>
</div>
<div className="loading">Loading...</div>
</div>
Your complete route structure is place at app folder
Suppose you are creating a new component (For creating a new component refer create new component ) then you have to add new routes for that components.
/* Dashboards */
import Default from './components/dashboard/default'
import Ecommerce from './components/dashboard/ecommerce'
Use that component name with path in routes array in index.tsx
import Link from 'next-navigation'
<Link href={`/dashboard/default`}> Default </Link>
<Link href={`/dashboard/ecommerce`}>Ecommerce </Link>
Suppose you want to change in your menu sidebar or want to add new menu in your menu section then you just need to open src >> Data >> SidebarData.tsx
{
menutitle: "DashBoards",
items: [
{
title: "Dashboards",
icon: ,
pathSlice: "dashboard",
type: "sub",
badge: true,
badgeName: "2",
badgeColor: "badge badge-light-primary",
active: false,
children: [
{ path: `/dashboard/default`, title: "Default", type: "link" },
{ path: `/dashboard/ecommerce`, title: "Ecommerce", type: "link" },
{ path: `/dashboard/crypto`, title: "Crypto", type: "link" },
],
},
],
},
React provide two types Components :-
Suppose if you want to create a new class component then you just need to create a folder in src >> pages and then create a react file with .jsx extension and then paste code as per your needs.
import React, { Component } from 'react';
class Demo extends Component {
render() {
return (
<div>
//write Html code or structure
</div>
);
}
}
export default Demo;
Suppose if you want to create a new functional component then you just need to create a folder in src >> pages and then create a react file with .jsx extension and then paste code as per your needs.
import React from 'react';
const Demo = () => {
return (
<div>
//write Html code or structure
></div>
);
};
export default Demo;
Suppose you want to use widget then you need to integrate a particular widget in your existing file. Suppose you want to use calneder components in your dashboard then you need to import that widget in your dashboard
import React, { Component } from 'react';
import Datepicker from './datepicker'; //import external dependacy
class Demo extends Component {
render() {
return (
<Datepicker>
//declare like this here
</Datepicker>
);
}
}
export default Demo;
Suppose you want to customize color and font as per your project then you can change it by:
Suppose you want to change color and size of card-body, Alert, Badge, Form input, breadcrumb,buttons, footer, sidebar and many more then you just need to change that particular color from _variable.scss in assets >> scss >> theme >> _variable.scss
You can change font of your theme from index.html in public folder
<link href="https://fonts.googleapis.com/css?family=Rubik:400,400i,500,500i,700,700i&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900&display=swap">
We have provided a bunch of page layouts and menu layouts that can be implemented with just a options change to body!
For creating your dream layout open customizer by click on setting icon
You can change your theme by clicking particular setting
For converting your theme with new amazing layout just click on icon showing in below image and select layout as per your choice
Then you just need to click on configuration button
Configuration popup will be open then just click on copy json button which will copy configuration of theme which you want
Now go to our theme >> src >> data >> customizer >> config.jsx and then just replace completeconfig.jsx with your new configuration and re-run theme using npm start.
{
"settings": {
"layout_type": "ltr",
"sidebar": {
"type": "compact-wrapper"
},
"sidebar_setting": "default-sidebar",
},
"color": {
"primary_color": "#7366ff",
"secondary_color": "#f73164",
"mix_background_layout": "light-only",
},
}
}
As we have given amazing layouts by adding them in URL so you just need to add your choice name layout in URL and you have that with you
Please refer the below table for corresponding classes. it is just for your inforamation you do not need to bother about this it's dynamically take particular classes according to your needs.
Layout | Options |
---|---|
Boxed Layout | Class: box-layout |
RTL Layout | Class: rtl |
Light Layout | Class: light-only |
Dark Sidebar | Class: dark-sidebar |
Dark Layout | Class: dark-only |
We have some inbuilt themes for sidebar that can be switched with just a class change
Sidebar | Options |
---|---|
Horizontal Sidebar type | Class: "page-wrapper horizontal-wrapper" and "page-body-wrapper horizontal-menu" |
Bordered Navigation | Attribute: sidebar-layout="border-sidebar" |
Sidebar icons color | Attribute: sidebar-layout="iconcolor-sidebar" |
Suppose you want to add RTL in your application then you just need to set "layout_type" as RTL so application will be converted in RTL layout.
{
"settings": {
"layout_type": "rtl",
"sidebar": {
"type": "compact-wrapper",
"body_type": "sidebar-icon"
},
"sidebar_setting": "default-sidebar",
},
"color": {
"primary_color": "#7366ff",
"secondary_color": "#f73164",
"mix_background_layout": "light-only",
},
}
}