-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(website): landing page progress
- Loading branch information
Showing
11 changed files
with
580 additions
and
66 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,44 @@ | ||
import React from "react"; | ||
import StarButton from "./landing/star-button"; | ||
|
||
export default function Hero() { | ||
return ( | ||
<header className="block bg-gradient-to-b from-[#f79f2d] to-[#ff8e0a] bg-center bg-cover overflow-hidden relative"> | ||
<div className="absolute inset-0 pattern-dots pattern-stone-600 pattern-bg-transparent pattern-size-6 pattern-opacity-10" /> | ||
<div className="px-5 md:px-10"> | ||
<div className="mx-auto w-full max-w-7xl"> | ||
<div className="py-12 md:py-16 lg:py-20"> | ||
<div className="mx-auto flex max-w-3xl flex-col items-center text-center mb-8 md:mb-12 lg:mb-16"> | ||
<div className="text-center z-20"> | ||
<div className="mx-auto max-w-[528px] mb-5 md:mb-6 lg:mb-8"> | ||
<h1 className="text-white text-4xl font-bold tracking-tighter"> | ||
End-to-end typesafe Server Actions for Next.js 13 | ||
</h1> | ||
<h2 className="text-stone-50 mt-4"> | ||
next-safe action handles type safety, input validation, | ||
server errors and more for your Next.js app. | ||
</h2> | ||
</div> | ||
<div className="flex justify-center items-center"> | ||
<a | ||
href="/docs/getting-started" | ||
className="cursor-pointer rounded-lg mr-4 bg-stone-800 px-3 py-2 font-bold inline-flex items-center justify-center"> | ||
Getting started | ||
</a> | ||
<StarButton width="170" height="50" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="relative z-20"> | ||
<img | ||
className="inline-block max-h-[416px] w-full max-w-full rounded-tl-[50px] rounded-tr-[50px] border-[12px] border-[#ffffff1f] object-fill z-20" | ||
src="https://assets.website-files.com/647e296b89c00bcfafccf696/647f0755ed7ed2b1be74354e_image_processing20220429-712-h76k3c%202.png" | ||
alt="Hero image showing dashboard" | ||
/> | ||
</div> | ||
</div> | ||
</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,11 @@ | ||
import React from "react"; | ||
import "../../css/tailwind.css"; | ||
import Hero from "../hero"; | ||
|
||
export default function Landing() { | ||
return ( | ||
<main className="tailwind"> | ||
<Hero /> | ||
</main> | ||
); | ||
} |
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,17 @@ | ||
import React from "react"; | ||
|
||
export default function StarButton({ | ||
width, | ||
height, | ||
}: { | ||
width: string; | ||
height: string; | ||
}) { | ||
return ( | ||
<iframe | ||
src="https://ghbtns.com/github-btn.html?user=TheEdoRan&repo=next-safe-action&type=star&count=true&size=large" | ||
width={width} | ||
height={height} | ||
title="GitHub"></iframe> | ||
); | ||
} |
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,5 @@ | ||
.tailwind { | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
} |
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 |
---|---|---|
@@ -1,37 +1,11 @@ | ||
import Link from "@docusaurus/Link"; | ||
import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; | ||
import Layout from "@theme/Layout"; | ||
import clsx from "clsx"; | ||
import React from "react"; | ||
|
||
import styles from "./index.module.css"; | ||
|
||
function HomepageHeader() { | ||
const { siteConfig } = useDocusaurusContext(); | ||
return ( | ||
<header className={clsx("hero hero--primary", styles.heroBanner)}> | ||
<div className="container"> | ||
<h1 className="hero__title">{siteConfig.title}</h1> | ||
<p className="hero__subtitle">{siteConfig.tagline}</p> | ||
<div className={styles.buttons}> | ||
<Link | ||
className="button button--secondary button--lg" | ||
to="/docs/getting-started"> | ||
️Getting started 🎉 | ||
</Link> | ||
</div> | ||
</div> | ||
</header> | ||
); | ||
} | ||
import Landing from "../components/landing"; | ||
|
||
export default function Home(): JSX.Element { | ||
const { siteConfig } = useDocusaurusContext(); | ||
return ( | ||
<Layout | ||
// title={`${siteConfig.title}`} | ||
description="next-safe-action is a library for defining typesafe Server Actions for Next.js 13 using Zod."> | ||
<HomepageHeader /> | ||
<Layout description="next-safe-action is a library for defining typesafe Server Actions for Next.js 13 using Zod."> | ||
<Landing /> | ||
</Layout> | ||
); | ||
} |
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,9 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ["./src/**/*.{js,jsx,ts,tsx}"], | ||
darkMode: ["class", '[data-theme="dark"]'], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [require("tailwindcss-bg-patterns")], | ||
}; |