-
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
86c91d1
commit 7385006
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
import OG from './OG.svelte'; | ||
import type {RequestHandler} from "@sveltejs/kit"; | ||
import {toReactElement} from "$lib"; | ||
import {json} from "@sveltejs/kit"; | ||
|
||
const WIDTH = 1200; | ||
const HEIGHT = 1200; | ||
|
||
export const GET: RequestHandler = async ({ url }) => { | ||
const text = url.searchParams.get('text') ?? undefined; | ||
const spanText = url.searchParams.get('spanText') ?? undefined; | ||
return json({}) | ||
|
||
// const width = Number(url.searchParams.get('w') ?? 1200); | ||
// const height = Number(url.searchParams.get('h') ?? 1200); | ||
// console.log(url.searchParams.get('h'), width); | ||
// return await componentToImageResponse( | ||
// OG, | ||
// { text, spanText }, | ||
// { | ||
// height, | ||
// width | ||
// } | ||
// ); | ||
}; |
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 @@ | ||
<script> | ||
export let text = 'Ready to dive in?'; | ||
export let spanText = 'Start your free trial today.'; | ||
</script> | ||
|
||
<div tw="flex flex-col w-full h-full items-center justify-center bg-white"> | ||
<div tw="bg-gray-50 flex w-full"> | ||
<div tw="flex flex-col md:flex-row w-full py-12 px-4 md:items-center justify-between p-8"> | ||
<h2 tw="flex flex-col text-3xl sm:text-4xl font-bold tracking-tight text-gray-900 text-left"> | ||
<span>{text}</span> | ||
<span tw="text-indigo-600">{spanText}</span> | ||
</h2> | ||
<div tw="mt-8 flex md:mt-0"> | ||
<div tw="flex rounded-md shadow"> | ||
<a | ||
tw="flex items-center justify-center rounded-md border border-transparent bg-indigo-600 px-5 py-3 text-base font-medium text-white" | ||
>Get started</a | ||
> | ||
</div> | ||
<div tw="ml-3 flex rounded-md shadow"> | ||
<a | ||
tw="flex items-center justify-center rounded-md border border-transparent bg-white px-5 py-3 text-base font-medium text-indigo-600" | ||
>Learn more</a | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |