diff --git a/apps/platform/src/app/(main)/page.tsx b/apps/platform/src/app/(main)/page.tsx index 58539509..e4ab3ac8 100644 --- a/apps/platform/src/app/(main)/page.tsx +++ b/apps/platform/src/app/(main)/page.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react' import { toast } from 'sonner' import { useRouter } from 'next/navigation' -import { AddSVG } from '@public/svg/shared' +import Image from 'next/image' import ProjectCard from '@/components/dashboard/projectCard' import { Sheet, @@ -27,6 +27,7 @@ import { DialogTrigger } from '@/components/ui/dialog' import { Projects } from '@/lib/api-functions/projects' +import fileIcon from '../../assets/Group 12.png' export default function Index(): JSX.Element { const [isSheetOpen, setIsSheetOpen] = useState(false) @@ -78,83 +79,6 @@ export default function Index(): JSX.Element { return (
-
-

My Projects

- - - - - - - Create a new project - - Fill in the details to create a new project - -
-
-
- - { - setNewProjectData((prev) => ({ - ...prev, - name: e.target.value - })) - }} - placeholder="Enter the name" - /> -
-
- - { - setNewProjectData((prev) => ({ - ...prev, - description: e.target.value - })) - }} - placeholder="Enter the name" - /> -
- {/* {isNameEmpty ? ( - - Name cannot be empty - - ) : null} */} -
-
-
- -
-
-
-
- {projects.length !== 0 ? (
{projects.map((project: ProjectWithoutKeys) => { @@ -173,8 +97,92 @@ export default function Index(): JSX.Element { })}
) : ( -
-
No projects yet? Get started by creating a new project.
+
+
+ +

+ Start your First Project +

+

+ Create a file and start setting up your environment and secret + keys +

+ + + + + + Create a new project + + Fill in the details to create a new project + +
+
+
+ + { + setNewProjectData((prev) => ({ + ...prev, + name: e.target.value + })) + }} + placeholder="Enter the name" + /> +
+
+ + { + setNewProjectData((prev) => ({ + ...prev, + description: e.target.value + })) + }} + placeholder="Enter the name" + /> +
+ {/* {isNameEmpty ? ( + + Name cannot be empty + + ) : null} */} +
+
+
+ +
+
+
+
)} diff --git a/apps/platform/src/assets/Group 12.png b/apps/platform/src/assets/Group 12.png new file mode 100644 index 00000000..9a4bbbfc Binary files /dev/null and b/apps/platform/src/assets/Group 12.png differ diff --git a/apps/web/src/components/hero/index.tsx b/apps/web/src/components/hero/index.tsx index 7fca0013..da553bea 100644 --- a/apps/web/src/components/hero/index.tsx +++ b/apps/web/src/components/hero/index.tsx @@ -20,7 +20,7 @@ function Hero(): React.JSX.Element { if (!result.success) { toast.custom(() => ( -
+

Please enter a valid email address

)) @@ -28,12 +28,14 @@ function Hero(): React.JSX.Element { } const dataInStorage: string | null = localStorage.getItem('waitlistData') - const emailsInWaitlist: string[] = dataInStorage ? (JSON.parse(dataInStorage) as string[]) : [] - + const emailsInWaitlist: string[] = dataInStorage + ? (JSON.parse(dataInStorage) as string[]) + : [] + // actual logic where we are checking if this email is already in waitlisted users or not if (emailsInWaitlist.includes(email)) { toast.custom(() => ( -
+

You have been already added to the waitlist. We will notify you once we launch. @@ -60,13 +62,11 @@ function Hero(): React.JSX.Element { launch

- - )) + )) emailsInWaitlist.push(email) localStorage.setItem('waitlistData', JSON.stringify(emailsInWaitlist)) setEmail('') - } catch (error) { // eslint-disable-next-line no-console -- chill console.error(error)