Skip to content

Commit c0f565e

Browse files
committed
Started building basic landing page based on previous version of Wondernest.
1 parent e42a4a0 commit c0f565e

File tree

10 files changed

+31
-331
lines changed

10 files changed

+31
-331
lines changed

.env.example

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,3 @@
1-
<a href="https://demo-nextjs-with-supabase.vercel.app/">
2-
<img alt="Next.js and Supabase Starter Kit - the fastest way to build apps with Next.js and Supabase" src="https://demo-nextjs-with-supabase.vercel.app/opengraph-image.png">
3-
<h1 align="center">Next.js and Supabase Starter Kit</h1>
4-
</a>
5-
6-
<p align="center">
7-
The fastest way to build apps with Next.js and Supabase
8-
</p>
9-
10-
<p align="center">
11-
<a href="#features"><strong>Features</strong></a> ·
12-
<a href="#demo"><strong>Demo</strong></a> ·
13-
<a href="#deploy-to-vercel"><strong>Deploy to Vercel</strong></a> ·
14-
<a href="#clone-and-run-locally"><strong>Clone and run locally</strong></a> ·
15-
<a href="#feedback-and-issues"><strong>Feedback and issues</strong></a>
16-
<a href="#more-supabase-examples"><strong>More Examples</strong></a>
17-
</p>
18-
<br/>
19-
20-
## Features
21-
22-
- Works across the entire [Next.js](https://nextjs.org) stack
23-
- App Router
24-
- Pages Router
25-
- Middleware
26-
- Client
27-
- Server
28-
- It just works!
29-
- supabase-ssr. A package to configure Supabase Auth to use cookies
30-
- Styling with [Tailwind CSS](https://tailwindcss.com)
31-
- Optional deployment with [Supabase Vercel Integration and Vercel deploy](#deploy-your-own)
32-
- Environment variables automatically assigned to Vercel project
33-
34-
## Demo
35-
36-
You can view a fully working demo at [demo-nextjs-with-supabase.vercel.app](https://demo-nextjs-with-supabase.vercel.app/).
37-
38-
## Deploy to Vercel
39-
40-
Vercel deployment will guide you through creating a Supabase account and project.
41-
42-
After installation of the Supabase integration, all relevant environment variables will be assigned to the project so the deployment is fully functioning.
43-
44-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js%2Ftree%2Fcanary%2Fexamples%2Fwith-supabase&project-name=nextjs-with-supabase&repository-name=nextjs-with-supabase&demo-title=nextjs-with-supabase&demo-description=This%20starter%20configures%20Supabase%20Auth%20to%20use%20cookies%2C%20making%20the%20user's%20session%20available%20throughout%20the%20entire%20Next.js%20app%20-%20Client%20Components%2C%20Server%20Components%2C%20Route%20Handlers%2C%20Server%20Actions%20and%20Middleware.&demo-url=https%3A%2F%2Fdemo-nextjs-with-supabase.vercel.app%2F&external-id=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js%2Ftree%2Fcanary%2Fexamples%2Fwith-supabase&demo-image=https%3A%2F%2Fdemo-nextjs-with-supabase.vercel.app%2Fopengraph-image.png&integration-ids=oac_VqOgBHqhEoFTPzGkPd7L0iH6)
45-
46-
The above will also clone the Starter kit to your GitHub, you can clone that locally and develop locally.
47-
48-
If you wish to just develop locally and not deploy to Vercel, [follow the steps below](#clone-and-run-locally).
49-
501
## Clone and run locally
512

523
1. You'll first need a Supabase project which can be made [via the Supabase dashboard](https://database.new)
@@ -81,13 +32,3 @@ If you wish to just develop locally and not deploy to Vercel, [follow the steps
8132
The starter kit should now be running on [localhost:3000](http://localhost:3000/).
8233

8334
> Check out [the docs for Local Development](https://supabase.com/docs/guides/getting-started/local-development) to also run Supabase locally.
84-
85-
## Feedback and issues
86-
87-
Please file feedback and issues over on the [Supabase GitHub org](https://github.com/supabase/supabase/issues/new/choose).
88-
89-
## More Supabase examples
90-
91-
- [Next.js Subscription Payments Starter](https://github.com/vercel/nextjs-subscription-payments)
92-
- [Cookie-based Auth and the Next.js 13 App Router (free course)](https://youtube.com/playlist?list=PL5S4mPUpp4OtMhpnp93EFSo42iQ40XjbF)
93-
- [Supabase Auth and the Next.js App Router](https://github.com/supabase/supabase/tree/master/examples/auth/nextjs)

app/globals.css

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,6 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
@layer base {
6-
:root {
7-
--background: 200 20% 98%;
8-
--btn-background: 200 10% 91%;
9-
--btn-background-hover: 200 10% 89%;
10-
--foreground: 200 50% 3%;
11-
}
12-
13-
@media (prefers-color-scheme: dark) {
14-
:root {
15-
--background: 200 50% 3%;
16-
--btn-background: 200 10% 9%;
17-
--btn-background-hover: 200 10% 12%;
18-
--foreground: 200 20% 96%;
19-
}
20-
}
21-
}
22-
23-
@layer base {
24-
* {
25-
@apply border-foreground/20;
26-
}
27-
}
28-
295
.animate-in {
306
animation: animateIn 0.3s ease 0.15s both;
317
}

app/layout.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { GeistSans } from "geist/font/sans";
2-
import "./globals.css";
1+
import { GeistSans } from 'geist/font/sans';
2+
import './globals.css';
33

44
const defaultUrl = process.env.VERCEL_URL
55
? `https://${process.env.VERCEL_URL}`
6-
: "http://localhost:3000";
6+
: 'http://localhost:3000';
77

88
export const metadata = {
99
metadataBase: new URL(defaultUrl),
10-
title: "Next.js and Supabase Starter Kit",
11-
description: "The fastest way to build apps with Next.js and Supabase",
10+
title: 'Wondernest',
11+
description: 'The fastest way to build apps with Next.js and Supabase',
1212
};
1313

1414
export default function RootLayout({
@@ -17,9 +17,9 @@ export default function RootLayout({
1717
children: React.ReactNode;
1818
}) {
1919
return (
20-
<html lang="en" className={GeistSans.className}>
21-
<body className="bg-background text-foreground">
22-
<main className="min-h-screen flex flex-col items-center">
20+
<html lang='en' className={GeistSans.className}>
21+
<body className='bg-stone-100'>
22+
<main className='min-h-screen flex flex-col items-center'>
2323
{children}
2424
</main>
2525
</body>

app/page.tsx

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import DeployButton from "../components/DeployButton";
2-
import AuthButton from "../components/AuthButton";
3-
import { createClient } from "@/utils/supabase/server";
4-
import ConnectSupabaseSteps from "@/components/tutorial/ConnectSupabaseSteps";
5-
import SignUpUserSteps from "@/components/tutorial/SignUpUserSteps";
6-
import Header from "@/components/Header";
1+
import DeployButton from '../components/DeployButton';
2+
import AuthButton from '../components/AuthButton';
3+
import { createClient } from '@/utils/supabase/server';
4+
import ConnectSupabaseSteps from '@/components/tutorial/ConnectSupabaseSteps';
5+
import SignUpUserSteps from '@/components/tutorial/SignUpUserSteps';
6+
import Header from '@/components/Header';
77

88
export default async function Index() {
99
const canInitSupabaseClient = () => {
@@ -20,33 +20,20 @@ export default async function Index() {
2020
const isSupabaseConnected = canInitSupabaseClient();
2121

2222
return (
23-
<div className="flex-1 w-full flex flex-col gap-20 items-center">
24-
<nav className="w-full flex justify-center border-b border-b-foreground/10 h-16">
25-
<div className="w-full max-w-4xl flex justify-between items-center p-3 text-sm">
26-
<DeployButton />
23+
<div className='flex-1 w-full flex flex-col gap-20 items-center'>
24+
<nav className='w-full flex justify-center border-b h-16'>
25+
<div className='w-full max-w-4xl flex justify-between items-center p-3 text-sm'>
2726
{isSupabaseConnected && <AuthButton />}
2827
</div>
2928
</nav>
3029

31-
<div className="animate-in flex-1 flex flex-col gap-20 opacity-0 max-w-4xl px-3">
30+
<div className='animate-in flex-1 flex flex-col gap-20 opacity-0 max-w-4xl px-3'>
3231
<Header />
33-
<main className="flex-1 flex flex-col gap-6">
34-
<h2 className="font-bold text-4xl mb-4">Next steps</h2>
35-
{isSupabaseConnected ? <SignUpUserSteps /> : <ConnectSupabaseSteps />}
36-
</main>
3732
</div>
3833

39-
<footer className="w-full border-t border-t-foreground/10 p-8 flex justify-center text-center text-xs">
40-
<p>
41-
Powered by{" "}
42-
<a
43-
href="https://supabase.com/?utm_source=create-next-app&utm_medium=template&utm_term=nextjs"
44-
target="_blank"
45-
className="font-bold hover:underline"
46-
rel="noreferrer"
47-
>
48-
Supabase
49-
</a>
34+
<footer className='w-full border-t p-8 flex justify-center text-center text-xs'>
35+
<p className='uppercase text-xs text-gray-500'>
36+
Only you know who you can be
5037
</p>
5138
</footer>
5239
</div>

components/DeployButton.tsx

Lines changed: 0 additions & 23 deletions
This file was deleted.

components/Header.tsx

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,15 @@
1-
import NextLogo from "./NextLogo";
2-
import SupabaseLogo from "./SupabaseLogo";
3-
41
export default function Header() {
52
return (
6-
<div className="flex flex-col gap-16 items-center">
7-
<div className="flex gap-8 justify-center items-center">
8-
<a
9-
href="https://supabase.com/?utm_source=create-next-app&utm_medium=template&utm_term=nextjs"
10-
target="_blank"
11-
rel="noreferrer"
12-
>
13-
<SupabaseLogo />
14-
</a>
15-
<span className="border-l rotate-45 h-6" />
16-
<a href="https://nextjs.org/" target="_blank" rel="noreferrer">
17-
<NextLogo />
18-
</a>
19-
</div>
20-
<h1 className="sr-only">Supabase and Next.js Starter Template</h1>
21-
<p className="text-3xl lg:text-4xl !leading-tight mx-auto max-w-xl text-center">
22-
The fastest way to build apps with{" "}
23-
<a
24-
href="https://supabase.com/?utm_source=create-next-app&utm_medium=template&utm_term=nextjs"
25-
target="_blank"
26-
className="font-bold hover:underline"
27-
rel="noreferrer"
28-
>
29-
Supabase
30-
</a>{" "}
31-
and{" "}
32-
<a
33-
href="https://nextjs.org/"
34-
target="_blank"
35-
className="font-bold hover:underline"
36-
rel="noreferrer"
37-
>
38-
Next.js
39-
</a>
3+
<div className='flex flex-col gap-4 items-center'>
4+
<h1 className='mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-3xl lg:text-5xl dark:text-white'>
5+
Offline Events and Deep Connection
6+
</h1>
7+
<p className='mb-6 text-lg font-normal text-gray-500 lg:text-xl sm:px-16 xl:px-48 dark:text-gray-400'>
8+
Wondernest is a place for people who believe in putting human connection
9+
first. Here you can create events to share privately. We are still
10+
working the first version, but if you are alredy interested in using it,
11+
or just want to share some thoughts, feel free to reach out.
4012
</p>
41-
<div className="w-full p-[1px] bg-gradient-to-r from-transparent via-foreground/10 to-transparent my-8" />
4213
</div>
4314
);
4415
}

components/NextLogo.tsx

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)