From 5954789abb2749488bf0055e98d2b77d0b885056 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Wed, 24 Aug 2022 23:23:02 +0200 Subject: [PATCH] feat(frontend): App landing page (#486) * feat(frontend): App landing page * feat(frontend): Add link to documentation + adapt styles --- .../landing/FlowGettingStarted.svelte | 95 +++++++++++++ .../components/landing/FlowLandingBox.svelte | 71 ++++++++++ .../landing/RessourceGettingStarted.svelte | 51 +++++++ .../lib/components/landing/ScriptBox.svelte | 84 ++++++++++++ .../landing/ScriptGettingStarted.svelte | 93 +++++++++++++ frontend/src/routes/__layout@root.svelte | 7 + frontend/src/routes/index.svelte | 126 +++++++++++++++++- 7 files changed, 520 insertions(+), 7 deletions(-) create mode 100644 frontend/src/lib/components/landing/FlowGettingStarted.svelte create mode 100644 frontend/src/lib/components/landing/FlowLandingBox.svelte create mode 100644 frontend/src/lib/components/landing/RessourceGettingStarted.svelte create mode 100644 frontend/src/lib/components/landing/ScriptBox.svelte create mode 100644 frontend/src/lib/components/landing/ScriptGettingStarted.svelte diff --git a/frontend/src/lib/components/landing/FlowGettingStarted.svelte b/frontend/src/lib/components/landing/FlowGettingStarted.svelte new file mode 100644 index 0000000000..05bfa4ffca --- /dev/null +++ b/frontend/src/lib/components/landing/FlowGettingStarted.svelte @@ -0,0 +1,95 @@ + + +
+
+

+ + + Getting started +

+
+
+ Flows allow you to streamline complex processes and operations by chaining simple steps + together. Each Flow is composed of one or more steps. Create a new flow or find inspiration on + the Hub! +
+
+ + + +
+
diff --git a/frontend/src/lib/components/landing/FlowLandingBox.svelte b/frontend/src/lib/components/landing/FlowLandingBox.svelte new file mode 100644 index 0000000000..58c30f6089 --- /dev/null +++ b/frontend/src/lib/components/landing/FlowLandingBox.svelte @@ -0,0 +1,71 @@ + + +
+
{flow.summary}
+ +
+
{flow.path}
+
+ +
+ + + +
+
diff --git a/frontend/src/lib/components/landing/RessourceGettingStarted.svelte b/frontend/src/lib/components/landing/RessourceGettingStarted.svelte new file mode 100644 index 0000000000..914eb4f767 --- /dev/null +++ b/frontend/src/lib/components/landing/RessourceGettingStarted.svelte @@ -0,0 +1,51 @@ + + +
+
+

+ + + Getting started +

+
+
+ Connect to apps like Slack, Google Drive or Airtable using OAuth. +
+
+ +
+
diff --git a/frontend/src/lib/components/landing/ScriptBox.svelte b/frontend/src/lib/components/landing/ScriptBox.svelte new file mode 100644 index 0000000000..50a98a9601 --- /dev/null +++ b/frontend/src/lib/components/landing/ScriptBox.svelte @@ -0,0 +1,84 @@ + + +
+
{script.summary}
+ +
+
{script.path}
+ + + {truncateHash(script.hash)} + +
+
+ + {String(script.language).toUpperCase()} + + {#if script.is_trigger} + + TRIGGER + + {/if} +
+
+ + + +
+
diff --git a/frontend/src/lib/components/landing/ScriptGettingStarted.svelte b/frontend/src/lib/components/landing/ScriptGettingStarted.svelte new file mode 100644 index 0000000000..912b2ef16e --- /dev/null +++ b/frontend/src/lib/components/landing/ScriptGettingStarted.svelte @@ -0,0 +1,93 @@ + + +
+
+

+ + + Getting started +

+
+
+ Create a new script or find inspiration on the Hub! +
+
+ + + +
+
diff --git a/frontend/src/routes/__layout@root.svelte b/frontend/src/routes/__layout@root.svelte index aa108d2dce..68e5414479 100644 --- a/frontend/src/routes/__layout@root.svelte +++ b/frontend/src/routes/__layout@root.svelte @@ -14,6 +14,7 @@ faCrown, faCubes, faEye, + faHome, faPlay, faRobot, faScroll, @@ -213,6 +214,12 @@