Skip to content

Commit

Permalink
images etc
Browse files Browse the repository at this point in the history
  • Loading branch information
steveruizok committed Nov 15, 2023
1 parent 32c12bb commit 3d22bc6
Show file tree
Hide file tree
Showing 16 changed files with 169 additions and 27 deletions.
4 changes: 2 additions & 2 deletions app/components/ExportButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export function ExportButton() {
setLoading(false)
}
}}
className="fixed bottom-4 right-4 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded ="
style={{ zIndex: 1000 }}
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded m-2"
style={{ cursor: 'pointer', zIndex: 100000, pointerEvents: 'all' }}
>
{loading ? (
<div className="flex justify-center items-center ">
Expand Down
Binary file removed app/favicon.ico
Binary file not shown.
96 changes: 76 additions & 20 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,84 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'

const inter = Inter({ subsets: ["latin"] });
const TITLE = 'draw my ui'
const DESCRIPTION = 'Draw a ui with tldraw.'
const TWITTER_HANDLE = '@tldraw'
const TWITTER_CARD = 'social-twitter.png'
const FACEBOOK_CARD = 'social-og.png'
const THEME_COLOR = '#FFFFFF'

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
metadataBase: new URL('https://www.tldraw.dev'),
title: {
default: TITLE,
template: `%s • ${TITLE}`,
},
description: DESCRIPTION,
openGraph: {
title: TITLE,
description: DESCRIPTION,
siteName: TITLE,
type: 'website',
url: 'https://tldraw.dev',
images: FACEBOOK_CARD,
},
twitter: {
creator: TWITTER_HANDLE,
description: DESCRIPTION,
card: 'summary_large_image',
images: TWITTER_CARD,
},
applicationName: TITLE,
appleWebApp: {
capable: true,
title: TITLE,
statusBarStyle: 'black',
},
formatDetection: {
telephone: false,
},
icons: [
{ rel: 'mask-icon', url: 'safari-pinned-tab.svg', color: THEME_COLOR },
{ rel: 'shortcut icon', url: '/favicon.svg' },
{ rel: 'icon', url: 'favicon-32x32.png', sizes: '32x32' },
{ rel: 'icon', url: 'favicon-16x16.png', sizes: '16x16' },
{ rel: 'apple-touch-icon', url: 'touch-icon-iphone.png' },
{
rel: 'apple-touch-icon',
url: 'apple-touch-icon-152x152.png',
sizes: '152x152',
},
{
rel: 'apple-touch-icon',
url: 'apple-touch-icon-180x180.png',
sizes: '180x180',
},
{
rel: 'apple-touch-icon',
url: 'apple-touch-icon-167x167.png',
sizes: '167x167',
},
],
}

const inter = Inter({ subsets: ['latin'] })

export default function RootLayout({
children,
children,
}: {
children: React.ReactNode;
children: React.ReactNode
}) {
return (
<html lang="en">
<head>
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
</head>
<body className={inter.className}>{children}</body>
</html>
);
return (
<html lang="en">
<head>
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
</head>
<body className={inter.className}>{children}</body>
</html>
)
}
26 changes: 23 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/rules-of-hooks */

'use client'
import Lockup from './lockup.svg'

import dynamic from 'next/dynamic'
import '@tldraw/tldraw/tldraw.css'
Expand All @@ -18,8 +18,28 @@ export default function Home() {
return (
<>
<div className={`w-screen h-screen`}>
<Tldraw persistenceKey="tldraw" shapeUtils={shapeUtils}>
<ExportButton />
<Tldraw
persistenceKey="tldraw"
shapeUtils={shapeUtils}
shareZone={<ExportButton />}
>
<a
href="https://www.tldraw.dev"
style={{
pointerEvents: 'all',
position: 'fixed',
zIndex: 100000,
bottom: 0,
right: 0,
}}
>
<img
className="lockup"
src="/lockup.svg"
style={{ padding: 8, height: 40 }}
/>
{/* <img src={lockup} style={{ height: 40, width: 'auto' }} /> */}
</a>
</Tldraw>
</div>
</>
Expand Down
11 changes: 11 additions & 0 deletions public/apple-touch-icon-152x152.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/apple-touch-icon-180x180.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/apple-touch-icon167x167.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/favicon-16x16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/favicon-32x32.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3d22bc6

Please sign in to comment.