feat: landing page hero
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
"@vercel/postgres": "^0.7.2",
|
||||
"date-fns": "^4.1.0",
|
||||
"drizzle-orm": "^0.28.5",
|
||||
"js-cookie": "^3.0.5",
|
||||
"next": "^14.1.3",
|
||||
"nextjs-cors": "^2.2.0",
|
||||
"postgres": "^3.4.4",
|
||||
@@ -49,6 +50,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/eslint": "^8.56.2",
|
||||
"@types/js-cookie": "^3.0.6",
|
||||
"@types/node": "^20.11.20",
|
||||
"@types/react": "^18.2.57",
|
||||
"@types/react-beautiful-dnd": "^13.1.7",
|
||||
|
||||
BIN
public/hero.png
Normal file
BIN
public/hero.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 433 KiB |
@@ -26,7 +26,7 @@ export const env = createEnv({
|
||||
* `NEXT_PUBLIC_`.
|
||||
*/
|
||||
client: {
|
||||
// NEXT_PUBLIC_CLIENTVAR: z.string(),
|
||||
NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME: z.string(),
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -37,7 +37,8 @@ export const env = createEnv({
|
||||
POSTGRES_URL: process.env.POSTGRES_URL,
|
||||
NODE_ENV: process.env.NODE_ENV,
|
||||
WEBSITE_URL: process.env.WEBSITE_URL,
|
||||
// NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR,
|
||||
NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME:
|
||||
process.env.NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME,
|
||||
},
|
||||
/**
|
||||
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
import Cookies from "js-cookie";
|
||||
|
||||
import Button from "~/components/Button";
|
||||
import PatternedBackground from "~/components/PatternedBackground";
|
||||
import { api } from "~/utils/api";
|
||||
import { env } from "~/env.mjs";
|
||||
|
||||
import { IoLogoGithub } from "react-icons/io";
|
||||
|
||||
export default function HomeView() {
|
||||
const token =
|
||||
typeof window !== "undefined"
|
||||
? localStorage.getItem("sb-bbgbpnfcmvrpinklkgqq-auth-token.0")
|
||||
? Cookies.get(env.NEXT_PUBLIC_SUPABASE_AUTH_COOKIE_NAME)
|
||||
: null;
|
||||
|
||||
const { data } = api.auth.getUser.useQuery(undefined, {
|
||||
@@ -98,7 +102,19 @@ export default function HomeView() {
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex flex-col items-center justify-center">
|
||||
<div className="mb-10 rounded-[24px] border border-light-300 bg-light-50 p-2 shadow-md">
|
||||
<div className="rounded-[16px] border border-light-300 bg-light-200 p-2">
|
||||
<div className="overflow-hidden rounded-[16px] shadow-sm">
|
||||
<Image
|
||||
src="/hero.png"
|
||||
alt="kanban"
|
||||
width={1100}
|
||||
height={1000}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex flex-col items-center justify-center pb-10">
|
||||
<div className="flex items-center gap-2 rounded-full border bg-light-50 px-4 py-1 text-center text-sm text-light-1000 dark:bg-dark-50 dark:text-dark-1000">
|
||||
<p>
|
||||
We are currently building the product and will be launching
|
||||
|
||||
Reference in New Issue
Block a user