For Ace's demo pages I've used Handlebars templating library which makes it easy to separate layouts and large pages into smaller sections.
They are located inside views folder .
The compiled HTML files are inside html folder.
views/layouts folder contains layouts and their relevant partials (sections):
#index.hbs inside the layout's folder
-
dashboardfolder is the layout used in default Dashboard page -
starteris the layout for Starter page. It's similar to main dashboard layout but with minimal content to make it easy to figure out the structure and use it -
dashboard-2is used for Dashboard 2 page and has different layout. In this layout sidebar starts from top of page and navbar is inside content area -
dashboard-3is used for Dashboard 3 page and is similar to Dashboard 2 it has different initial sidebar and navbar themes and content -
dashboard-4is used for Dashboard 4 page and is similar to main Dashboard layout except it has different initial sidebar and navbar themes and content -
horizontalis the layout for Horizontal Menu page -
two-menus-1is the layout for Two Menus page -
landing-1is the layout for Landing Page 1 page -
landing-2is the layout for Landing Page 2 page which is similar to Lading Page 1 except for different navbar content -
coming-soonis the layout for Coming Soon page -
loginis used for the Login page -
_commonsfolder contains some partials that are common between above layouts such as settings box, html head, etc ...
views/pages folder contains demo pages along with their partials which are different sections of a page.
#index.hbs inside the page's folder
For example for Profile page:
views/pages/page-profile/#index.hbsis the main fileviews/pages/page-profile/@page-script.jscontains the script for this page, for example to initiate circular charts, etcviews/pages/page-profile/@page-style.csscontains the CSS used only in this page. They are not included in the mainace.cssbecause they are not needed throughout Ace and are only used in this pageviews/pages/page-profile/@vendor-scripts.hbscontains the list of third party files and plugins used in this pageviews/pages/page-profile/profile-left.hbscontains the left column of profile page (The user info)views/pages/page-profile/activity.hbscontains the content of the second tab (Activity tab)- etc
views/data folder contains data used in Ace's demo such as list of pages, navbar notifications, dashboard's stats, etc.
They are in json or csv format.
For example:
views/data/layouts/sidebar.jsoncontains the page list (i.e. sidebar elements)views/data/layouts/navbar-notif.jsoncontains navbar notification itemsviews/data/pages/dashboard/conversations.jsoncontains the conversation items displayed in dashboard
In Ace's demo pages, data is retrieved using a custom handlebars helper
{{#each (get "DATA_NAME")}}
{{#each (get "conversations")}}
<img src="{{avatar}}" />
<div>{{message}}</div>
{{/each}}
{{#each (get "layout/navbar-notif")}}
<div>{{title}}</div>
{{/each}}
assets folder contains the following:
- image which contains some images and avatars for demo
- fonts which contains Open Sans font files used by default in Ace's demo. However you can should fonts directly from Google fonts.
- Local fonts are used for faster loading of pages during local development. See Fonts & Icons