Unverified Commit dfe1b05f authored by Sokratis Vidros's avatar Sokratis Vidros Committed by GitHub

Add Clerk.dev example (#24311)



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.

## Documentation / Examples

- [x] Make sure the linting passes
parent a0e3198a
# Clerk.dev Example
This example shows how to use [Clerk.dev](https://www.clerk.dev/?utm_source=github&utm_medium=nextjs-examples&utm_campaign=nextjs) with Next.js. The example features adding sign up, sign in, and profile management to your Next.js application in minutes.
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/clerkinc/clerk-nextjs-starter&integration-ids=oac_7uYNbc9CdDAZmNqbt3LEkO3a)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example with-clerk with-clerk-app
# or
yarn create next-app --example with-clerk with-clerk-app
```
## Learn More
To learn more about Clerk.dev and Next.js, take a look at the following resources:
- [Quick start](https://docs.clerk.dev/frontend/quick-starts/next.js)
- [Clerk.dev Documentation](https://docs.clerk.dev/) - learn about Clerk.dev features and API.
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
import styles from '../styles/Header.module.css'
import Image from 'next/image'
import Link from 'next/link'
import { SignedIn, SignedOut, UserButton } from '@clerk/clerk-react'
// Header component using <SignedIn> & <SignedOut>.
//
// The SignedIn and SignedOut components are used to control rendering depending
// on whether or not a visitor is signed in.
//
// https://docs.clerk.dev/frontend/react/signedin-and-signedout
const Header = () => (
<header className={styles.header}>
<div className={styles.left}>
<Link href="/">
<a className={styles.logo}>
<Image src="/logo.svg" width="32" height="32" alt="Logo" />
<span className={styles.appName}>Your application</span>
</a>
</Link>
</div>
<div className={styles.right}>
<SignedOut>
<Link href="/sign-in">Sign in</Link>
</SignedOut>
<SignedIn>
<UserButton userProfileURL="/user" afterSignOutAll="/" />
</SignedIn>
</div>
</header>
)
export default Header
import Header from './Header'
const Layout = ({ children }) => (
<>
<Header />
<main>{children}</main>
</>
)
export default Layout
{
"name": "with-clerk",
"scripts": {
"predev": "([[ -d .vercel ]] || vercel link) && vercel env pull .env.local",
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@clerk/clerk-react": "1.7.0",
"@clerk/clerk-sdk-node": "0.3.0",
"next": "10.0.9",
"react": "17.0.1",
"react-dom": "17.0.1"
},
"devDependencies": {
"vercel": "^21.3.3"
},
"license": "MIT"
}
import '../styles/globals.css'
import { ClerkProvider, SignedIn, SignedOut } from '@clerk/clerk-react'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
import Layout from '../components/Layout'
/**
* List pages you want to be publicly accessible, or leave empty if
* every page requires authentication. Use this naming strategy:
* "/" for pages/index.js
* "/foo" for pages/foo/index.js
* "/foo/bar" for pages/foo/bar.js
* "/foo/[...bar]" for pages/foo/[...bar].js
*/
const publicPages = ['/', '/sign-in/[[...index]]', '/sign-up/[[...index]]']
const RedirectToSignIn = () => {
const router = useRouter()
useEffect(() => {
router.push('/sign-in')
})
return null
}
const MyApp = ({ Component, pageProps }) => {
const router = useRouter()
/**
* If the current route is listed as public, render it directly.
* Otherwise, use Clerk to require authentication.
*/
return (
<ClerkProvider
frontendApi={process.env.NEXT_PUBLIC_CLERK_FRONTEND_API}
scriptUrl={process.env.NEXT_PUBLIC_CLERK_JS}
navigate={(to) => router.push(to)}
>
<Layout>
{publicPages.includes(router.pathname) ? (
<Component {...pageProps} />
) : (
<>
<SignedIn>
<Component {...pageProps} />
</SignedIn>
<SignedOut>
<RedirectToSignIn />
</SignedOut>
</>
)}
</Layout>
</ClerkProvider>
)
}
export default MyApp
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
const hello = (req, res) => {
res.statusCode = 200
res.json({ name: 'John Doe' })
}
export default hello
import Head from 'next/head'
import Link from 'next/link'
import styles from '../styles/Home.module.css'
import { SignedIn, SignedOut } from '@clerk/clerk-react'
const ClerkFeatures = () => (
<Link href="/user">
<a className={styles.cardContent}>
<img src="/icons/layout.svg" />
<div>
<h3>Explore features provided by Clerk</h3>
<p>
Interact with the user button, user profile, and more to preview what
your users will see
</p>
</div>
<div className={styles.arrow}>
<img src="/icons/arrow-right.svg" />
</div>
</a>
</Link>
)
const SignupLink = () => (
<Link href="/sign-up">
<a className={styles.cardContent}>
<img src="/icons/user-plus.svg" />
<div>
<h3>Sign up for an account</h3>
<p>
Sign up and sign in to explore all the features provided by Clerk
out-of-the-box
</p>
</div>
<div className={styles.arrow}>
<img src="/icons/arrow-right.svg" />
</div>
</a>
</Link>
)
// Main component using <SignedIn> & <SignedOut>.
//
// The SignedIn and SignedOut components are used to control rendering depending
// on whether or not a visitor is signed in.
//
// https://docs.clerk.dev/frontend/react/signedin-and-signedout
const Main = () => (
<main className={styles.main}>
<h1 className={styles.title}>Welcome to your new app</h1>
<p className={styles.description}>Sign up for an account to get started</p>
<div className={styles.cards}>
<div className={styles.card}>
<SignedIn>
<ClerkFeatures />
</SignedIn>
<SignedOut>
<SignupLink />
</SignedOut>
</div>
<div className={styles.card}>
<Link href="https://dashboard.clerk.dev">
<a target="_blank" rel="noreferrer" className={styles.cardContent}>
<img src="/icons/settings.svg" />
<div>
<h3>Configure settings for your app</h3>
<p>
Visit Clerk to manage instances and configure settings for user
management, theme, and more
</p>
</div>
<div className={styles.arrow}>
<img src="/icons/arrow-right.svg" />
</div>
</a>
</Link>
</div>
</div>
<div className={styles.links}>
<Link href="https://docs.clerk.dev">
<a target="_blank" rel="noreferrer" className={styles.link}>
<span className={styles.linkText}>Read Clerk documentation</span>
</a>
</Link>
<Link href="https://nextjs.org/docs">
<a target="_blank" rel="noreferrer" className={styles.link}>
<span className={styles.linkText}>Read NextJS documentation</span>
</a>
</Link>
</div>
</main>
)
// Footer component
const Footer = () => (
<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<img src="/clerk.svg" alt="Clerk.dev" className={styles.logo} />
+
<img src="/nextjs.svg" alt="Next.js" className={styles.logo} />
</a>
</footer>
)
const Home = () => (
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<link rel="icon" href="/favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
></meta>
</Head>
<Main />
<Footer />
</div>
)
export default Home
import { SignIn } from '@clerk/clerk-react'
const SignInPage = () => (
<SignIn path="/sign-in" routing="path" signUpURL="/sign-up" />
)
export default SignInPage
import { SignUp } from '@clerk/clerk-react'
const SignUpPage = () => (
<SignUp path="/sign-up" routing="path" signInURL="/sign-in" />
)
export default SignUpPage
import { UserProfile } from '@clerk/clerk-react'
const UserProfilePage = () => <UserProfile path="/user" routing="path" />
export default UserProfilePage
<svg width="602" height="172" viewBox="0 0 602 172" fill="none"
xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.97904 47.7401C1.51565 49.1723 0 51.8067 0 54.6562V117.701C0 120.55 1.51565 123.185 3.97904 124.617L86 172.304V172.053L168.021 124.367C170.484 122.935 172 120.3 172 117.451V57.006C172 53.9214 168.656 51.9976 165.989 53.5479L89.9789 97.7401C87.5155 99.1723 85.9999 101.807 85.9999 104.656V116.303L6.66502 70.1785L86 24.0535V7.00601C86 3.92142 82.6562 1.9976 79.9895 3.54798L3.97904 47.7401ZM111.495 105.475C110.879 105.833 110.5 106.492 110.5 107.204V112.315C110.5 113.087 111.336 113.568 112.003 113.18L152.505 89.6319C153.121 89.2738 153.5 88.6152 153.5 87.9029V82.7916C153.5 82.0205 152.664 81.5396 151.997 81.9271L111.495 105.475Z" fill="#335BF1"/>
<path d="M57.3333 87.9895C57.3333 85.14 58.8489 82.5057 61.3123 81.0734L137.323 36.8813C139.989 35.3309 143.333 37.2547 143.333 40.3393V57.3869L57.3333 107.387V87.9895Z" fill="#335BF1"/>
<path d="M28.6666 71.3229C28.6666 68.4734 30.1823 65.839 32.6457 64.4068L108.656 20.2147C111.323 18.6643 114.667 20.5881 114.667 23.6727V40.7202L28.6666 90.7202V71.3229Z" fill="#335BF1"/>
<path d="M256.484 146C249.486 146 242.77 144.87 236.337 142.61C230.016 140.238 224.429 136.735 219.576 132.102C214.835 127.356 211.054 121.48 208.233 114.475C205.411 107.356 204 99.1076 204 89.7291C204 80.4635 205.467 72.2714 208.402 65.1528C211.336 57.9212 215.23 51.8759 220.084 47.0172C225.05 42.0454 230.693 38.2599 237.014 35.6611C243.448 33.0622 250.163 31.7628 257.161 31.7628C264.498 31.7628 271.044 33.2317 276.8 36.1696C282.557 38.9944 287.41 42.3844 291.36 46.3392L276.123 64.9833C273.414 62.6104 270.592 60.6895 267.658 59.2206C264.836 57.6387 261.563 56.8477 257.838 56.8477C254.565 56.8477 251.461 57.5822 248.527 59.0511C245.705 60.52 243.165 62.6104 240.908 65.3223C238.764 68.0342 237.014 71.3675 235.66 75.3223C234.418 79.2771 233.797 83.7404 233.797 88.7121C233.797 99.1076 235.942 107.074 240.231 112.61C244.633 118.147 250.389 120.916 257.5 120.916C261.789 120.916 265.57 120.012 268.843 118.204C272.229 116.283 275.107 114.023 277.477 111.424L292.715 129.729C287.974 135.153 282.5 139.221 276.292 141.932C270.197 144.644 263.595 146 256.484 146Z" fill="#335BF1"/>
<path d="M328.258 146C323.291 146 319.115 145.266 315.729 143.797C312.456 142.215 309.804 140.012 307.772 137.187C305.74 134.362 304.273 131.029 303.37 127.187C302.58 123.232 302.185 118.882 302.185 114.136V26.0001H331.305V115.153C331.305 118.091 331.813 120.068 332.829 121.085C333.958 122.102 335.03 122.61 336.046 122.61C336.61 122.61 337.061 122.61 337.4 122.61C337.852 122.61 338.416 122.497 339.093 122.271L342.479 143.627C340.899 144.305 338.924 144.87 336.554 145.322C334.296 145.774 331.531 146 328.258 146Z" fill="#335BF1"/>
<path d="M388.504 146C382.297 146 376.54 145.04 371.235 143.119C365.931 141.085 361.303 138.204 357.353 134.475C353.515 130.633 350.468 125.944 348.21 120.407C345.953 114.87 344.824 108.599 344.824 101.593C344.824 94.7008 345.953 88.5426 348.21 83.1189C350.581 77.5822 353.628 72.8929 357.353 69.0511C361.19 65.2093 365.536 62.2714 370.389 60.2375C375.242 58.2037 380.265 57.1867 385.457 57.1867C391.665 57.1867 397.082 58.2602 401.71 60.407C406.338 62.5539 410.175 65.4918 413.223 69.2206C416.27 72.9494 418.527 77.2997 419.995 82.2715C421.575 87.2432 422.365 92.554 422.365 98.2037C422.365 100.803 422.196 103.232 421.857 105.492C421.631 107.752 421.406 109.39 421.18 110.407H372.929C374.283 115.492 376.71 119.051 380.209 121.085C383.707 123.006 387.827 123.966 392.568 123.966C395.502 123.966 398.324 123.571 401.033 122.78C403.854 121.876 406.789 120.577 409.836 118.882L419.318 136.17C414.69 139.447 409.554 141.932 403.911 143.627C398.38 145.209 393.245 146 388.504 146ZM372.59 91.424H397.647C397.647 88.1472 396.8 85.3223 395.107 82.9494C393.527 80.4636 390.536 79.2206 386.134 79.2206C382.861 79.2206 379.983 80.1811 377.5 82.102C375.129 84.0229 373.493 87.1302 372.59 91.424Z" fill="#335BF1"/>
<path d="M458.956 143.966C445.701 143.966 434.956 133.221 434.956 119.966V59.2206H451.696C455.687 59.2206 459.068 62.1629 459.619 66.1162L460.69 73.7969H461.367C464.527 68.0342 468.252 63.8534 472.541 61.2545C476.943 58.5427 481.232 57.1867 485.408 57.1867C488.004 57.1867 490.092 57.3562 491.672 57.6952C493.252 57.9212 494.663 58.3167 495.905 58.8816L491.164 83.9664C489.584 83.6274 488.06 83.3449 486.593 83.1189C485.238 82.7799 483.602 82.6104 481.683 82.6104C478.636 82.6104 475.419 83.6839 472.033 85.8308C468.76 87.8647 466.107 91.537 464.076 96.8477V143.966H458.956Z" fill="#335BF1"/>
<path d="M526.333 143.966C513.078 143.966 502.333 133.221 502.333 119.966V26.0001H530.776V88.7121H531.453L547.61 68.3173C552.162 62.5711 559.091 59.2206 566.422 59.2206H586.307L556.171 94.4748L588 143.966H570.562C561.883 143.966 553.88 139.28 549.633 131.712L539.579 113.797L530.776 123.627V143.966H526.333Z" fill="#335BF1"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.97904 47.7401C1.51565 49.1723 0 51.8067 0 54.6562V117.701C0 120.55 1.51565 123.185 3.97904 124.617L86 172.304V172.053L168.021 124.367C170.484 122.935 172 120.3 172 117.451V57.006C172 53.9214 168.656 51.9976 165.989 53.5479L89.9789 97.7401C87.5155 99.1723 85.9999 101.807 85.9999 104.656V116.303L6.66502 70.1785L86 24.0535V7.00601C86 3.92142 82.6562 1.9976 79.9895 3.54798L3.97904 47.7401ZM111.495 105.475C110.879 105.833 110.5 106.492 110.5 107.204V112.315C110.5 113.087 111.336 113.568 112.003 113.18L152.505 89.6319C153.121 89.2738 153.5 88.6152 153.5 87.9029V82.7916C153.5 82.0205 152.664 81.5396 151.997 81.9271L111.495 105.475Z" fill="#335BF1"/>
<path d="M57.3333 87.9895C57.3333 85.14 58.8489 82.5057 61.3123 81.0734L137.323 36.8813C139.989 35.3309 143.333 37.2547 143.333 40.3393V57.3869L57.3333 107.387V87.9895Z" fill="#335BF1"/>
<path d="M28.6666 71.3229C28.6666 68.4734 30.1823 65.839 32.6457 64.4068L108.656 20.2147C111.323 18.6643 114.667 20.5881 114.667 23.6727V40.7202L28.6666 90.7202V71.3229Z" fill="#335BF1"/>
<path d="M256.484 146C249.486 146 242.77 144.87 236.337 142.61C230.016 140.238 224.429 136.735 219.576 132.102C214.835 127.356 211.054 121.48 208.233 114.475C205.411 107.356 204 99.1076 204 89.7291C204 80.4635 205.467 72.2714 208.402 65.1528C211.336 57.9212 215.23 51.8759 220.084 47.0172C225.05 42.0454 230.693 38.2599 237.014 35.6611C243.448 33.0622 250.163 31.7628 257.161 31.7628C264.498 31.7628 271.044 33.2317 276.8 36.1696C282.557 38.9944 287.41 42.3844 291.36 46.3392L276.123 64.9833C273.414 62.6104 270.592 60.6895 267.658 59.2206C264.836 57.6387 261.563 56.8477 257.838 56.8477C254.565 56.8477 251.461 57.5822 248.527 59.0511C245.705 60.52 243.165 62.6104 240.908 65.3223C238.764 68.0342 237.014 71.3675 235.66 75.3223C234.418 79.2771 233.797 83.7404 233.797 88.7121C233.797 99.1076 235.942 107.074 240.231 112.61C244.633 118.147 250.389 120.916 257.5 120.916C261.789 120.916 265.57 120.012 268.843 118.204C272.229 116.283 275.107 114.023 277.477 111.424L292.715 129.729C287.974 135.153 282.5 139.221 276.292 141.932C270.197 144.644 263.595 146 256.484 146Z" fill="#335BF1"/>
<path d="M328.258 146C323.291 146 319.115 145.266 315.729 143.797C312.456 142.215 309.804 140.012 307.772 137.187C305.74 134.362 304.273 131.029 303.37 127.187C302.58 123.232 302.185 118.882 302.185 114.136V26.0001H331.305V115.153C331.305 118.091 331.813 120.068 332.829 121.085C333.958 122.102 335.03 122.61 336.046 122.61C336.61 122.61 337.061 122.61 337.4 122.61C337.852 122.61 338.416 122.497 339.093 122.271L342.479 143.627C340.899 144.305 338.924 144.87 336.554 145.322C334.296 145.774 331.531 146 328.258 146Z" fill="#335BF1"/>
<path d="M388.504 146C382.297 146 376.54 145.04 371.235 143.119C365.931 141.085 361.303 138.204 357.353 134.475C353.515 130.633 350.468 125.944 348.21 120.407C345.953 114.87 344.824 108.599 344.824 101.593C344.824 94.7008 345.953 88.5426 348.21 83.1189C350.581 77.5822 353.628 72.8929 357.353 69.0511C361.19 65.2093 365.536 62.2714 370.389 60.2375C375.242 58.2037 380.265 57.1867 385.457 57.1867C391.665 57.1867 397.082 58.2602 401.71 60.407C406.338 62.5539 410.175 65.4918 413.223 69.2206C416.27 72.9494 418.527 77.2997 419.995 82.2715C421.575 87.2432 422.365 92.554 422.365 98.2037C422.365 100.803 422.196 103.232 421.857 105.492C421.631 107.752 421.406 109.39 421.18 110.407H372.929C374.283 115.492 376.71 119.051 380.209 121.085C383.707 123.006 387.827 123.966 392.568 123.966C395.502 123.966 398.324 123.571 401.033 122.78C403.854 121.876 406.789 120.577 409.836 118.882L419.318 136.17C414.69 139.447 409.554 141.932 403.911 143.627C398.38 145.209 393.245 146 388.504 146ZM372.59 91.424H397.647C397.647 88.1472 396.8 85.3223 395.107 82.9494C393.527 80.4636 390.536 79.2206 386.134 79.2206C382.861 79.2206 379.983 80.1811 377.5 82.102C375.129 84.0229 373.493 87.1302 372.59 91.424Z" fill="#335BF1"/>
<path d="M458.956 143.966C445.701 143.966 434.956 133.221 434.956 119.966V59.2206H451.696C455.687 59.2206 459.068 62.1629 459.619 66.1162L460.69 73.7969H461.367C464.527 68.0342 468.252 63.8534 472.541 61.2545C476.943 58.5427 481.232 57.1867 485.408 57.1867C488.004 57.1867 490.092 57.3562 491.672 57.6952C493.252 57.9212 494.663 58.3167 495.905 58.8816L491.164 83.9664C489.584 83.6274 488.06 83.3449 486.593 83.1189C485.238 82.7799 483.602 82.6104 481.683 82.6104C478.636 82.6104 475.419 83.6839 472.033 85.8308C468.76 87.8647 466.107 91.537 464.076 96.8477V143.966H458.956Z" fill="#335BF1"/>
<path d="M526.333 143.966C513.078 143.966 502.333 133.221 502.333 119.966V26.0001H530.776V88.7121H531.453L547.61 68.3173C552.162 62.5711 559.091 59.2206 566.422 59.2206H586.307L556.171 94.4748L588 143.966H570.562C561.883 143.966 553.88 139.28 549.633 131.712L539.579 113.797L530.776 123.627V143.966H526.333Z" fill="#335BF1"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="602" height="172" fill="white"/>
</clipPath>
</defs>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#335bf1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right">
<line x1="5" y1="12" x2="19" y2="12"></line>
<polyline points="12 5 19 12 12 19"></polyline>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#335bf1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link">
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
<polyline points="15 3 21 3 21 9"></polyline>
<line x1="10" y1="14" x2="21" y2="3"></line>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#335bf1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-layout">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<line x1="3" y1="9" x2="21" y2="9"></line>
<line x1="9" y1="21" x2="9" y2="9"></line>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#335bf1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-settings">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#335bf1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user-plus">
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="8.5" cy="7" r="4"></circle>
<line x1="20" y1="8" x2="20" y2="14"></line>
<line x1="23" y1="11" x2="17" y2="11"></line>
</svg>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0ZM16.5 18C18.7091 18 20.5 16.2091 20.5 14C20.5 11.7909 18.7091 10 16.5 10C14.2909 10 12.5 11.7909 12.5 14C12.5 16.2091 14.2909 18 16.5 18Z" fill="#335BF1"/>
</svg>
<svg width="41" height="24" viewBox="0 0 41 24" fill="none"
xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0)">
<path d="M9.9375 6.31603H17.4779V6.91247H10.6287V11.4015H17.0695V11.998H10.6287V16.9265H17.5565V17.5229H9.9375V6.31603ZM18.1534 6.31603H18.9546L22.5049 11.2446L26.1337 6.31603L31.0696 0.0556641L22.9605 11.7625L27.1391 17.5229H26.3065L22.5049 12.2805L18.6876 17.5229H17.8707L22.0808 11.7625L18.1534 6.31603ZM27.4376 6.91247V6.31603H36.0306V6.91247H32.0718V17.5229H31.3806V6.91247H27.4376Z" fill="black"/>
<path d="M0.505859 6.31592H1.36987L13.2841 24.0587L8.36049 17.5228L1.22849 7.1635L1.19707 17.5228H0.505859V6.31592Z" fill="black"/>
<path d="M35.9639 16.7462C36.1068 16.7462 36.2111 16.6374 36.2111 16.4966C36.2111 16.3559 36.1068 16.247 35.9639 16.247C35.8227 16.247 35.7168 16.3559 35.7168 16.4966C35.7168 16.6374 35.8227 16.7462 35.9639 16.7462ZM36.6431 16.0895C36.6431 16.505 36.9441 16.7764 37.3828 16.7764C37.8502 16.7764 38.1326 16.4966 38.1326 16.0108V14.3003H37.7561V16.0091C37.7561 16.2788 37.6199 16.4229 37.3795 16.4229C37.1643 16.4229 37.018 16.2889 37.013 16.0895H36.6431ZM38.6252 16.0678C38.6521 16.5 39.0136 16.7764 39.5516 16.7764C40.1265 16.7764 40.4863 16.4866 40.4863 16.0242C40.4863 15.6607 40.2812 15.4596 39.7836 15.344L39.5163 15.2787C39.2002 15.205 39.0724 15.1061 39.0724 14.9336C39.0724 14.7158 39.2708 14.5734 39.5684 14.5734C39.8508 14.5734 40.0458 14.7125 40.0811 14.9353H40.4476C40.4258 14.5282 40.066 14.2417 39.5734 14.2417C39.0438 14.2417 38.6908 14.5282 38.6908 14.9587C38.6908 15.3139 38.8909 15.525 39.3296 15.6272L39.6423 15.7025C39.9634 15.7779 40.1047 15.8885 40.1047 16.0728C40.1047 16.2872 39.8827 16.443 39.5801 16.443C39.2557 16.443 39.0304 16.2973 38.9984 16.0678H38.6252Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="40.0645" height="24" fill="white" transform="translate(0.466797)"/>
</clipPath>
</defs>
</svg>
<svg width="283" height="64" viewBox="0 0 283 64" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M141.04 16c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5h-18.9zM248.72 16c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.45 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5h-18.9zM200.24 34c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10zm82.48-29v46h-9V5h9zM36.95 0L73.9 64H0L36.95 0zm92.38 5l-27.71 48L73.91 5H84.3l17.32 30 17.32-30h10.39zm58.91 12v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10V51h-9V17h9v9.2c0-5.08 5.91-9.2 13.2-9.2z" fill="#000"/>
</svg>
.header {
display: flex;
justify-content: space-between;
padding: 1rem;
}
.logo {
display: flex;
justify-content: center;
align-items: center;
}
.appName {
margin-left: 12px;
font-weight: bold;
color: #335bf1;
}
.left,
.right {
display: flex;
align-items: center;
}
.right > :not(:first-child) {
margin-left: 1rem;
}
@media screen and (min-width: 768px) {
.header {
padding: 1rem 2rem;
}
}
.container {
min-height: calc(100vh - 64px);
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
max-width: 90vw;
margin: auto;
}
.main {
max-width: 540px;
padding-top: 2rem;
flex: 1;
}
.footer {
max-width: 540px;
color: #808080;
margin: 4em 0;
display: flex;
justify-content: center;
align-items: center;
}
.footer img {
margin: 0 0.5rem;
}
.footer a {
display: flex;
justify-content: center;
align-items: center;
}
.title a {
color: #0070f3;
text-decoration: none;
}
.title {
margin: 0;
font-size: 1.75rem;
line-height: 35px;
}
.description {
margin-top: 0.5rem;
color: #808080;
}
.title,
.description {
text-align: center;
}
.arrow {
display: none;
}
.cards {
margin: 2rem 0;
}
.card {
min-height: 135px;
border: 2px solid #fff;
border-radius: 0.5em;
transition: color 0.15s ease, border-color 0.15s ease;
}
.card:empty {
padding: 2em;
background-image: radial-gradient(
circle 14px at 46px 46px,
#f2f2f2 99%,
transparent 0
),
linear-gradient(
100deg,
rgba(255, 255, 255, 0),
rgba(255, 255, 255, 0.5) 50%,
rgba(255, 255, 255, 0) 80%
),
linear-gradient(#f2f2f2 16px, transparent 0),
linear-gradient(#f2f2f2 16px, transparent 0),
linear-gradient(#f2f2f2 16px, transparent 0);
background-repeat: repeat-y;
background-size: 100px 200px, /* circle */ 50px 200px,
/* highlight */ 150px 200px, 350px 200px, 200px 200px;
background-position: 0 0, /* circle */ 0 0, /* highlight */ 70px 36px,
70px 58px, 70px 80px;
animation: shine 1s infinite;
}
@keyframes shine {
to {
background-position: 0 0, 100% 0, 70px 36px, 70px 58px, 70px 80px;
}
}
.card h3 {
margin: 0;
font-size: 1.125rem;
font-weight: 600;
line-height: 1.5;
}
.card p {
margin: 0;
font-size: 1rem;
line-height: 1.25;
color: #808080;
}
.cardContent {
display: grid;
grid-template-columns: 24px 1fr;
gap: 1em;
padding: 1.5em 1em;
text-align: left;
color: inherit;
text-decoration: none;
}
.cardContent img {
margin-top: 0.2rem;
}
.logo {
height: 1.5rem;
}
.links {
display: flex;
flex-direction: column;
height: 3.5rem;
align-items: center;
justify-content: space-between;
}
.link {
color: #335bf1;
font-weight: 600;
}
@media screen and (min-width: 768px) {
.main {
padding-top: 4.5rem;
}
.title {
line-height: 50px;
font-size: 2.5rem;
}
.description {
font-size: 1.25rem;
}
.title a:hover,
.title a:focus,
.title a:active {
text-decoration: underline;
}
.cards {
margin: 4rem 0;
}
.card {
margin-bottom: 1rem;
}
.card:hover,
.card:focus,
.card:active {
border-color: #f2f2f2;
}
.card:hover .arrow {
display: flex;
align-items: center;
justify-content: center;
}
.cardContent {
grid-template-columns: 24px 1fr 42px;
padding: 2em;
}
.links {
padding-left: 28px;
flex-direction: row;
height: inherit;
}
.link {
padding-right: 28px;
}
.link:hover {
background: url(/icons/external-link.svg) no-repeat right;
background-size: 20px 20px;
}
.linkText:hover {
border-bottom: 2px solid #335bf1;
}
}
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');
html,
body {
font-family: 'Source Sans Pro', sans-serif;
font-size: 16px;
font-weight: 400;
line-height: 20px;
padding: 0;
margin: 0;
}
a {
color: inherit;
text-decoration: none;
}
*,
*:before,
*:after {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment