Skip to content

Commit

Permalink
Remove preview
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Aug 19, 2024
1 parent 1f1f8c3 commit 5b11fb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ 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
14 changes: 6 additions & 8 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import dynamic from 'next/dynamic'
import Image from 'next/image'
import { createElement, JSX } from 'react'
import { twMerge } from 'tailwind-merge'
import SampleCodeBlock from './sample-code-block'
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'
import dynamic from 'next/dynamic'
import SlashedArrowIcon from './images/slashed_arrow.svg'
import SampleCodeBlock from './sample-code-block'

function twElement<T extends keyof JSX.IntrinsicElements>(elemTagName: T, className: string) {
return ({ className: classNameProp, ...props }: JSX.IntrinsicElements[T]) => {
Expand All @@ -15,7 +14,6 @@ function twElement<T extends keyof JSX.IntrinsicElements>(elemTagName: T, classN
}

const HomepageEditor = dynamic(() => import('./HomepageEditor'), { ssr: false })

const ActionLinkButton = twElement(
'a',
'border-solid border-[1px] rounded-md border-neutral-textContrast px-8 py-3 bg-white font-mono text-sm'
Expand All @@ -34,7 +32,7 @@ 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 */}
{/* stage 0
<div className="p-4 mx-4">
<Image src={AppScreenshot} alt="App screenshot" />
</div>
Expand All @@ -49,7 +47,7 @@ export default function Home() {
</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 5b11fb2

Please sign in to comment.