forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add help/support section (angular#915)
- add links for additional help/support resources in homePage - add twitter, angular event and angular blog Fixes angular#133 Co-authored-by: Michael Prentice <splaktar@gmail.com>
- Loading branch information
Showing
12 changed files
with
163 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,4 +85,5 @@ <h2>Guides</h2> | |
|
||
</main> | ||
|
||
<app-support></app-support> | ||
<app-footer></app-footer> |
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
41 changes: 41 additions & 0 deletions
41
...al.angular.io/material.angular.io/material.angular.io/src/app/shared/support/support.html
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,41 @@ | ||
<div class="docs-help-support"> | ||
<ul> | ||
<li> | ||
<a href="https://stackoverflow.com/questions/tagged/angular-material"> | ||
<img src="../../../assets/img/homepage/stackoverflow-logo.svg" alt="StackOverflow icon" loading="lazy"> | ||
StackOverflow | ||
</a> | ||
<div class="docs-help-support-description">Questions tagged with <a | ||
href="https://stackoverflow.com/questions/tagged/angular-material">angular-material</a> or | ||
<a href="https://stackoverflow.com/questions/tagged/angular-cdk">angular-cdk</a></div> | ||
</li> | ||
<li> | ||
<a href="https://discord.gg/angular"> | ||
<img src="../../../assets/img/homepage/discord-logo.svg" alt="Discord icon" loading="lazy"> | ||
Discord | ||
</a> | ||
<div class="docs-help-support-description">Angular Community on Discord</div> | ||
</li> | ||
<li> | ||
<a href="https://groups.google.com/g/angular-material2"> | ||
<img src="../../../assets/img/homepage/google-groups-logo.png" alt="Google Groups icon" loading="lazy"> | ||
Google Groups | ||
</a> | ||
<div class="docs-help-support-description">Angular Components discussion forum</div> | ||
</li> | ||
<li> | ||
<a href="https://twitter.com/angular"> | ||
<img src="../../../assets/img/homepage/twitter-logo.svg" alt="Twitter icon" loading="lazy"> | ||
</a> | ||
<div class="docs-help-support-description">Connect with @angular on Twitter</div> | ||
</li> | ||
<li> | ||
<a href="https://blog.angular.io"> | ||
<img src="../../../assets/img/homepage/angular-logo.svg" alt="Angular icon" loading="lazy"> | ||
Angular Blog | ||
</a> | ||
<div class="docs-help-support-description">News and Tips from the Angular Team</div> | ||
</li> | ||
</ul> | ||
</div> |
61 changes: 61 additions & 0 deletions
61
...al.angular.io/material.angular.io/material.angular.io/src/app/shared/support/support.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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
.docs-help-support { | ||
width: 75%; | ||
margin: auto; | ||
padding-bottom: 40px; | ||
} | ||
|
||
.docs-help-support ul { | ||
display: flex; | ||
justify-content: space-around; | ||
list-style: none; | ||
margin: 0; | ||
padding: 18px 0; | ||
} | ||
|
||
.docs-help-support ul li { | ||
text-align: center; | ||
flex: 0 1 200px; | ||
-moz-box-flex: 0; | ||
} | ||
|
||
.docs-help-support ul li a { | ||
font-weight: 500; | ||
text-decoration: none; | ||
} | ||
|
||
.docs-help-support ul li a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.docs-help-support ul li a img { | ||
display: block; | ||
margin: 10px auto; | ||
width: 50px; | ||
height: 50px; | ||
} | ||
|
||
.docs-help-support-description { | ||
font-size: 14px; | ||
margin-top: 5px; | ||
} | ||
|
||
@media screen and (max-width: 884px) { | ||
.docs-help-support { | ||
padding-bottom: 20px; | ||
} | ||
.docs-help-support ul { | ||
display: block; | ||
} | ||
|
||
.docs-help-support ul li a { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.docs-help-support ul li a img { | ||
margin: 10px; | ||
|
||
} | ||
.docs-help-support-description { | ||
display: none; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...angular.io/material.angular.io/material.angular.io/src/app/shared/support/support.spec.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,25 @@ | ||
import {ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import {Support} from './support'; | ||
|
||
describe('HelpSupportComponent', () => { | ||
let component: Support; | ||
let fixture: ComponentFixture<Support>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [Support] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(Support); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
9 changes: 9 additions & 0 deletions
9
...rial.angular.io/material.angular.io/material.angular.io/src/app/shared/support/support.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,9 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-support', | ||
templateUrl: './support.html', | ||
styleUrls: ['./support.scss'] | ||
}) | ||
export class Support { | ||
} |
8 changes: 8 additions & 0 deletions
8
...aterial.angular.io/material.angular.io/src/assets/img/homepage/angular-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...aterial.angular.io/material.angular.io/src/assets/img/homepage/discord-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.95 KB
...l.angular.io/material.angular.io/src/assets/img/homepage/google-groups-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...l.angular.io/material.angular.io/src/assets/img/homepage/stackoverflow-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...aterial.angular.io/material.angular.io/src/assets/img/homepage/twitter-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.