-
-
-
-
-
+
+
+
+
+
+
beacon
+
+
- {/*
Hello, traveller!
*/}
-
+ {isLearningPathOpen ? (
+
+
+
+ ) : (
+
+
+
+ Learn anything and become anyone.
+
+
+ Empower Your Growth: Discover Beacon's No-Login, Privacy-Centric
+ Approach
+
+
setLearningPathOpen(true)}
+ >
+ Get started *
+
+
+ * Free, No Signup Required, Forever Secure
+
+
+
+
+
+ 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 (
undoNodeLink()}
disabled={isUndoDisabled}
- className="border-2 bg-background text-secondary border-slate p-2.5 rounded-xl disabled:text-slate"
+ className="p-2.5"
>
- copyToClipboard(window.location.toString())}
- className="border-2 bg-background text-secondary border-slate p-2 rounded-xl"
- >
+ copyToClipboard(linkUrl)}>
- setGraphFullView(!isGraphFullView)}
- className="border-2 bg-background text-secondary border-slate p-2 rounded-xl"
- >
+ setGraphFullView(!isGraphFullView)}>
{isGraphFullView ? (
)}
- setMarkdownOpen(!isMarkdownOpen)}
- className="border-2 bg-background text-secondary border-slate p-2 rounded-xl"
- >
+ setMarkdownOpen(!isMarkdownOpen)}>
(nodeParam + ".json");
const [markdownUrl, setMarkdownUrl] = useState(nodeParam + ".md");
@@ -213,6 +203,12 @@ export default function Main() {
isMarkdownOpen={isMarkdownOpen}
isUndoDisabled={nodeUrlHistory.length == 0}
undoNodeLink={revertNode}
+ linkUrl={
+ window.location.origin +
+ window.location.pathname +
+ "?node=" +
+ nodeUrl.split(".json")[0]
+ }
/>
) : (
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 {