-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(package): new -
MatLinkPreviewComponent
has optional linkPrevi…
…ew input
- Loading branch information
1 parent
cfd9c14
commit 3d808c6
Showing
5 changed files
with
52 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,44 @@ | ||
<div class="jumbotron jumbotron-fluid"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-4 d-flex justify-content-center justify-content-md-end"> | ||
<img src="assets/logo.svg" alt="@angular-material-extensions/link-preview logo" class="logo"> | ||
</div> | ||
<div class="col-sm-8 text-center text-md-left"> | ||
<h1>@angular-material-extensions/link-preview</h1> | ||
<p>Angular open source UI library to preview web links</p> | ||
<p>Scroll down to see it in action!</p> | ||
<p class="buttons"> | ||
<a class="btn btn-outline-primary btn-lg" href="https://github.com/angular-material-extensions/link-preview" target="_blank"><i class="fa fa-github fa-lg"></i> Code on Github</a> | ||
<a class="btn btn-outline-primary btn-lg" href="doc/index.html" target="_blank"><i class="fa fa-book fa-lg"></i> Documentation</a> | ||
<a class="btn btn-outline-primary btn-lg" href="#" (click)="editOnStackBlitz()"><i class="fa fa-bolt fa-lg"></i> Edit on StackBlitz</a> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-4 d-flex justify-content-center justify-content-md-end"> | ||
<img src="assets/logo.svg" alt="@angular-material-extensions/link-preview logo" class="logo"> | ||
</div> | ||
<div class="col-sm-8 text-center text-md-left"> | ||
<h1>@angular-material-extensions/link-preview</h1> | ||
<p>Angular open source UI library to preview web links</p> | ||
<p>Scroll down to see it in action!</p> | ||
<p class="buttons"> | ||
<a class="btn btn-outline-primary btn-lg" href="https://github.com/angular-material-extensions/link-preview" | ||
target="_blank"><i class="fa fa-github fa-lg"></i> Code on Github</a> | ||
<a class="btn btn-outline-primary btn-lg" href="doc/index.html" target="_blank"><i | ||
class="fa fa-book fa-lg"></i> Documentation</a> | ||
<a class="btn btn-outline-primary btn-lg" href="#" (click)="editOnStackBlitz()"><i | ||
class="fa fa-bolt fa-lg"></i> Edit on StackBlitz</a> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<section class="home"> | ||
<div class="container"> | ||
<!-- put your content here--> | ||
<p>Put your content here. Typically, examples of your library in action (directives, components...)</p> | ||
<!-- put your content here--> | ||
|
||
<div class="mx-auto"> | ||
<mat-link-preview [linkPreview]="linkExample"></mat-link-preview> | ||
</div> | ||
|
||
<mat-form-field class="demo-full-width"> | ||
<mat-label>Address 2</mat-label> | ||
<textarea matInput matLinkPreview></textarea> | ||
</mat-form-field> | ||
|
||
<div> | ||
<mat-link-preview-container></mat-link-preview-container> | ||
</div> | ||
<!--<mat-component></mat-component>--> | ||
<p>Happy ng-hacking!</p> | ||
<!--<div>--> | ||
<!--<mat-link-preview-container></mat-link-preview-container>--> | ||
<!--</div>--> | ||
<!--<mat-component></mat-component>--> | ||
<p>Happy ng-hacking!</p> | ||
</div> | ||
</section> |
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
2 changes: 1 addition & 1 deletion
2
src/module/components/mat-link-preview/mat-link-preview.component.scss
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
:host { | ||
display: block; | ||
display: inline-block; | ||
} |
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