-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add external links that make some content easier to discover (#2068)
* Add external links that make some content easier to discover * Use appropriate icons for each external link * Update snapshots * Fix lint errors * Add documentation link for compile pipeline in upload pipeline dialog * Update snapshots
- Loading branch information
1 parent
d315bf6
commit 4a0a420
Showing
9 changed files
with
411 additions
and
23 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Needed to import png files directly. | ||
// Reference: https://github.com/wmonk/create-react-app-typescript/tree/master/template#adding-images-fonts-and-files | ||
declare module '*.png'; |
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,19 @@ | ||
import React, { DetailedHTMLProps, AnchorHTMLAttributes } from 'react'; | ||
import { stylesheet } from 'typestyle'; | ||
import { color } from '../Css'; | ||
|
||
const css = stylesheet({ | ||
link: { | ||
$nest: { | ||
'&:hover': { | ||
textDecoration: 'underline', | ||
}, | ||
}, | ||
color: color.theme, | ||
textDecoration: 'none', | ||
}, | ||
}); | ||
|
||
export const ExternalLink: React.FC< | ||
DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> | ||
> = props => <a {...props} className={css.link} target='_blank' rel='noreferrer noopener' />; |
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
Oops, something went wrong.