This repository has been 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): stepbar & scrollspy added
- Loading branch information
1 parent
42f9e80
commit 7fd0cef
Showing
11 changed files
with
170 additions
and
2 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,58 @@ | ||
<nav role="navigation" id="navbar-example2" class="navbar navbar-dark"> | ||
<a class="navbar-brand" href="#"><img src="assets/img/orange_logo.svg" class="d-inline-block align-bottom mr-3" alt="Back to homepage" title="Back to homepage" width="50" height="50" loading="lazy"/></a> | ||
<ul class="nav nav-pills"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#fat">@fat</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#mdo">@mdo</a> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a> | ||
<div class="dropdown-menu"> | ||
<a class="dropdown-item" href="#one">one</a> | ||
<a class="dropdown-item" href="#two">two</a> | ||
<div role="separator" class="dropdown-divider"></div> | ||
<a class="dropdown-item" href="#three">three</a> | ||
</div> | ||
</li> | ||
</ul> | ||
</nav> | ||
<div data-spy="scroll" data-target="#navbar-example2" data-offset="0" class="scrollspy-example"> | ||
<h4 id="fat">@fat</h4> | ||
<p> | ||
Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. | ||
Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. | ||
Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. | ||
Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat. | ||
</p> | ||
<h4 id="mdo">@mdo</h4> | ||
<p> | ||
Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. | ||
Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. | ||
Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt. | ||
</p> | ||
<h4 id="one">one</h4> | ||
<p> | ||
Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. | ||
High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone. | ||
</p> | ||
<h4 id="two">two</h4> | ||
<p>In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. | ||
Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. | ||
Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. | ||
Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt. | ||
</p> | ||
<h4 id="three">three</h4> | ||
<p> | ||
Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. | ||
Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. | ||
Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. | ||
Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat. | ||
|
||
Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. | ||
Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. | ||
Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. | ||
VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. | ||
</p> | ||
</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,8 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-scrollspy', | ||
templateUrl: './scrollspy.component.html' | ||
}) | ||
|
||
export class DemoScrollspyComponent {} |
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 @@ | ||
<nav role="navigation" class="o-stepbar" aria-label="Checkout process"> | ||
<p class="float-left mt-2 mr-2 font-weight-bold d-sm-none">Step</p> | ||
<ol> | ||
<li class="stepbar-item"> | ||
<a class="stepbar-link" href="#" title="1. Sign in">Sign in</a> | ||
</li> | ||
<li class="stepbar-item current"> | ||
<a class="stepbar-link" href="#" title="2. Review" aria-current="step">Review</a> | ||
</li> | ||
<li class="stepbar-item"> | ||
<a class="stepbar-link" href="#" title="3. Delivery">Delivery</a> | ||
</li> | ||
<li class="stepbar-item"> | ||
<a class="stepbar-link" href="#" title="4. Payment">Payment</a> | ||
</li> | ||
<li class="stepbar-item"> | ||
<a class="stepbar-link" href="#" title="5. Place order">Place order</a> | ||
</li> | ||
</ol> | ||
</nav> |
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-stepbar', | ||
templateUrl: './stepbar.component.html' | ||
}) | ||
export class DemoStepbarComponent {} |
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-scrollspy', | ||
template: ` | ||
<docs-wrapper component="Scrollspy"> | ||
<p class="mt-4">Check the <a target="_blank" rel="noopener noreferrer" | ||
href="https://boosted.orange.com/docs/4.5/components/spinners">ng-bootstrap's original component documentation</a>.</p> | ||
<h3>Demo</h3> | ||
<demo-scrollspy></demo-scrollspy> | ||
<code-box [snippets]="demoSnippets"></code-box> | ||
</docs-wrapper> | ||
` | ||
}) | ||
export class DocScrollspyComponent { | ||
public demoSnippets = { | ||
markup: require('!!prismjs-loader?lang=html!../demos/scrollspy.component.html'), | ||
typescript: require('!!prismjs-loader?lang=typescript!../demos/scrollspy.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-stepbar', | ||
template: ` | ||
<docs-wrapper component="Stepbar"> | ||
<p class="mt-4">Check the <a target="_blank" rel="noopener noreferrer" | ||
href="https://boosted.orange.com/docs/4.5/components/stepbar">ng-bootstrap's original component documentation</a>.</p> | ||
<h3>Demo</h3> | ||
<demo-stepbar></demo-stepbar> | ||
<code-box [snippets]="demoSnippets"></code-box> | ||
</docs-wrapper> | ||
` | ||
}) | ||
export class DocStepbarComponent { | ||
public demoSnippets = { | ||
markup: require('!!prismjs-loader?lang=html!../demos/stepbar.component.html'), | ||
typescript: require('!!prismjs-loader?lang=typescript!../demos/stepbar.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 |
---|---|---|
|
@@ -55,4 +55,11 @@ pre { | |
} | ||
} | ||
|
||
.scrollspy-example { | ||
position: relative; | ||
height: 200px; | ||
margin-top: .5rem; | ||
overflow: auto; | ||
} | ||
|
||
|