-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
3,460 additions
and
139 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { createClient } from '@supabase/supabase-js'; | ||
import dotenv from 'dotenv'; | ||
|
||
dotenv.config(); | ||
|
||
if ( | ||
!process.env.NEXT_PUBLIC_SUPABASE_URL || | ||
!process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY | ||
) { | ||
throw new Error( | ||
'No Supabase environment variables detected, please make sure they are in place!', | ||
); | ||
} | ||
|
||
const supabase = createClient( | ||
process.env.NEXT_PUBLIC_SUPABASE_URL, | ||
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY, | ||
); | ||
|
||
export default supabase; |
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,7 @@ | ||
export default function Checkout() { | ||
return ( | ||
<main> | ||
<div>Checkout</div> | ||
</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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
import './globals.css' | ||
import type { Metadata } from 'next' | ||
import { Inter } from 'next/font/google' | ||
import './globals.css'; | ||
import type { Metadata } from 'next'; | ||
import { Inter } from 'next/font/google'; | ||
|
||
const inter = Inter({ subsets: ['latin'] }) | ||
const inter = Inter({ subsets: ['latin'] }); | ||
|
||
export const metadata: Metadata = { | ||
title: 'Shanti Project', | ||
description: 'Application Created by Blueprint', | ||
} | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body className={inter.className}>{children}</body> | ||
</html> | ||
) | ||
); | ||
} |
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,34 @@ | ||
'use client'; | ||
|
||
import Link from 'next/link'; | ||
import LoginForm from '../../components/LoginForm'; | ||
|
||
import { | ||
GlobalStyle, | ||
Fullscreen, | ||
Img, | ||
LoginBox, | ||
LoginContent, | ||
WelcomeSign, | ||
Button, | ||
} from './styles'; | ||
|
||
export default function App() { | ||
return ( | ||
<main> | ||
<GlobalStyle /> | ||
<Fullscreen> | ||
<Img /> | ||
<LoginBox> | ||
<LoginContent> | ||
<WelcomeSign>Welcome</WelcomeSign> | ||
<LoginForm /> | ||
<Button> | ||
<Link href="/storefront">Log In</Link> | ||
</Button> | ||
</LoginContent> | ||
</LoginBox> | ||
</Fullscreen> | ||
</main> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,79 @@ | ||
import styled, { createGlobalStyle } from 'styled-components'; | ||
|
||
export const GlobalStyle = createGlobalStyle` | ||
body { | ||
background:white; | ||
} | ||
`; | ||
export const LoginBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
width: 500px; | ||
height: 420px; | ||
margin-left: 450px; | ||
margin-top: 80px; | ||
border: 1px solid #b3b3b3; | ||
`; | ||
|
||
export const LoginContent = styled.div` | ||
margin-left: 40px; | ||
margin-top: 30px; | ||
`; | ||
|
||
export const Button = styled.button` | ||
margin-top: 40px; | ||
color: #fff; | ||
text-align: center; | ||
font-family: Inter; | ||
font-size: 17px; | ||
font-style: normal; | ||
font-weight: 500; | ||
line-height: normal; | ||
width: 420px; | ||
height: 40px; | ||
border-radius: 8px; | ||
background: #000; | ||
border: transparent; | ||
`; | ||
|
||
export const WelcomeSign = styled.div` | ||
color: #000; | ||
font-family: Inter; | ||
font-size: 40px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
margin-bottom: 30px; | ||
`; | ||
|
||
export const Input = styled.input` | ||
background: #d9d9d9; | ||
border: transparent; | ||
width: 420px; | ||
height: 40px; | ||
padding-left: 10px; | ||
`; | ||
|
||
export const FormHeaders = styled.p` | ||
color: #000; | ||
font-family: Inter; | ||
font-size: 15px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
margin-top: 20px; | ||
margin-bottom: 10px; | ||
`; | ||
|
||
export const Fullscreen = styled.div` | ||
width: 100 %; | ||
height: 100 %; | ||
`; | ||
export const Img = styled.div` | ||
background-color: yellow; | ||
align-self: flex - start; | ||
justify-self: flex - start; | ||
height: 50px; | ||
width: 110px; | ||
margin: 20px; | ||
`; |
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,95 +1,9 @@ | ||
import Image from 'next/image' | ||
import styles from './page.module.css' | ||
import Link from 'next/link'; | ||
|
||
export default function Home() { | ||
export default function Checkout() { | ||
return ( | ||
<main className={styles.main}> | ||
<div className={styles.description}> | ||
<p> | ||
Get started by editing | ||
<code className={styles.code}>src/app/page.tsx</code> | ||
</p> | ||
<div> | ||
<a | ||
href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
By{' '} | ||
<Image | ||
src="/vercel.svg" | ||
alt="Vercel Logo" | ||
className={styles.vercelLogo} | ||
width={100} | ||
height={24} | ||
priority | ||
/> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div className={styles.center}> | ||
<Image | ||
className={styles.logo} | ||
src="/next.svg" | ||
alt="Next.js Logo" | ||
width={180} | ||
height={37} | ||
priority | ||
/> | ||
</div> | ||
|
||
<div className={styles.grid}> | ||
<a | ||
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Docs <span>-></span> | ||
</h2> | ||
<p>Find in-depth information about Next.js features and API.</p> | ||
</a> | ||
|
||
<a | ||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Learn <span>-></span> | ||
</h2> | ||
<p>Learn about Next.js in an interactive course with quizzes!</p> | ||
</a> | ||
|
||
<a | ||
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Templates <span>-></span> | ||
</h2> | ||
<p>Explore the Next.js 13 playground.</p> | ||
</a> | ||
|
||
<a | ||
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Deploy <span>-></span> | ||
</h2> | ||
<p> | ||
Instantly deploy your Next.js site to a shareable URL with Vercel. | ||
</p> | ||
</a> | ||
</div> | ||
<main> | ||
<Link href="/login">Login</Link> | ||
</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,7 @@ | ||
export default function Profile() { | ||
return ( | ||
<main> | ||
<div>Profile</div> | ||
</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,7 @@ | ||
export default function Storefront() { | ||
return ( | ||
<main> | ||
<div>storefront</div> | ||
</main> | ||
); | ||
} |
Empty file.
Empty file.
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,18 @@ | ||
'use client'; | ||
|
||
import { FormHeaders, Input } from '../app/login/styles'; | ||
|
||
export default function InputFields(props: { | ||
text: string; | ||
placeholder: string; | ||
}) { | ||
const { text, placeholder } = props; | ||
return ( | ||
<main> | ||
<div id="userInfo"> | ||
<FormHeaders>{text}</FormHeaders> | ||
<Input type="text" placeholder={placeholder} /> | ||
</div> | ||
</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,12 @@ | ||
'use client'; | ||
|
||
import InputFields from './InputFields'; | ||
|
||
export default function LoginForm() { | ||
return ( | ||
<div> | ||
<InputFields text="Email address" placeholder="[email protected]" /> | ||
<InputFields text="Password" placeholder="************" /> | ||
</div> | ||
); | ||
} |
Empty file.
Empty file.
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