From 650a4cfbaad31672a79a03a2dbc56a82a1142278 Mon Sep 17 00:00:00 2001 From: Tropical <42101043+Tropix126@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:57:53 -0600 Subject: [PATCH] =?UTF-8?q?chore:=20fmt=20(=E2=95=AF=C2=B0=E2=96=A1=C2=B0)?= =?UTF-8?q?=E2=95=AF=EF=B8=B5=20=E2=94=BB=E2=94=81=E2=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CodeExample.astro | 20 +++--- src/components/Navigation.astro | 28 +++++--- src/components/NavigationItem.astro | 8 +-- src/components/PageSection.astro | 8 +-- src/layouts/BaseLayout.astro | 100 ++++++++++++++++++---------- src/pages/blog/index.astro | 2 +- src/pages/index.astro | 54 +++++++++++---- 7 files changed, 143 insertions(+), 77 deletions(-) diff --git a/src/components/CodeExample.astro b/src/components/CodeExample.astro index a9ef6cb..4ab10d6 100644 --- a/src/components/CodeExample.astro +++ b/src/components/CodeExample.astro @@ -7,24 +7,22 @@ interface Props { code: string; } -const { - filename, - lang, - code, -} = Astro.props; +const { filename, lang, code } = Astro.props; ---
{filename} - {Astro.slots.has("actions") && ( -
- -
- )} + { + Astro.slots.has("actions") && ( +
+ +
+ ) + }
- +
\ No newline at end of file + diff --git a/src/components/PageSection.astro b/src/components/PageSection.astro index c62336a..cc498e1 100644 --- a/src/components/PageSection.astro +++ b/src/components/PageSection.astro @@ -5,18 +5,14 @@ interface Props { [key: string]: any; } -const { - element: Element = "section", - class: className, - ...rest -} = Astro.props; +const { element: Element = "section", class: className, ...rest } = Astro.props; ---
- +
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index f4e029c..5ad789e 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -1,9 +1,9 @@ --- -import Navigation from '~/components/Navigation.astro'; -import NavigationItem from '~/components/NavigationItem.astro'; +import Navigation from "~/components/Navigation.astro"; +import NavigationItem from "~/components/NavigationItem.astro"; -import Button from '~/components/Button.svelte'; -import { GITHUB_REPO_URL, DISCORD_INVITE_URL } from '~/constants'; +import Button from "~/components/Button.svelte"; +import { GITHUB_REPO_URL, DISCORD_INVITE_URL } from "~/constants"; interface Props { name?: string; @@ -13,10 +13,10 @@ interface Props { } const { - name = "pros-rs", - title = "pros-rs", + name = "pros-rs", + title = "pros-rs", type = "website", - description = "Open-source Rust tooling for VEX robots." + description = "Open-source Rust tooling for VEX robots.", } = Astro.props; --- @@ -29,25 +29,44 @@ const { - + - - + + - - - - + + + + - - - - + + + +