diff --git a/src/app/data/notes.tsx b/src/app/data/notes.tsx index ac65f43..645d03c 100644 --- a/src/app/data/notes.tsx +++ b/src/app/data/notes.tsx @@ -7,5 +7,4 @@ export const notes: string[] = [ "Our names are Kaz, Tymur, Daniil, and Mark!", "LET'S GO TECH", "In my free time, I do poster design for my dorm room", - 'Ass breaker' ]; \ No newline at end of file diff --git a/src/app/landing/journal.tsx b/src/app/landing/journal.tsx index 2798d65..df56e85 100644 --- a/src/app/landing/journal.tsx +++ b/src/app/landing/journal.tsx @@ -20,7 +20,7 @@ export function Journal(props: {setIndex: (index: number) => void}) { >
Take a break for journaling
- event.stopPropagation()} className="z-[99999] mx-auto py-2 px-4 bg-[#383838] color-[#7f7f7f] border-2 text-xl border-none rounded-xl" placeholder="Reflect on what you learned..." />
diff --git a/src/app/mindmap/page.tsx b/src/app/landing/mindmap.tsx similarity index 88% rename from src/app/mindmap/page.tsx rename to src/app/landing/mindmap.tsx index b265eec..e061fd8 100644 --- a/src/app/mindmap/page.tsx +++ b/src/app/landing/mindmap.tsx @@ -4,6 +4,7 @@ import React from 'react'; import {notes as initialNotes} from '../data/notes' // @ts-ignore import { useState } from "react"; +import { motion } from 'framer'; // Example of notes array @@ -35,13 +36,17 @@ const getRandomColor = () => { return colors[Math.floor(Math.random() * colors.length)]; }; -export default function Landing() { +export function MindMap() { const [notes, setNotes] = useState(initialNotes); // Set the initial state return ( -
+
-

Your personal mind space

{notes.map((note, index) => (
@@ -50,7 +55,7 @@ export default function Landing() { ))}
-
+
); } @@ -61,7 +66,7 @@ const containerStyles = { justifyContent: "center", height: "100vh", // Ensure the container spans vertically padding: "10px", - width: "600px" + width: "100%" }; const innerContainerStyles = { diff --git a/src/app/landing/page.tsx b/src/app/landing/page.tsx index 92e538b..b089879 100644 --- a/src/app/landing/page.tsx +++ b/src/app/landing/page.tsx @@ -3,18 +3,21 @@ import arrow from "../../img/arrow.png"; import gradient from "../../img/gradient.png"; import Image from "next/image"; -import { useEffect, useState } from "react"; +import { useState } from "react"; import { Time } from "@/app/landing/time"; import { motion } from "framer"; import { Journal } from "@/app/landing/journal"; import { QuickFact } from "@/app/landing/quick_fact"; +import { MindMap } from "@/app/landing/mindmap"; export default function Landing() { const [clicked1, setClicked1] = useState(false); const [index, setIndex] = useState(0); const slides = [