2017 © Pedro Peláez
 

library laravel-bulma-components

View components and Sublime Text snippets to integrate Bulma.io easier into your Laravel 5.4 (or more) projects

image

bittenbyte/laravel-bulma-components

View components and Sublime Text snippets to integrate Bulma.io easier into your Laravel 5.4 (or more) projects

  • Monday, February 6, 2017
  • by jhmilan
  • Repository
  • 3 Watchers
  • 3 Stars
  • 59 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

Laravel Bulma Components

View components and Sublime Text snippets to integrate Bulma.io easier into your Laravel 5.4 (or more) projects., (*1)

Install

Via Composer, (*2)

``` bash $ composer require bittenbyte/laravel-bulma-components, (*3)


## Setup Add the service provider to your config/app.php ``` bash BittenByte\LaravelBulmaComponents\LaravelBulmaComponentsServiceProvider::class,

optionally you can publish vendor assets and customize/modify those view components, (*4)

php artisan vendor:publish --tag="views" --provider="BittenByte\LaravelBulmaComponents\LaravelBulmaComponentsServiceProvider"

If you want you want to use ST3 snippets we recommend you to symlink the snippets folder. To do that just:, (*5)

# Clone this repo
cd ~/your-git-repos
git clone git@github.com:BittenByte/laravel-bulma-components.git
#cd to your sublime Packages/User folder, in our case (Mac Os X)
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/
ln -s ~/your-git-repos/snippets bulma-snippets

Examples

Section (snippet bl-section,tab)

    {{-- Your blade stuff --}}

    @component('bulma::layout.section', ['id' => 'my-id', 'class' => 'is-blue'])
        my section content
    @endcomponent

    {{-- Your blade stuff --}}

Section (snippet bl-level,tab)

    {{-- Your blade stuff --}}

    @component('bulma::components.level', ['class' => 'is-mobile'])
        {{-- Left/Right level starts here --}}
        @slot('leftSide') 
            <div class="level-item">
                something
            </div>
        @endslot
        @slot('rightSide')  @endslot
        {{-- Left/Right level ends here --}}

        {{-- Centered level starts here --}}

            <div class="level-item has-text-centered">
                something
            </div>
        {{-- Centered level ends here --}}
    @endcomponent

    {{-- Your blade stuff --}}

Media (snippet bl-media,tab)

    {{-- Your blade stuff --}}

    @component('bulma::components.media', ['id' => 'my-id', 'class' => 'is-blue'])
        @slot('mediaLeft')
            <figure>
                <p class="image is-64x64">
                  <img src="http://bulma.io/images/placeholders/128x128.png">
                </p>
            </figure>
        @endslot
        your media content
    @endcomponent

    {{-- Your blade stuff --}}

Media (snippet bl-card,tab)

    {{-- Your blade stuff --}}

    @component('bulma::components.card', [
        'id' => 'my-id',
        'class' => 'is-blue',
        'cardImage' => [
            'src' => 'http://bulma.io/images/placeholders/1280x960.png',
            'alt' => 'some alt attribute'
        ],
        ])
        @slot('header') My header @endslot
        my content
        @slot('footer') 
            <a class="card-footer-item">Save</a>
            <a class="card-footer-item">Edit</a>
            <a class="card-footer-item">Delete</a>
        @endslot
    @endcomponent

    {{-- Your blade stuff --}}

To-do

More blade sections to add and sublime snippet, (*6)

Change log

Please see CHANGELOG for more information what has changed recently., (*7)

Testing

bash $ composer test, (*8)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*9)

Security

If you discover any security related issues, please email support@bittenbyte.io instead of using the issue tracker., (*10)

Credits

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

06/02 2017

dev-master

9999999-dev https://github.com/BittenByte/laravel-bulma-components

View components and Sublime Text snippets to integrate Bulma.io easier into your Laravel 5.4 (or more) projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel email post forward

06/02 2017

0.1.3

0.1.3.0 https://github.com/BittenByte/laravel-bulma-components

View components and Sublime Text snippets to integrate Bulma.io easier into your Laravel 5.4 (or more) projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel email post forward

06/02 2017

0.1.2

0.1.2.0 https://github.com/BittenByte/laravel-bulma-components

View components and Sublime Text snippets to integrate Bulma.io easier into your Laravel 5.4 (or more) projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel email post forward

02/02 2017

0.1.1

0.1.1.0 https://github.com/BittenByte/laravel-bulma-components

View components and Sublime Text snippets to integrate Bulma.io easier into your Laravel 5.4 (or more) projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel email post forward

01/02 2017

0.1.0

0.1.0.0 https://github.com/BittenByte/laravel-bulma-components

View components and Sublime Text snippets to integrate Bulma.io easier into your Laravel 5.4 (or more) projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel email post forward