Bulma: What is the best way to create an administration template ?

Created on 6 Apr 2017  路  8Comments  路  Source: jgthms/bulma

Hi,

I'm asking myself what is the best way to create a classic Administration theme using bulma ?
The goal is to have:

  • 1 top nav bar
  • one left menu (full-height)
  • 1 content area

Like the example on this screenshot
screen shot 2017-04-06 at 20 28 49

Can you please give me your opinion about the 2 ways below:

  1. Create one root full-height hero with hero-head including nav component and hero-body including 2 columns (one for the left administration multi-level menu including the Menu component and one column for the content)

  2. Add Nav component as first root element and 2 columns as second root component (one for the left administration multi-level menu including the Menu component and one column for the content)

Don't hesitate to propose other option or improvement.

Kind regards

Most helpful comment

The most basic dashboard layout could be something like this:

<nav class="nav">
  <!-- top nav menu -->
</nav>
<div class="section">
  <div class="columns">
    <aside class="column is-2">
      <nav class="menu">
        <!-- sidebar menu -->
      </nav>
    </aside>
    <main class="column">
      <!-- main content area -->
    </main>
  </div>
</div>

Here is a full example

The menu is not full height but can be with some CSS tweaks, same with the main content area.

All 8 comments

Here is my own opinion.

When I take a step back, and look at these kind of dashboard, they are very bloated to me. At first place, the reason I use Bulma because I feel it is simple enough to get started without bloating thing that I rarely use(I know I can select individual component but still).

So I tried to go with a minimal design for dashboard. I found a good example of dashboard design is DigitalOcean. Their dashboard is very clean and get expose per step instead of bloating it with everything.

This is how I designed my dashboard [1]

screen shot 2017-04-08 at 2 38 39 pm

I have a top navigation. And each page sections may or may not have its own horizontal sub navigation like bulna docs.

I opts for this design because I think when using horizontal menu, it limits my space and makes me thing about what I can put in there with only some core things.


Hi @kureikain,

thank you for your feedback. I agree with you about the simplicity and I really like your design. But my concern is : what about an application which can handle a lot of modules, then a lot of root links into the menu ? I'm afraid that in this way there is not enough space on top (even by splitting them into root links and sublinks).

Regards,

The most basic dashboard layout could be something like this:

<nav class="nav">
  <!-- top nav menu -->
</nav>
<div class="section">
  <div class="columns">
    <aside class="column is-2">
      <nav class="menu">
        <!-- sidebar menu -->
      </nav>
    </aside>
    <main class="column">
      <!-- main content area -->
    </main>
  </div>
</div>

Here is a full example

The menu is not full height but can be with some CSS tweaks, same with the main content area.

Hi @IlanF

Thank you for this simple layout and the example.

Why using a hero for the top navbar ?

Regards

No particular reason, I just liked the way it looked better...
You can remove the .hero and only use the .nav if you don't intend to use the hero-title/subtitle / colors.

Thanks for your feedback.

One last question: How to manage the sidebar menu on tablet and mobile to display it using the "burger icon" instead of displaying it at the top of the page ?

Or maybe there is a better way to handle this than the "burger icon".

Up

Do you know how to create a full-height template :

  • Fix top navbar
  • Side menubar with vertical scroll
  • Right page content with independent scroll

Regards

We are proud to announce the first premium administration template on CreativeBulma :-D.
try it at: https://demo.creativebulma.net/hexalight

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NurdinDev picture NurdinDev  路  3Comments

Cosbgn picture Cosbgn  路  3Comments

swthate picture swthate  路  3Comments

jaredreich picture jaredreich  路  3Comments

Antrikshy picture Antrikshy  路  3Comments