Skip to content

Commit

Permalink
plz work
Browse files Browse the repository at this point in the history
most of the buttons/links dont work as of rn
  • Loading branch information
jonathanmaynard-gh committed Aug 2, 2024
1 parent d101f2e commit 4854c66
Show file tree
Hide file tree
Showing 41 changed files with 3,182 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# contentlayer
.contentlayer
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
run 'npm run dev' to get it running

if you have any issues run 'npm install' and it should fix it

if it doesn't fix it consult chatgpt or jonathan (me)
17 changes: 17 additions & 0 deletions app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import PageIllustration from '@/components/page-illustration'

export default function AuthLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<main className="grow">

<PageIllustration />

{children}

</main>
)
}
44 changes: 44 additions & 0 deletions app/(auth)/reset-password/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
export const metadata = {
title: 'Reset Password - Knowlify',
description: 'Page description',
}

import Link from 'next/link'

export default function ResetPassword() {
return (
<section className="relative">
<div className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="pt-32 pb-12 md:pt-40 md:pb-20">

{/* Page header */}
<div className="max-w-3xl mx-auto text-center pb-12 md:pb-20">
<h1 className="h1 mb-4">Forgot your password?</h1>
<p className="text-xl text-gray-400">We'll email you instructions on how to reset it.</p>
</div>

{/* Form */}
<div className="max-w-sm mx-auto">
<form>
<div className="flex flex-wrap -mx-3 mb-4">
<div className="w-full px-3">
<label className="block text-gray-300 text-sm font-medium mb-1" htmlFor="email">Email</label>
<input id="email" type="email" className="form-input w-full text-gray-300" placeholder="you@yourcompany.com" required />
</div>
</div>
<div className="flex flex-wrap -mx-3 mt-6">
<div className="w-full px-3">
<button className="btn text-white bg-purple-600 hover:bg-purple-700 w-full">Reset Password</button>
</div>
</div>
</form>
<div className="text-gray-400 text-center mt-6">
<Link href="/signin" className="text-purple-600 hover:text-gray-200 transition duration-150 ease-in-out">Cancel</Link>
</div>
</div>

</div>
</div>
</section>
)
}
78 changes: 78 additions & 0 deletions app/(auth)/signin/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
export const metadata = {
title: 'Sign In - Knowlify',
description: 'Page description',
}

import Link from 'next/link'

export default function SignIn() {
return (
<section className="relative">
<div className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="pt-32 pb-12 md:pt-40 md:pb-20">

{/* Page header */}
<div className="max-w-3xl mx-auto text-center pb-12 md:pb-20">
<h1 className="h1">Welcome back. We exist to make learning better.</h1>
</div>

{/* Form */}
<div className="max-w-sm mx-auto">
<form>
<div className="flex flex-wrap -mx-3">
<div className="w-full px-3">
<button className="btn px-0 text-white bg-red-600 hover:bg-red-700 w-full relative flex items-center">
<svg className="w-4 h-4 fill-current text-white opacity-75 shrink-0 mx-4" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<path d="M7.9 7v2.4H12c-.2 1-1.2 3-4 3-2.4 0-4.3-2-4.3-4.4 0-2.4 2-4.4 4.3-4.4 1.4 0 2.3.6 2.8 1.1l1.9-1.8C11.5 1.7 9.9 1 8 1 4.1 1 1 4.1 1 8s3.1 7 7 7c4 0 6.7-2.8 6.7-6.8 0-.5 0-.8-.1-1.2H7.9z" />
</svg>
<span className="h-6 flex items-center border-r border-white border-opacity-25 mr-4" aria-hidden="true"></span>
<span className="flex-auto pl-16 pr-8 -ml-16">Sign in with Google</span>
</button>
</div>
</div>
</form>
<div className="flex items-center my-6">
<div className="border-t border-gray-700 border-dotted grow mr-3" aria-hidden="true"></div>
<div className="text-gray-400">Or, sign in with your email</div>
<div className="border-t border-gray-700 border-dotted grow ml-3" aria-hidden="true"></div>
</div>
<form>
<div className="flex flex-wrap -mx-3 mb-4">
<div className="w-full px-3">
<label className="block text-gray-300 text-sm font-medium mb-1" htmlFor="email">Email</label>
<input id="email" type="email" className="form-input w-full text-gray-300" placeholder="you@example.com" required />
</div>
</div>
<div className="flex flex-wrap -mx-3 mb-4">
<div className="w-full px-3">
<label className="block text-gray-300 text-sm font-medium mb-1" htmlFor="password">Password</label>
<input id="password" type="password" className="form-input w-full text-gray-300" placeholder="Password (at least 7 characters)" required />
</div>
</div>
<div className="flex flex-wrap -mx-3 mb-4">
<div className="w-full px-3">
<div className="flex justify-between">
<label className="flex items-center">
<input type="checkbox" className="form-checkbox" />
<span className="text-gray-400 ml-2">Keep me signed in</span>
</label>
<Link href="/reset-password" className="text-purple-600 hover:text-gray-200 transition duration-150 ease-in-out">Forgot Password?</Link>
</div>
</div>
</div>
<div className="flex flex-wrap -mx-3 mt-6">
<div className="w-full px-3">
<button className="btn text-white bg-purple-600 hover:bg-purple-700 w-full">Sign in</button>
</div>
</div>
</form>
<div className="text-gray-400 text-center mt-6">
Don’t you have an account? <Link href="/signup" className="text-purple-600 hover:text-gray-200 transition duration-150 ease-in-out">Sign up</Link>
</div>
</div>

</div>
</div>
</section>
)
}
76 changes: 76 additions & 0 deletions app/(auth)/signup/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
export const metadata = {
title: 'Sign Up - Knowlify',
description: 'Page description',
}

import Link from 'next/link'

export default function SignUp() {
return (
<section className="relative">
<div className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="pt-32 pb-12 md:pt-40 md:pb-20">

{/* Page header */}
<div className="max-w-3xl mx-auto text-center pb-12 md:pb-20">
<h1 className="h1">Welcome. We exist to make learning better.</h1>
</div>

{/* Form */}
<div className="max-w-sm mx-auto">
<form>
<div className="flex flex-wrap -mx-3">
<div className="w-full px-3">
<button className="btn px-0 text-white bg-red-600 hover:bg-red-700 w-full relative flex items-center">
<svg className="w-4 h-4 fill-current text-white opacity-75 shrink-0 mx-4" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<path d="M7.9 7v2.4H12c-.2 1-1.2 3-4 3-2.4 0-4.3-2-4.3-4.4 0-2.4 2-4.4 4.3-4.4 1.4 0 2.3.6 2.8 1.1l1.9-1.8C11.5 1.7 9.9 1 8 1 4.1 1 1 4.1 1 8s3.1 7 7 7c4 0 6.7-2.8 6.7-6.8 0-.5 0-.8-.1-1.2H7.9z" />
</svg>
<span className="h-6 flex items-center border-r border-white border-opacity-25 mr-4" aria-hidden="true"></span>
<span className="flex-auto pl-16 pr-8 -ml-16">Sign up with Google</span>
</button>
</div>
</div>
</form>
<div className="flex items-center my-6">
<div className="border-t border-gray-700 border-dotted grow mr-3" aria-hidden="true"></div>
<div className="text-gray-400">Or, register with your email</div>
<div className="border-t border-gray-700 border-dotted grow ml-3" aria-hidden="true"></div>
</div>
<form>
<div className="flex flex-wrap -mx-3 mb-4">
<div className="w-full px-3">
<label className="block text-gray-300 text-sm font-medium mb-1" htmlFor="full-name">Full Name <span className="text-red-600">*</span></label>
<input id="full-name" type="text" className="form-input w-full text-gray-300" placeholder="First and last name" required />
</div>
</div>
<div className="flex flex-wrap -mx-3 mb-4">
<div className="w-full px-3">
<label className="block text-gray-300 text-sm font-medium mb-1" htmlFor="email">Email <span className="text-red-600">*</span></label>
<input id="email" type="email" className="form-input w-full text-gray-300" placeholder="you@example.com" required />
</div>
</div>
<div className="flex flex-wrap -mx-3 mb-4">
<div className="w-full px-3">
<label className="block text-gray-300 text-sm font-medium mb-1" htmlFor="password">Password <span className="text-red-600">*</span></label>
<input id="password" type="password" className="form-input w-full text-gray-300" placeholder="Password (at least 7 characters)" required />
</div>
</div>
<div className="text-sm text-gray-500 text-center">
I agree to be contacted by Knowlify about this offer as per the Knowlify <Link href="#" className="underline text-gray-400 hover:text-gray-200 hover:no-underline transition duration-150 ease-in-out">Privacy Policy</Link>.
</div>
<div className="flex flex-wrap -mx-3 mt-6">
<div className="w-full px-3">
<button className="btn text-white bg-purple-600 hover:bg-purple-700 w-full">Sign up</button>
</div>
</div>
</form>
<div className="text-gray-400 text-center mt-6">
Already using Knowlify? <Link href="/signin" className="text-purple-600 hover:text-gray-200 transition duration-150 ease-in-out">Sign in</Link>
</div>
</div>

</div>
</div>
</section>
)
}
46 changes: 46 additions & 0 deletions app/(default)/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
export const metadata = {
title: 'Contact Us - Knowlify',
description: 'Page description',
};

import Link from 'next/link'

export default function Contact() {
return (
<section className="relative">
<div className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="pt-32 pb-12 md:pt-40 md:pb-20">

{/* Page header */}
<div className="max-w-3xl mx-auto text-center pb-12 md:pb-20">
<h1 className="h1">Contact Us</h1>
</div>

{/* Form */}
<div className="max-w-sm mx-auto">
<form>
<div className="flex flex-wrap -mx-3 mb-4">
<div className="w-full px-3">
<label className="block text-gray-300 text-sm font-medium mb-1" htmlFor="email">Email</label>
<input id="email" type="email" className="form-input w-full text-gray-300" placeholder="you@example.com" required />
</div>
</div>
<div className="flex flex-wrap -mx-3 mb-4">
<div className="w-full px-3">
<label className="block text-gray-300 text-sm font-medium mb-1" htmlFor="message">Message</label>
<textarea id="message" className="form-input w-full text-gray-300" placeholder="Your message" required></textarea>
</div>
</div>
<div className="flex flex-wrap -mx-3 mt-6">
<div className="w-full px-3">
<button className="btn text-white bg-purple-600 hover:bg-purple-700 w-full">Send Message</button>
</div>
</div>
</form>
</div>

</div>
</div>
</section>
)
}
39 changes: 39 additions & 0 deletions app/(default)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
'use client'

import { useEffect } from 'react'

import AOS from 'aos'
import 'aos/dist/aos.css'

import PageIllustration from '@/components/page-illustration'
import Footer from '@/components/ui/footer'

export default function DefaultLayout({
children,
}: {
children: React.ReactNode
}) {

useEffect(() => {
AOS.init({
once: true,
disable: 'phone',
duration: 600,
easing: 'ease-out-sine',
})
})

return (
<>
<main className="grow">

<PageIllustration />

{children}

</main>

<Footer />
</>
)
}
20 changes: 20 additions & 0 deletions app/(default)/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export const metadata = {
title: 'Home - Knowlify',
description: 'Page description',
}

import Hero from '@/components/hero'
import Newsletter from '@/components/newsletter'
import Zigzag from '@/components/zigzag'
import MeetTheTeam from '@/components/meettheteam'

export default function Home() {
return (
<>
<Hero />
<Zigzag />
<MeetTheTeam />
<Newsletter />
</>
)
}
3 changes: 3 additions & 0 deletions app/api/hello/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export async function GET(request: Request) {
return new Response('Hello, Next.js!')
}
Loading

0 comments on commit 4854c66

Please sign in to comment.