Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
},
{
"name": "18.x",
"branch": "branch/v18",
"branch": "aatuvai/sso-pages-teleport-sso-integrations",
"repo_path": "aatuvai/teleport",
"isDefault": true
},
{
Expand Down
10 changes: 10 additions & 0 deletions src/components/InlineCTA/InlineCTA.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.inlineCTA {
display: inline-flex;
align-items: center;
gap: var(--m-1);
font-weight: var(--fw-bold);
text-decoration: underline;
color: var(--color-dark-purple);
margin-left: var(--m-1);
vertical-align: middle;
}
24 changes: 24 additions & 0 deletions src/components/InlineCTA/InlineCTA.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import Link, { Props as LinkProps } from "@docusaurus/Link";
import * as images from "./images";
import styles from "./InlineCTA.module.css";

interface InlineCTAProps extends LinkProps {
imageName: keyof typeof images;
children: React.ReactNode;
}

const InlineCTA: React.FC<InlineCTAProps> = ({
imageName,
children,
...rest
}) => {
return (
<Link className={styles.inlineCTA} {...rest}>
<img src={images[imageName]} alt="" width={140} height={40} />
{children}
</Link>
);
};

export default InlineCTA;
export { InlineCTAProps };
1 change: 1 addition & 0 deletions src/components/InlineCTA/images.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as ssoIntegrations } from "./imgs/sso-integrations.png";
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/components/InlineCTA/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
declare module "*.png" {
const value: string;
export default value;
}

declare module "*.jpg" {
const value: string;
export default value;
}

declare module "*.jpeg" {
const value: string;
export default value;
}

declare module "*.webp" {
const value: string;
export default value;
}
2 changes: 2 additions & 0 deletions src/theme/MDXComponents/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import TileGrid from "/src/components/TileGrid";
import { Var } from "/src/components/Variables";
import EnterpriseFeatureCallout from "/src/components/EnterpriseFeatureCallout";
import { ChangelogLink } from "/src/components/ChangelogLink";
import InlineCTA from "/src/components/InlineCTA/InlineCTA";

const MDXComponents: MDXComponentsObject = {
...OriginalMDXComponents,
Expand Down Expand Up @@ -63,6 +64,7 @@ const MDXComponents: MDXComponentsObject = {
Checkpoint,
EnterpriseFeatureBadge,
EnterpriseFeatureCallout,
InlineCTA,
};

export default MDXComponents;
Loading