From 0d4c2a0e71bf33f5718de6bd13ea939c6f2ff0fb Mon Sep 17 00:00:00 2001 From: ginifizz Date: Mon, 16 Sep 2024 17:12:22 +0200 Subject: [PATCH] feat: add links on getting started button --- pwa/app/(common)/components/cover/Cover.tsx | 10 ++++++-- .../components/timeline/TimelinePhp.tsx | 25 +------------------ .../components/timeline/symfony/Expose.mdx | 2 ++ 3 files changed, 11 insertions(+), 26 deletions(-) diff --git a/pwa/app/(common)/components/cover/Cover.tsx b/pwa/app/(common)/components/cover/Cover.tsx index 86d2c1219..883805df9 100644 --- a/pwa/app/(common)/components/cover/Cover.tsx +++ b/pwa/app/(common)/components/cover/Cover.tsx @@ -1,3 +1,5 @@ +"use client"; +import { useSearchParams } from "next/navigation"; import Button from "components/common/Button"; import Logo from "components/common/Logo"; import classNames from "classnames"; @@ -5,12 +7,15 @@ import CoverCircleStacks from "./CoverCircleStacks"; import StackSelector from "./StackSelector"; export default function Cover() { + const searchParams = useSearchParams(); + const stack = searchParams.get("s"); + return (
Getting started diff --git a/pwa/app/(common)/components/timeline/TimelinePhp.tsx b/pwa/app/(common)/components/timeline/TimelinePhp.tsx index f0f435aa7..897933299 100644 --- a/pwa/app/(common)/components/timeline/TimelinePhp.tsx +++ b/pwa/app/(common)/components/timeline/TimelinePhp.tsx @@ -14,35 +14,12 @@ export default function TimelineSymfony() { return (
Install the framework - + Install the API Platform Framework - -

- Your development environment is ready!{" "} -

- Continuous integration (GitHub Action) as well as recipes to deploy in - production with{" "} - - Docker Compose - {" "} - or{" "} - - Kubernetes - {" "} - are also pre-installed. -
Define the resources diff --git a/pwa/app/(common)/components/timeline/symfony/Expose.mdx b/pwa/app/(common)/components/timeline/symfony/Expose.mdx index 8881de8ec..6dc1cc081 100644 --- a/pwa/app/(common)/components/timeline/symfony/Expose.mdx +++ b/pwa/app/(common)/components/timeline/symfony/Expose.mdx @@ -3,6 +3,8 @@ namespace App\ApiResource; +use ApiPlatform\Metadata\ApiResource; + #[ApiResource] class Beer {