forked from vercel/examples
-
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.
Ran prettier on every file (vercel#166)
Co-authored-by: Dom Sip <[email protected]>
- Loading branch information
1 parent
586977f
commit eb0b46a
Showing
202 changed files
with
4,516 additions
and
2,242 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
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
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
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
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
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
22 changes: 11 additions & 11 deletions
22
edge-functions/clerk-authentication/components/CTASection.jsx
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
export function CTASection() { | ||
return ( | ||
<div className='bg-indigo-600'> | ||
<div className='max-w-2xl mx-auto text-center py-16 px-4 sm:py-20 sm:px-6 lg:px-8'> | ||
<h2 className='text-3xl font-extrabold text-white sm:text-5xl'> | ||
<span className='block'>Ready for authentication at the edge?</span> | ||
<div className="bg-indigo-600"> | ||
<div className="max-w-2xl mx-auto text-center py-16 px-4 sm:py-20 sm:px-6 lg:px-8"> | ||
<h2 className="text-3xl font-extrabold text-white sm:text-5xl"> | ||
<span className="block">Ready for authentication at the edge?</span> | ||
</h2> | ||
<p className='mt-4 text-base text-indigo-200 text-base sm:text-lg md:text-xl'> | ||
<p className="mt-4 text-base text-indigo-200 text-base sm:text-lg md:text-xl"> | ||
Stateless, revocable authentication is included in every Clerk plan. | ||
</p> | ||
<div className='sm:flex sm:justify-center mt-8'> | ||
<div className="sm:flex sm:justify-center mt-8"> | ||
<a | ||
href='https://dashboard.clerk.dev/sign-up?utm_source=edge-demo&utm_medium=next-edge-auth&utm_campaign=start-building' | ||
className='mb-4 w-full inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-indigo-600 bg-white hover:bg-indigo-50 sm:w-auto' | ||
href="https://dashboard.clerk.dev/sign-up?utm_source=edge-demo&utm_medium=next-edge-auth&utm_campaign=start-building" | ||
className="mb-4 w-full inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-indigo-600 bg-white hover:bg-indigo-50 sm:w-auto" | ||
> | ||
Start building | ||
</a> | ||
<a | ||
href='https://clerk.dev/solutions/nextjs-authentication?utm_source=edge-demo&utm_medium=next-edge-auth&utm_campaign=more-cta' | ||
className='sm:ml-4 mb-4 w-full inline-flex items-center justify-center px-5 py-3 border border-white text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:w-auto' | ||
href="https://clerk.dev/solutions/nextjs-authentication?utm_source=edge-demo&utm_medium=next-edge-auth&utm_campaign=more-cta" | ||
className="sm:ml-4 mb-4 w-full inline-flex items-center justify-center px-5 py-3 border border-white text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:w-auto" | ||
> | ||
More about Clerk and Next.js | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
) | ||
} |
48 changes: 24 additions & 24 deletions
48
edge-functions/clerk-authentication/components/HeadTags.jsx
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 |
---|---|---|
@@ -1,41 +1,41 @@ | ||
import Head from 'next/head'; | ||
import Head from 'next/head' | ||
|
||
export function HeadTags() { | ||
const title = 'Demo: Next.js authentication at the edge with Clerk'; | ||
const title = 'Demo: Next.js authentication at the edge with Clerk' | ||
const desc = | ||
'Try an interactive demo of authentication at the edge with Clerk and Next.js'; | ||
const canonical = 'https://edge.clerk.app'; | ||
'Try an interactive demo of authentication at the edge with Clerk and Next.js' | ||
const canonical = 'https://edge.clerk.app' | ||
return ( | ||
<Head> | ||
<title>{title}</title> | ||
<meta name='viewport' content='initial-scale=1.0, width=device-width' /> | ||
<meta name="viewport" content="initial-scale=1.0, width=device-width" /> | ||
|
||
<meta name='description' content={desc} /> | ||
<link rel='canonical' href={canonical} /> | ||
<meta name="description" content={desc} /> | ||
<link rel="canonical" href={canonical} /> | ||
|
||
<meta property='og:title' content={title} /> | ||
<meta property='og:description' content={desc} /> | ||
<meta property='og:site_name' content='Clerk' /> | ||
<meta property='og:url' content={canonical} /> | ||
<meta property="og:title" content={title} /> | ||
<meta property="og:description" content={desc} /> | ||
<meta property="og:site_name" content="Clerk" /> | ||
<meta property="og:url" content={canonical} /> | ||
|
||
<meta | ||
property='og:image' | ||
content='https://edge.clerk.app/opengraph.png' | ||
property="og:image" | ||
content="https://edge.clerk.app/opengraph.png" | ||
/> | ||
<meta property='og:image:width' content={1200} /> | ||
<meta property='og:image:height' content={630} /> | ||
<meta property="og:image:width" content={1200} /> | ||
<meta property="og:image:height" content={630} /> | ||
|
||
<meta property='og:type' content={'website'} /> | ||
<meta property="og:type" content={'website'} /> | ||
|
||
<meta property='twitter:title' content={title} /> | ||
<meta property='twitter:description' content={desc} /> | ||
<meta property='twitter:url' content={canonical} /> | ||
<meta property='twitter:card' content='summary_large_image' /> | ||
<meta property='twitter:site' content='@ClerkDev' /> | ||
<meta property="twitter:title" content={title} /> | ||
<meta property="twitter:description" content={desc} /> | ||
<meta property="twitter:url" content={canonical} /> | ||
<meta property="twitter:card" content="summary_large_image" /> | ||
<meta property="twitter:site" content="@ClerkDev" /> | ||
<meta | ||
name='twitter:image' | ||
content='https://edge.clerk.app/opengraph.png' | ||
name="twitter:image" | ||
content="https://edge.clerk.app/opengraph.png" | ||
/> | ||
</Head> | ||
); | ||
) | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const Layout = ({ children }) => { | ||
return <div>{children}</div>; | ||
}; | ||
return <div>{children}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export * from './Layout'; | ||
export * from './HeadTags'; | ||
export * from './HeroSection'; | ||
export * from './CTASection'; | ||
export * from './Pattern'; | ||
export * from './statelessDoneRightSection'; | ||
export * from './tryRenovationSection'; | ||
export * from './twoStrategiesSection'; | ||
export * from './Layout' | ||
export * from './HeadTags' | ||
export * from './HeroSection' | ||
export * from './CTASection' | ||
export * from './Pattern' | ||
export * from './statelessDoneRightSection' | ||
export * from './tryRenovationSection' | ||
export * from './twoStrategiesSection' |
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
Oops, something went wrong.