Skip to content

Commit

Permalink
Link sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Feb 9, 2024
1 parent d1386bb commit e3e0f23
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Binary file added app/images/app-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ const RootLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
<li>
<Link href="/editor/demo">Live demo</Link>
</li>
<li>
<Link href="https://app.mdxeditor.dev/sandbox" className="text-accent-text">
App preview
</Link>
</li>
<li>
<Link href="/editor/docs/getting-started">Docs</Link>
</li>
Expand Down
17 changes: 17 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { FeatureOverviewItem } from './FeatureOverviewItem'
import SlashedArrowIcon from './images/slashed_arrow.svg'
import Image from 'next/image'
import SandpackScreenshot from './images/sandpack-screenshot.png'
import AppScreenshot from './images/app-screenshot.png'

function twElement<T extends keyof JSX.IntrinsicElements>(elemTagName: T, className: string) {
return ({ className: classNameProp, ...props }: JSX.IntrinsicElements[T]) => {
Expand All @@ -31,6 +32,22 @@ export default function Home() {
return (
<>
<div className="grid grid-cols-1 lg:grid-cols-2 gap-y-8 xl:gap-y-16 [&>div]:p-3 [&>div]:py-5 md:[&>div]:p-4 md:[&>div]:py-6 mb-8 xl:mb-16">
{/* stage 0 */}
<div className="p-4 mx-4">
<Image src={AppScreenshot} alt="App screenshot" />
</div>
<div>
<h2 className="font-mono text-2xl font-normal mb-4">app.mdxeditor is in preview.</h2>

<p className="text-lg">Edit, commit and push markdown in your GitHub repositories from your browser. No local setup necessary.</p>

<div className="py-4 flex gap-8">
<ActionLinkButton href="https://app.mdxeditor.dev/sandbox" className="border-accent-text bg-accent-text text-neutral-base">
Try the app sandbox
</ActionLinkButton>
</div>
</div>

<div>
<h2 className="font-mono text-2xl font-normal mb-4">
<span className="underline">Markdown</span> editing can be <br />
Expand Down

0 comments on commit e3e0f23

Please sign in to comment.