Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 50 additions & 3 deletions www/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,61 @@ import { SignupForm } from "@/components/signup-form";
import { Button } from "@/components/ui/button";
import { UserAuth } from "@/components/user-auth";
import Link from "next/link";
import Image from "@/node_modules/next/image";
import Logo from "@/public/logo.svg";
import Logo2 from "@/public/cap.png";



export default function Home() {
return (
<main className="min-h-screen min-w-screen flex justify-center items-center flex-col">
<h1 className="text-6xl font-black">Simple. Intelligent. Automated.</h1>
<div className="flex flex-col justify-center min-h-screen">
<header className="sticky top-0 flex h-12 items-left gap-4 border-b bg-background px-4 md:px-6">
<div className="flex w-full justify-start gap-4 md:ml-auto md:gap-2 lg:gap-4">
<Image
src={Logo}
alt="Logo"
width={75}
height={75}
/>
<div className="flex justify-center items-center">
<p className="py-5 font-sans text-2xl">Rabbithole</p>
</div>


</div>
</header>
<main className="min-h-screen min-w-screen flex py-10 items-center flex-col">
<h2 className="text-3xl font-black">Democratizing Structured Learning</h2>
<Image
src={Logo2}
alt="Logo"
width={200}
height={200}
/>
<Link href="/auth">
<Button className="mt-4">Get Started</Button>
</Link>
</main>
<div className="py-4"></div>
<div className="container" style={{ maxWidth: '800px', margin: '0 auto' }}>
<div className="grid" style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '20px' }}>
<div className="card" style={{ border: '1px solid #ccc', borderRadius: '8px', padding: '20px' }}>
<div className="content" style={{ marginBottom: '10px' }}>
<div className="font-bold text-lg">Expand Your Knowledge.</div>
<div>Seamlessly bridge the gap in your learning. Want to learn calculus, coding, or even product management? No problem. Unsure where to begin? Get a personal plan quickly with the help of our model.</div>
</div>
</div>
<div className="card" style={{ border: '1px solid #ccc', borderRadius: '8px', padding: '20px' }}>
<div className="content" style={{ marginBottom: '10px' }}>
<div className="font-bold text-lg">A Plan, Personalized for You.</div>
<div>Our AI agent is trained to provide you with content suited to your goals. No more searching for hours.</div>
</div>

</div>
</div>
</div>

</main>
</div>
);
}
25 changes: 8 additions & 17 deletions www/components/track-dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
CardTitle,
} from "@/components/ui/card"
import React, { useState, useEffect} from "react"
import {createClient} from "@/utils/supabase/client";

import {
DropdownMenu,
DropdownMenuContent,
Expand All @@ -21,13 +21,14 @@ import {
} from "@/components/ui/dropdown-menu"
import { Input } from "@/components/ui/input"
import Link from "next/link"
import { getTracks } from "@/lib/actions/track"



export function TrackDashboard() {
const supabase = createClient();
const [input1, setInput1] = useState('');
const [input2, setInput2] = useState('');
const [tracks, setTracks] = useState([]);

const handleFormSubmit = async (event) => {
event.preventDefault(); //validation needed here
Expand Down Expand Up @@ -55,21 +56,12 @@ export function TrackDashboard() {
}
};

const [tracks, setTracks] = useState([]);
async function getTracks() {
const res = await supabase.from('tracks').select('*');
console.log(res);
if (res.error) {
throw res.error;
}
return res.data;
}

useEffect(() => {
getTracks().then((data) => {
console.log(data);
setTracks(data);
});
async function fetchData() {
const res = await getTracks();
setTracks(res);
}

}, []);

return (
Expand Down Expand Up @@ -134,7 +126,6 @@ export function TrackDashboard() {
))}

</div>

</main>
</div>
)
Expand Down
Binary file added www/public/cap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/public/education.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.