Giter Club home page Giter Club logo

laravel-zurb-foundation's Introduction

Laravel-Zurb-Foundation (Boilerplate)

A boilerplate using Laravel v5.3 and Foundation 6. All blade views have been re-styled for Foundation 6 for sites. Elixir is configured to compile all the individual components in order to add a bit of flexibility in making custom modifications to the framework.


Jquery, Node-Sass and Foundation are added as devDependencies in the node packagage.json and can be installed via npm:

npm install

Foundation is copied to the "resources/assets/(scss/js)" directory the first time you run gulp:

from node_modules => resources/assets/scss/foundation

from node_modules => resources/assets/js/foundation

NOTE: If you plan on making modifications to the foundation scss files, you should outcomment following from the gulpfile after you ran it once.

    .copy(
        './node_modules/foundation-sites/scss', 
        'resources/assets/scss/foundation'
    )

    .copy(
        './node_modules/foundation-sites/js',
        'resources/assets/js/foundation'
        )

Housekeeping:

The main "app.scss" and "gulpfile.js" files are pre-configured to import foundation scss and js, and include a full list of the individual components which make it easy to add/remove to the mix.


  • resources/assets/scss/app.scss:
    /// Import Foundation 6 for sites
    @import 'foundation/foundation';

    /// Foundation components
    @include foundation-global-styles;
    @include foundation-grid;
    @include foundation-flex-grid;
    @include foundation-typography;
    @include foundation-button;
    ...

  • gulpfile.js:
    /// Foundation 6 core
    'foundation/foundation.core.js',

    /// Foundation 6 components
    'foundation/foundation.abide.js',
    'foundation/foundation.accordion.js',
    'foundation/foundation.accordionMenu.js',
    'foundation/foundation.drilldown.js',
    'foundation/foundation.dropdown.js',
    'foundation/foundation.dropdownMenu.js',
    ...

Boilerplate helper samples for easy prototyping located in App\Helpers, additionally the Helper.php is being autoloaded:

"files": [
        "app/Zen/Helpers/Helper.php"
    ]

Minor modifications:

  • Application name can be set in .env using APP_NAME
  • Foundation powered views (Welcome, auth view, error views)
  • Versioning of css and js files (added in the master blade partial)

Feel free to use at will!


Built on top of Laravel - The PHP Framework For Web Artisans

For more information visit Laravel website.

License

The Laravel framework is open-sourced software licensed under the MIT license.

laravel-zurb-foundation's People

Contributors

istherepie avatar

Watchers

James Cloos avatar nicohe 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.