Skip to content

Commit 6513144

Browse files
author
Gijs Jorissen
committed
New components
1 parent 9269322 commit 6513144

File tree

5 files changed

+57
-8
lines changed

5 files changed

+57
-8
lines changed

config/bootstrap-components.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
return [
44

5-
// Bootstrap version
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Bootstrap version
8+
|--------------------------------------------------------------------------
9+
*/
610

711
'version' => 4,
12+
813
];
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<span
2+
class="
3+
badge
4+
badge-{{ $severity }}
5+
{{ $class or '' }}
6+
@istrue($pill, 'badge-pill')
7+
"
8+
>
9+
{{ $slot }}
10+
</span>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<ol class="breadcrumb {{ $class or '' }}">
2+
{{ $slot }}
3+
</ol>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<div id="{{ $id or 'carousel' }}" class="carousel slide {{ $class or '' }}" data-ride="carousel">
2+
@istrue($indicators)
3+
<ol class="carousel-indicators">
4+
@isset($items)
5+
@foreach($items as $item)
6+
<li data-target="#{{ $id or 'carousel' }}" data-slide-to="{{ $loop->index }}"></li>
7+
@endforeach
8+
@else
9+
{{ $indicators }}
10+
@endisset
11+
</ol>
12+
@endistrue
13+
14+
<div class="carousel-inner" role="listbox">
15+
@isset($items)
16+
@foreach($items as $item)
17+
<div class="carousel-item @istrue($loop->first, 'active')">{{ $item }}</div>
18+
@endforeach
19+
@endisset
20+
21+
{{ $slot }}
22+
</div>
23+
24+
@istrue($controls)
25+
<a class="carousel-control-prev" href="#{{ $id or 'carousel' }}" role="button" data-slide="prev">
26+
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
27+
<span class="sr-only">Previous</span>
28+
</a>
29+
30+
<a class="carousel-control-next" href="#{{ $id or 'carousel' }}" role="button" data-slide="next">
31+
<span class="carousel-control-next-icon" aria-hidden="true"></span>
32+
<span class="sr-only">Next</span>
33+
</a>
34+
@endistrue
35+
</div>

resources/views/bs4/jumbotron.blade.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ class="jumbotron
44
@istrue($fullwidth, 'jumbotron-fluid')
55
"
66
>
7-
@istrue($fullwidth)
8-
<div class="container">
9-
@endistrue
7+
@istrue($fullwidth, '<div class="container">')
108

119
@isset($heading)
1210
<h1 class="display-3">{{ $heading }}</h1>
1311
@endisset
1412

15-
{{ $slot }}
13+
{{ $slot }}
1614

17-
@istrue($fullwidth)
18-
</div>
19-
@endistrue
15+
@istrue($fullwidth, '</div>')
2016
</div>

0 commit comments

Comments
 (0)