diff --git a/docusaurus.config.js b/docusaurus.config.js index 9b7d5f66..51193325 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -272,24 +272,17 @@ const config = { { to: "docs", position: "left", - label: "Getting started", + label: "Get started", className: "header-text-link", target: "_self", }, { - to: "docs/learn", + to: "learn-wing", position: "left", label: "Learn", className: "header-text-link", target: "_self", }, - { - to: "docs/api", - position: "left", - label: "API", - className: "header-text-link", - target: "_self", - }, { to: "docs/libraries", position: "left", diff --git a/src/pages/learn-wing.tsx b/src/pages/learn-wing.tsx new file mode 100644 index 00000000..97392af9 --- /dev/null +++ b/src/pages/learn-wing.tsx @@ -0,0 +1,356 @@ +import React from "react"; +import Layout from "@theme/Layout"; +import Head from "@docusaurus/Head"; + +import { + CodeBracketIcon, + BookOpenIcon, + CommandLineIcon, +} from "@heroicons/react/20/solid"; + +const features = [ + { + name: "Build your first Wing app", + description: + "Install Wing, set up your development environment, and build your first Wing application. This guide will walk you installation, IDE setup, creating your first project, simulating the cloud locally and deploying to AWS.", + href: "/docs", + label: "Get started", + icon: BookOpenIcon, + }, + // { + // name: "Read the Wing Book", + // description: + // "Affectionately nicknamed “the book,” The Wing Programming Language will give you an overview of the language from first principles. You’ll build a few projects along the way, and by the end, you’ll have a solid grasp of the language.", + // href: "/docs/api/category/cloud", + // label: "Read the book", + // icon: BookOpenIcon, + // }, + { + name: "Step-by-step guide", + description: + "Only got 5 minutes? This step-by-step is designed to walk you through some of the unique aspects of Wing as a cloud programming language and give you a sense of the developer experience we are aiming for.", + href: "https://www.winglang.io/learn", + label: "Start the interactive tutorial", + icon: CommandLineIcon, + }, + { + name: "Wing by Example", + description: + "Inspired by Rust and Go, Wing by Example is a list of annotated example codes helping you understand elements of Wing. Learn Wing with bite sized code examples including variables, functions, if/else, classes, encoding, and much more .", + href: "/docs/learn", + icon: CodeBracketIcon, + label: "Explore Wing by Example", + }, +]; + +const documentation = [ + { + name: "The standard library", + description: "API references for the Wing and supported modules", + href: "/docs/api/standard-library", + label: "Read the book", + }, + { + name: "CLI User manual", + description: "Compile, Test, and Run Wing Programs", + href: "/docs/api/cli", + }, + { + name: "Language reference", + description: "The Wing programming language reference.", + href: "/docs/api/language-reference", + }, +]; + +const coreConcepts = [ + { + name: "Why Wing?", + description: + "Understand the unique aspects of Wing as a cloud programming language.", + href: "/docs/why-wing", + }, + { + name: "Platforms", + description: + "Explore Wing platforms to deploy your applications to the cloud.", + href: "/docs/platforms/platforms", + }, + { + name: "Preflight/Inflight", + description: + "Understand the unique aspects of Wing with runtime and compile time functions.", + href: "/docs/concepts/inflights", + }, + { + name: "Local simulation", + description: "Simulate the cloud locally with the Wing console", + href: "/docs/concepts/simulator", + }, + { + name: "Wing application tree", + description: + "Understand how Wing defines the application's construct tree.", + href: "/docs/concepts/application-tree", + }, + { + name: "Testing with Wing", + description: "Learn how to test your Wing applications.", + href: "/docs/concepts/tests", + }, + { + name: "CI/CD", + description: "Learn how to set up CI/CD for your Wing applications.", + href: "/docs/guides/ci-cd", + }, +]; + +const CommunityPage = () => { + return ( + + +