From f877929c331c5e271f68353e6f1e91f31cb6177b Mon Sep 17 00:00:00 2001 From: Janos Bonic <86970079+janosdebugs@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:25:55 +0100 Subject: [PATCH] Restructured front page Signed-off-by: Janos Bonic <86970079+janosdebugs@users.noreply.github.com> --- docusaurus.config.ts | 8 +++--- download.mdx | 0 src/components/GetStarted/index.tsx | 42 +++++++++++++++++++++++++++++ src/components/Hero/index.tsx | 12 ++++----- src/components/Home/index.tsx | 8 ++---- 5 files changed, 54 insertions(+), 16 deletions(-) create mode 100644 download.mdx create mode 100644 src/components/GetStarted/index.tsx diff --git a/docusaurus.config.ts b/docusaurus.config.ts index a93b1348..e390c837 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -232,13 +232,13 @@ const config: Config = { hideOnScroll: true, items: [ { - to: "/manifesto", - label: "Manifesto", + to: "/getting-started", + label: "Getting started", position: "left", }, { - to: "/supporters", - label: "Supporters", + to: "/download", + label: "Download", position: "left", }, { diff --git a/download.mdx b/download.mdx new file mode 100644 index 00000000..e69de29b diff --git a/src/components/GetStarted/index.tsx b/src/components/GetStarted/index.tsx new file mode 100644 index 00000000..67116b00 --- /dev/null +++ b/src/components/GetStarted/index.tsx @@ -0,0 +1,42 @@ +import React from "react"; + + + +export default function GetStarted() { + return ( +
+

+ Which of these best describes you? +

+
+
+

I want a high-level overview

+

+ Learn the fundamentals of Infrastructure-as-Code in + this high level guide, understand why IaC is so powerful, and how OpenTofu can help. +

+
+
+

I'm new to OpenTofu

+

+ For newcomers to infrastructure as code an OpenTofu, this hands-on guide runs you through the + basics of creating your first server with OpenTofu. +

+
+
+

I'm migrating from Terraform

+

+ If you already have experience with Terraform but want to migrate to OpenTofu, this is for you. + Tried and tested migration paths from Terraform to OpenTofu. +

+
+
+

Just give me the docs

+

+ Reference manual for those in need of a quick lookup. +

+
+
+
+ ); +} diff --git a/src/components/Hero/index.tsx b/src/components/Hero/index.tsx index 26e1e1b8..4f1d7683 100644 --- a/src/components/Hero/index.tsx +++ b/src/components/Hero/index.tsx @@ -33,16 +33,16 @@ export default function Hero() { The open source infrastructure as code tool.

- Previously named OpenTF, OpenTofu is a fork of Terraform that is - open-source, community-driven, and managed by the Linux Foundation. + OpenTofu is a community-driven infrastructure-as-code tool that lets you + declaratively create and manage your cloud infrastructure.

- -
diff --git a/src/components/Home/index.tsx b/src/components/Home/index.tsx index 91e98295..e23780a1 100644 --- a/src/components/Home/index.tsx +++ b/src/components/Home/index.tsx @@ -1,18 +1,14 @@ import React from "react"; import Layout from "@theme/Layout"; import Hero from "../Hero"; -import Goals from "../Goals"; import Supporters from "../Supporters"; -import FAQ from "../FAQ"; -import HowToContribute from "../HowToContribute"; +import GetStarted from "../GetStarted"; export default function Home() { return ( - - - + );