From 9828b123d9ec1316e2cf19bfb0e837115379af26 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 2 Sep 2023 18:00:47 +0200 Subject: [PATCH] Move form to page --- src/components/form.astro | 41 --------------------------------------- src/pages/index.astro | 34 +++++++++++++++++++++++++++----- 2 files changed, 29 insertions(+), 46 deletions(-) delete mode 100644 src/components/form.astro diff --git a/src/components/form.astro b/src/components/form.astro deleted file mode 100644 index 2650442..0000000 --- a/src/components/form.astro +++ /dev/null @@ -1,41 +0,0 @@ ---- -/*! - * This file is part of Share₂Fedi - * https://github.com/kytta/share2fedi - * - * SPDX-FileCopyrightText: © 2023 Nikita Karamov - * SPDX-License-Identifier: AGPL-3.0-only - */ -import InstanceSelect from "@components/instance-select.astro"; - -const { prefilledText, prefilledInstance } = Astro.props; ---- - -
- - - - - - diff --git a/src/pages/index.astro b/src/pages/index.astro index b7fd76b..779a7f4 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -7,7 +7,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import Layout from "@layouts/layout.astro"; -import Form from "@components/form.astro"; +import InstanceSelect from "@components/instance-select.astro"; const searchParameters = new URL(Astro.request.url).searchParams; const prefilledText = searchParameters.get("text"); @@ -15,8 +15,32 @@ const prefilledInstance = searchParameters.get("instance"); --- -
+ + + + + + +