-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nx-dev): update terminal markdown embeds
- Loading branch information
Showing
12 changed files
with
239 additions
and
120 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
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
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
29 changes: 29 additions & 0 deletions
29
nx-dev/ui-markdoc/src/lib/nodes/fences/terminal-shell.component.tsx
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,29 @@ | ||
import { cx } from '@nx/nx-dev/ui-primitives'; | ||
import { ReactNode } from 'react'; | ||
|
||
export function TerminalShellWrapper({ | ||
isMessageBelow, | ||
children, | ||
}: { | ||
isMessageBelow: boolean; | ||
children: ReactNode; | ||
}): JSX.Element { | ||
return ( | ||
<div | ||
className={cx( | ||
'hljs not-prose w-full overflow-x-auto border border-slate-200 bg-slate-50/50 font-mono text-sm dark:border-slate-700 dark:bg-slate-800/60', | ||
isMessageBelow ? 'rounded-t-lg border-b-0' : 'rounded-lg' | ||
)} | ||
> | ||
<div className="relative flex justify-center p-2 border-b border-slate-200 bg-slate-100/50 text-slate-400 dark:border-slate-700 dark:bg-slate-700/50 dark:text-slate-500"> | ||
<div className="absolute flex items-center gap-2 left-2 top-3"> | ||
<span className="w-2 h-2 bg-red-400 rounded-full dark:bg-red-600" /> | ||
<span className="w-2 h-2 bg-yellow-400 rounded-full dark:bg-yellow-600" /> | ||
<span className="w-2 h-2 bg-green-400 rounded-full dark:bg-green-600" /> | ||
</div> | ||
<span className="h-5"></span> | ||
</div> | ||
{children} | ||
</div> | ||
); | ||
} |
Oops, something went wrong.
9610fdd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nx-dev – ./
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx.dev