Code Monkey home page Code Monkey logo

laravue-spa's Introduction

UI TEMPLATE

Page Template

<div class="col-md-12">
</div>

Page Header

<div class="page-header">
    <h1>Device Data</h1>
</div>

If you want to add button in the header

<div class="page-header">
    <router-link to="/device/maintenance/create">
        <button class="btn btn-primary pull-right">
            <i class="glyphicon glyphicon-plus"></i> Add Device</button>
    </router-link>
    <h1>Device Maintenance</h1>
</div>

Search Panel

<div class="panel panel-default search-panel">
<form class="form-inline search-form">
</form>
</div>

Search Field

<div class="form-group">
    <div class="input-group">
        <div class="input-group-addon"><i class="glyphicon glyphicon-user"></i></div>
        <input type="text" class="form-control" placeholder="Username" v-model="searchCriteria.username">
    </div>
</div>

Form / Search Buttons

Buttons are right align (float right)

<div class="form-group search-button pull-right">
    <button type="button" class="btn btn-primary" @click.prevent="submitForm('device')"> Save</button>
    <button type="button" class="btn btn-default" @click.prevent="resetForm('device')"> Cancel</button>
</div>
<div class="clearfix"></div>

For form buttons, add padding top

<div class="form-group search-button pull-right from-button">

If dialog form, dont add padding

Panel

Always put stuff inside a panel

<div class="panel panel-default">
</div>

Forms

Use Element UI Forms, but bootstrap buttons

Dialogs

Make use of the title property for el-dialog

<el-dialog :visible.sync="deviceDataDialog" width="80%" title="Device Data">

Colors

  • Primary Color: #8FBC39
  • Navbar Color: #6B9942
  • Link Color: #6d961e;
  • Danger Color: #d0744f
  • Warning Color: #eda41d

laravue-spa's People

Watchers

James Cloos avatar Peter Emmanuel Barredo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.