-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5714bc2
commit 5a913dc
Showing
7 changed files
with
103 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { asset } from '@/lib/url' | ||
import { cn } from '@/lib/utils' | ||
import { HTMLAttributes } from 'react' | ||
|
||
type Props = HTMLAttributes<HTMLImageElement> | ||
|
||
export default function AppLogo(props: Props) { | ||
return ( | ||
<img | ||
{...props} | ||
src={asset('icon-192.png')} | ||
alt='mjml.app logo' | ||
className={cn(props.className)} | ||
/> | ||
) | ||
} |
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,34 @@ | ||
import { Link } from '@tanstack/react-router' | ||
import AppLogo from '../AppLogo' | ||
import AppSettingsDialog from '../AppSettingsDialog' | ||
import AppTemplatesDialog from '../AppTemplatesDialog' | ||
|
||
export default function Header() { | ||
return ( | ||
<header className="fixed inset-x-0 top-0 z-50 h-16 bg-mjml-500 text-white"> | ||
<div className="container mx-auto flex h-full flex-row flex-nowrap items-center gap-x-4"> | ||
<AppLogo className='size-12' /> | ||
<p className="text-2xl font-bold"> | ||
mjml.app | ||
</p> | ||
|
||
<Link to='/'> | ||
Editor | ||
</Link> | ||
<Link to='/about'> | ||
About | ||
</Link> | ||
|
||
<div className="grow"></div> | ||
|
||
<AppTemplatesDialog /> | ||
<AppSettingsDialog /> | ||
{/* <DarkModeToggle /> */} | ||
|
||
<p className="ml-8 text-xs italic"> | ||
Not affiliated with Mailjet or mjml.io | ||
</p> | ||
</div> | ||
</header> | ||
) | ||
} |
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,40 @@ | ||
import AppLogo from '@/components/AppLogo' | ||
import pkg from '@/package' | ||
|
||
export default function PageAbout() { | ||
return ( | ||
<div className="w-screen overflow-y-scroll py-16"> | ||
<div className="container prose mx-auto max-w-lg space-y-8 md:prose-xl "> | ||
<AppLogo className='mx-auto' /> | ||
|
||
<div className='flex flex-row items-end justify-center gap-x-2 *:m-0'> | ||
<h1>{pkg.name}</h1> | ||
<h3>{pkg.version}</h3> | ||
</div> | ||
|
||
<blockquote>{pkg.description}</blockquote> | ||
|
||
<hr /> | ||
|
||
<p> | ||
This playground was crafted out of the need for rapid MJML prototyping. | ||
</p> | ||
|
||
<p> | ||
While the <a href="https://mjml.io/try-it-live">official editor</a> technically works, | ||
it is limited to the html/xml syntax. I'm working with the json syntax at work and | ||
didn't find a editor that suited my likings. So I decided to build my own editor. | ||
</p> | ||
|
||
<p>Lorem ipsum</p> | ||
<p>Lorem ipsum</p> | ||
<p>Lorem ipsum</p> | ||
<p>Lorem ipsum</p> | ||
<p>Lorem ipsum</p> | ||
<p>Lorem ipsum</p> | ||
<p>Lorem ipsum</p> | ||
<p>Lorem ipsum</p> | ||
</div> | ||
</div> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import PageAbout from '@/pages/PageAbout' | ||
import { createLazyFileRoute } from '@tanstack/react-router' | ||
|
||
export const Route = createLazyFileRoute('/about')({ | ||
component: () => <PageAbout />, | ||
}) |
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