From 5bd3a1ae2eb5b5a656a74997ba70d9a7e2dba324 Mon Sep 17 00:00:00 2001 From: Katleho Janco Date: Sat, 22 Apr 2023 18:42:42 +0200 Subject: [PATCH] Added auth pages --- README.md | 39 +------------ src/pages/index.tsx | 114 ++----------------------------------- src/pages/login/index.tsx | 7 +++ src/pages/signup/index.tsx | 7 +++ src/styles/globals.css | 41 ++++++------- 5 files changed, 41 insertions(+), 167 deletions(-) create mode 100644 src/pages/login/index.tsx create mode 100644 src/pages/signup/index.tsx diff --git a/README.md b/README.md index 965a122..eb1b899 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,3 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). +# Work appp -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. - -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. - -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +### Features coming soon \ No newline at end of file diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 57e2a8c..e14eb13 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,118 +1,12 @@ import Image from 'next/image' -import { Inter } from 'next/font/google' +// import { Inter } from 'next/font/google' -const inter = Inter({ subsets: ['latin'] }) +// const inter = Inter({ subsets: ['latin'] }) export default function Home() { return ( -
-
-

- Get started by editing  - src/pages/index.tsx -

-
- - By{' '} - Vercel Logo - -
-
- -
- Next.js Logo -
- -
- -

- Docs{' '} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
- - -

- Learn{' '} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{' '} - - -> - -

-

- Discover and deploy boilerplate example Next.js projects. -

-
- - -

- Deploy{' '} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
+
+

Test

) } diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx new file mode 100644 index 0000000..907bd85 --- /dev/null +++ b/src/pages/login/index.tsx @@ -0,0 +1,7 @@ +import React from 'react' + +export default function Login() { + return ( +
Login
+ ) +} diff --git a/src/pages/signup/index.tsx b/src/pages/signup/index.tsx new file mode 100644 index 0000000..e082ac7 --- /dev/null +++ b/src/pages/signup/index.tsx @@ -0,0 +1,7 @@ +import React from 'react' + +export default function Signup() { + return ( +
Signup
+ ) +} diff --git a/src/styles/globals.css b/src/styles/globals.css index fd81e88..eaf2e49 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -2,26 +2,27 @@ @tailwind components; @tailwind utilities; -:root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; +@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); +*, +*::before, +*::after { + box-sizing: border-box; } - -@media (prefers-color-scheme: dark) { - :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; - } -} - body { - color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); + height: 100vh; + padding: 0; + margin: 0; +} +h1, +h2, +h3, +h4, +h5, +h6 { + margin: 0; + padding: 0; +} +img { + width: 100%; + height: auto; }