This repository was archived by the owner on Sep 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(component): Jumbotron & List-group added
(cherry picked from commit 49f1c61)
- Loading branch information
1 parent
baf92af
commit 273bfe5
Showing
10 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="jumbotron"> | ||
<h1 class="display-4">Hello, world!</h1> | ||
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p> | ||
<hr class="my-4"> | ||
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p> | ||
<a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-jumbotron', | ||
templateUrl: './jumbotron.component.html' | ||
}) | ||
export class DemoJumbotronComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<ul class="list-group"> | ||
<li class="list-group-item">Cras justo odio</li> | ||
<li class="list-group-item">Dapibus ac facilisis in</li> | ||
<li class="list-group-item">Morbi leo risus</li> | ||
</ul> | ||
|
||
<hr> | ||
|
||
<div class="list-group"> | ||
<a href="#" class="list-group-item list-group-item-action active"> | ||
Cras justo odio | ||
</a> | ||
<a href="#" class="list-group-item list-group-item-action">Dapibus ac facilisis in</a> | ||
<a href="#" class="list-group-item list-group-item-action disabled" tabindex="-1" aria-disabled="true">Vestibulum at eros</a> | ||
</div> | ||
|
||
<hr> | ||
|
||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item">Cras justo odio</li> | ||
<li class="list-group-item">Dapibus ac facilisis in</li> | ||
<li class="list-group-item">Vestibulum at eros</li> | ||
</ul> | ||
|
||
<hr> | ||
|
||
<ul class="list-group list-group-horizontal"> | ||
<li class="list-group-item">Cras justo odio</li> | ||
<li class="list-group-item">Dapibus ac facilisis in</li> | ||
<li class="list-group-item">Morbi leo risus</li> | ||
</ul> | ||
|
||
<hr> | ||
|
||
<ul class="list-group"> | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
Cras justo odio | ||
<span class="badge badge-primary badge-pill">14</span> | ||
</li> | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
Dapibus ac facilisis in | ||
<span class="badge badge-primary badge-pill">2</span> | ||
</li> | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
Morbi leo risus | ||
<span class="badge badge-primary badge-pill">1</span> | ||
</li> | ||
</ul> | ||
|
||
<hr> | ||
|
||
<div class="list-group"> | ||
<a href="#" class="list-group-item list-group-item-action active"> | ||
<div class="d-flex w-100 justify-content-between"> | ||
<h5 class="mb-1">List group item heading</h5> | ||
<small>3 days ago</small> | ||
</div> | ||
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p> | ||
<small>Donec id elit non mi porta.</small> | ||
</a> | ||
<a href="#" class="list-group-item list-group-item-action"> | ||
<div class="d-flex w-100 justify-content-between"> | ||
<h5 class="mb-1">List group item heading</h5> | ||
<small class="text-muted">3 days ago</small> | ||
</div> | ||
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p> | ||
<small class="text-muted">Donec id elit non mi porta.</small> | ||
</a> | ||
<a href="#" class="list-group-item list-group-item-action"> | ||
<div class="d-flex w-100 justify-content-between"> | ||
<h5 class="mb-1">List group item heading</h5> | ||
<small class="text-muted">3 days ago</small> | ||
</div> | ||
<p class="mb-1">Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p> | ||
<small class="text-muted">Donec id elit non mi porta.</small> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-list-group', | ||
templateUrl: './list-group.component.html' | ||
}) | ||
export class DemoListGroupComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'doc-jumbotron', | ||
template: ` | ||
<docs-wrapper component="Jumbotron"> | ||
<p class="mt-4">Check the <a target="_blank" rel="noopener noreferrer" | ||
href="https://boosted.orange.com/docs/4.5/components/jumbotron">ng-bootstrap's original component documentation</a>.</p> | ||
<h3>Demo</h3> | ||
<demo-jumbotron></demo-jumbotron> | ||
<code-box [snippets]="demoSnippets"></code-box> | ||
</docs-wrapper> | ||
` | ||
}) | ||
export class DocJumbotronComponent { | ||
public demoSnippets = { | ||
markup: require('!!prismjs-loader?lang=html!../demos/jumbotron.component.html'), | ||
typescript: require('!!prismjs-loader?lang=typescript!../demos/jumbotron.component.ts') | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'doc-list-group', | ||
template: ` | ||
<docs-wrapper component="List-Group"> | ||
<p class="mt-4">Check the <a target="_blank" rel="noopener noreferrer" | ||
href="https://boosted.orange.com/docs/4.5/components/list-group">ng-bootstrap's original component documentation</a>.</p> | ||
<h3>Demo</h3> | ||
<demo-list-group></demo-list-group> | ||
<code-box [snippets]="demoSnippets"></code-box> | ||
</docs-wrapper> | ||
` | ||
}) | ||
export class DocListGroupComponent { | ||
public demoSnippets = { | ||
markup: require('!!prismjs-loader?lang=html!../demos/list-group.component.html'), | ||
typescript: require('!!prismjs-loader?lang=typescript!../demos/list-group.component.ts') | ||
}; | ||
} |