diff --git a/src/App.tsx b/src/App.tsx index c5c7fb2..05170d2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,30 +1,79 @@ +import { useState } from "react"; import LearningPath from "./components/LearningPath"; function App() { + const nodeParam = new URLSearchParams(window.location.search).get("node"); + const [isLearningPathOpen, setLearningPathOpen] = useState(nodeParam != null); + return ( -
-
-
- -

beacon

-
-
- - - - - +
+
+
+
+ +

beacon

+
+
- {/*

Hello, traveller!

*/} - + {isLearningPathOpen ? ( +
+ +
+ ) : ( +
+
+

+ Learn anything and become anyone. +

+

+ Empower Your Growth: Discover Beacon's No-Login, Privacy-Centric + Approach +

+ +

+ * Free, No Signup Required, Forever Secure +

+
+
+
+

+ What is it? +

+
+

+ Dive into a world where learning is limitless and personal growth + is prioritized. Beacon stands as a beacon of light in the digital + landscape, offering a unique platform that values your privacy and + eliminates the need for login hassles. This innovative tool is + designed to expand your knowledge and enhance your skills, all + while ensuring your online activities remain private and secure. + Join us in exploring how Beacon can transform your learning + experience, making every moment count towards achieving your + goals. +

+
+
+ )}
); } diff --git a/src/components/LearningPath.tsx b/src/components/LearningPath.tsx index eacb62f..0625416 100644 --- a/src/components/LearningPath.tsx +++ b/src/components/LearningPath.tsx @@ -12,6 +12,7 @@ function Tab({ isMarkdownOpen, undoNodeLink, isUndoDisabled, + linkUrl, }: { setGraphFullView: (bool: boolean) => void; isGraphFullView: boolean; @@ -19,13 +20,14 @@ function Tab({ isMarkdownOpen: boolean; undoNodeLink: () => void; isUndoDisabled: boolean; + linkUrl: string; }) { return (
- - -
) : ( diff --git a/src/index.css b/src/index.css index e22611f..348c8e9 100644 --- a/src/index.css +++ b/src/index.css @@ -38,8 +38,13 @@ ul li { @apply pl-4; } +button, a { - @apply text-blue-400 underline; + @apply border-2 border-slate bg-background p-2 rounded-xl text-secondary disabled:text-slate hover:bg-secondary hover:text-background focus:bg-primary focus:text-background transition-all; +} + +a { + @apply px-2 py-0.5; } code {