Skip to content

Commit c6c9f0a

Browse files
authored
SSO pages: Teleport Single Sign-On Integrations (#506)
* Add InlineCTA * Add test branch * Switch to svg * Revert "Add test branch" This reverts commit 6b35bcc.
1 parent e94fe54 commit c6c9f0a

File tree

5 files changed

+231
-0
lines changed

5 files changed

+231
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.inlineCTA {
2+
display: inline-flex;
3+
align-items: center;
4+
gap: var(--m-1);
5+
font-weight: var(--fw-bold);
6+
text-decoration: underline;
7+
color: var(--color-dark-purple);
8+
margin-left: var(--m-1);
9+
vertical-align: middle;
10+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import Link, { Props as LinkProps } from "@docusaurus/Link";
2+
import * as images from "./images";
3+
import styles from "./InlineCTA.module.css";
4+
5+
interface InlineCTAProps extends LinkProps {
6+
imageName: keyof typeof images;
7+
children: React.ReactNode;
8+
}
9+
10+
const InlineCTA: React.FC<InlineCTAProps> = ({
11+
imageName,
12+
children,
13+
...rest
14+
}) => {
15+
const InlineSVG = images[imageName];
16+
return (
17+
<Link className={styles.inlineCTA} {...rest}>
18+
<InlineSVG />
19+
{children}
20+
</Link>
21+
);
22+
};
23+
24+
export default InlineCTA;
25+
export { InlineCTAProps };

src/components/InlineCTA/images.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ssoIntegrations } from "./imgs/sso-integrations.svg";

0 commit comments

Comments
 (0)