diff --git a/app/src/client/app/GptPage.tsx b/app/src/client/app/GptPage.tsx
index 642967a..3fb69d4 100644
--- a/app/src/client/app/GptPage.tsx
+++ b/app/src/client/app/GptPage.tsx
@@ -19,7 +19,7 @@ export default function GptPage() {
const response = await generateGptResponse({ instructions, command, temperature });
if (response) {
setResponse(response.split('\n'));
- console.log(response)
+ console.log(response);
}
} catch (error: any) {
alert(error.message);
@@ -138,7 +138,7 @@ export default function GptPage() {
} mt-4 mx-6 flex justify-center rounded-lg border border-dashed border-gray-900/25 sm:w-[90%] md:w-[50%] mx-auto mt-12 px-6 py-10`}
>
- {response.length > 0 ? response.map((str) =>
{str}
) :
GPT Response will load here
}
+ {response.length > 0 ? response.map((str) =>
{str}
) :
GPT Response will load here
}
diff --git a/app/src/client/components/DropdownUser.tsx b/app/src/client/components/DropdownUser.tsx
index 4e98e98..61b1d51 100644
--- a/app/src/client/components/DropdownUser.tsx
+++ b/app/src/client/components/DropdownUser.tsx
@@ -11,7 +11,6 @@ const DropdownUser = ({ user } : { user: Partial }) => {
const toggleDropdown = () => setDropdownOpen((prev) => !prev);
- // close on click outside
useEffect(() => {
const clickHandler = ({ target }: MouseEvent) => {
if (!dropdown.current) return
@@ -62,7 +61,7 @@ const DropdownUser = ({ user } : { user: Partial }) => {
- {/* */}
+ {/* */}
}) => {
>
- {/* */}
);
};
diff --git a/app/src/client/landing-page/LandingPage.tsx b/app/src/client/landing-page/LandingPage.tsx
index 6ad486b..85d695c 100644
--- a/app/src/client/landing-page/LandingPage.tsx
+++ b/app/src/client/landing-page/LandingPage.tsx
@@ -1,6 +1,6 @@
-import { useState, useEffect } from 'react';
+import { useState } from 'react';
import { Dialog } from '@headlessui/react';
-import { AiFillCloseCircle } from 'react-icons/ai';
+import { AiFillCloseCircle, AiFillGithub } from 'react-icons/ai';
import { HiBars3 } from 'react-icons/hi2';
import { BiLogIn } from 'react-icons/bi';
import { Link } from '@wasp/router';
@@ -8,54 +8,19 @@ import logo from '../static/logo.png';
import openSaasBanner from '../static/open-saas-banner.png';
import { features, navigation, faqs, footerNavigation, testimonials } from './contentSections';
import DropdownUser from '../components/DropdownUser';
-import { DOCS_URL } from '@wasp/shared/constants';
+import { DOCS_URL, GITHUB_URL } from '@wasp/shared/constants';
import { UserMenuItems } from '../components/UserMenuItems';
import useAuth from '@wasp/auth/useAuth';
export default function LandingPage() {
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
- const [isDemoInfoVisible, setIsDemoInfoVisible] = useState(false);
const { data: user, isLoading: isUserLoading } = useAuth();
- useEffect(() => {
- try {
- if (localStorage.getItem('isDemoInfoVisible') === 'false') {
- // do nothing
- } else {
- setIsDemoInfoVisible(true);
- }
- } catch (error) {
- console.error(error);
- }
- }, []);
-
- const handleDemoInfoClose = () => {
- try {
- localStorage.setItem('isDemoInfoVisible', 'false');
- setIsDemoInfoVisible(false);
- } catch (error) {
- console.error(error);
- }
- };
-
const NavLogo = () =>
;
return (
- {/* Floating Demo Announcement */}
- {isDemoInfoVisible && (
-
-
-
- This demo app is the SaaS template. Feel free to play around!
-
-
-
-
- )}
{/* Header */}
@@ -269,11 +236,7 @@ export default function LandingPage() {
-