From eb7615f25a88c25dc6db50b199877a8f79597a74 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Wed, 6 Sep 2023 15:25:56 +0000 Subject: [PATCH] [ci] format --- examples/basics/src/layouts/Layout.astro | 26 +++++++--- examples/blog/src/pages/blog/index.astro | 2 +- examples/blog/src/pages/index.astro | 10 ++-- examples/deno/src/components/Layout.astro | 13 +++-- examples/framework-lit/src/pages/index.astro | 2 +- .../hackernews/src/pages/stories/[id].astro | 2 +- examples/middleware/src/components/Card.astro | 4 +- examples/middleware/src/layouts/Layout.astro | 13 +++-- examples/minimal/src/pages/index.astro | 1 + examples/portfolio/src/components/Nav.astro | 6 ++- .../src/components/ThemeToggle.astro | 4 +- .../portfolio/src/layouts/BaseLayout.astro | 11 ++-- examples/portfolio/src/pages/about.astro | 7 +-- examples/portfolio/src/pages/index.astro | 6 ++- .../with-markdoc/src/layouts/Layout.astro | 13 +++-- .../with-nanostores/src/layouts/Layout.astro | 51 ++++++++++--------- .../src/pages/index.astro | 1 + examples/with-vitest/src/pages/index.astro | 1 + .../astro/components/ViewTransitions.astro | 28 +++++----- 19 files changed, 127 insertions(+), 74 deletions(-) diff --git a/examples/basics/src/layouts/Layout.astro b/examples/basics/src/layouts/Layout.astro index 3345b887c..7b552be19 100644 --- a/examples/basics/src/layouts/Layout.astro +++ b/examples/basics/src/layouts/Layout.astro @@ -1,4 +1,4 @@ ---- +--- interface Props { title: string; } @@ -6,11 +6,11 @@ interface Props { const { title } = Astro.props; --- - + - + @@ -25,15 +25,27 @@ const { title } = Astro.props; --accent: 136, 58, 234; --accent-light: 224, 204, 250; --accent-dark: 49, 10, 101; - --accent-gradient: linear-gradient(45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60%); + --accent-gradient: linear-gradient( + 45deg, + rgb(var(--accent)), + rgb(var(--accent-light)) 30%, + white 60% + ); } html { font-family: system-ui, sans-serif; - background: #13151A; + background: #13151a; background-size: 224px; } code { - font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, - Bitstream Vera Sans Mono, Courier New, monospace; + font-family: + Menlo, + Monaco, + Lucida Console, + Liberation Mono, + DejaVu Sans Mono, + Bitstream Vera Sans Mono, + Courier New, + monospace; } diff --git a/examples/blog/src/pages/blog/index.astro b/examples/blog/src/pages/blog/index.astro index a5c329a87..ebbcd3042 100644 --- a/examples/blog/src/pages/blog/index.astro +++ b/examples/blog/src/pages/blog/index.astro @@ -11,7 +11,7 @@ const posts = (await getCollection('blog')).sort( ); --- - + diff --git a/examples/blog/src/pages/index.astro b/examples/blog/src/pages/index.astro index 26f070da5..1c8be6135 100644 --- a/examples/blog/src/pages/index.astro +++ b/examples/blog/src/pages/index.astro @@ -5,7 +5,7 @@ import Footer from '../components/Footer.astro'; import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; --- - + @@ -16,14 +16,14 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';

🧑‍🚀 Hello, Astronaut!

Welcome to the official Astro blog starter template. This - template serves as a lightweight, minimally-styled starting point for anyone looking to build - a personal website, blog, or portfolio with Astro. + template serves as a lightweight, minimally-styled starting point for anyone looking to + build a personal website, blog, or portfolio with Astro.

This template comes with a few integrations already configured in your astro.config.mjs file. You can customize your setup with - Astro Integrations to add tools like Tailwind, - React, or Vue to your project. + Astro Integrations to add tools like + Tailwind, React, or Vue to your project.

Here are a few ideas on how to get started with the template:

    diff --git a/examples/deno/src/components/Layout.astro b/examples/deno/src/components/Layout.astro index 7d329d0a4..7bcbd218c 100644 --- a/examples/deno/src/components/Layout.astro +++ b/examples/deno/src/components/Layout.astro @@ -6,7 +6,7 @@ interface Props { const { title } = Astro.props as Props; --- - + @@ -46,8 +46,15 @@ const { title } = Astro.props as Props; } :global(code) { - font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, - Bitstream Vera Sans Mono, Courier New, monospace; + font-family: + Menlo, + Monaco, + Lucida Console, + Liberation Mono, + DejaVu Sans Mono, + Bitstream Vera Sans Mono, + Courier New, + monospace; } diff --git a/examples/framework-lit/src/pages/index.astro b/examples/framework-lit/src/pages/index.astro index a351b8248..5ef314f6f 100644 --- a/examples/framework-lit/src/pages/index.astro +++ b/examples/framework-lit/src/pages/index.astro @@ -7,7 +7,7 @@ import { MyCounter } from '../components/my-counter.js'; // https://docs.astro.build/core-concepts/astro-components/ --- - + diff --git a/examples/hackernews/src/pages/stories/[id].astro b/examples/hackernews/src/pages/stories/[id].astro index 84383aa9e..9cfad36fd 100644 --- a/examples/hackernews/src/pages/stories/[id].astro +++ b/examples/hackernews/src/pages/stories/[id].astro @@ -25,7 +25,7 @@ const story = (await fetchAPI(`item/${id}`)) as IStory; {story.user} -  {story.time_ago} +  {story.time_ago}

    diff --git a/examples/middleware/src/components/Card.astro b/examples/middleware/src/components/Card.astro index a1e0ccf6e..1ff16e5fb 100644 --- a/examples/middleware/src/components/Card.astro +++ b/examples/middleware/src/components/Card.astro @@ -30,7 +30,9 @@ const { href, title, body } = Astro.props; border-radius: 0.6rem; background-position: 100%; transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1); - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); + box-shadow: + 0 4px 6px -1px rgba(0, 0, 0, 0.1), + 0 2px 4px -2px rgba(0, 0, 0, 0.1); } .link-card > a { diff --git a/examples/middleware/src/layouts/Layout.astro b/examples/middleware/src/layouts/Layout.astro index b3def2637..90d2fb715 100644 --- a/examples/middleware/src/layouts/Layout.astro +++ b/examples/middleware/src/layouts/Layout.astro @@ -6,7 +6,7 @@ interface Props { const { title } = Astro.props; --- - + @@ -29,7 +29,14 @@ const { title } = Astro.props; background-color: #f6f6f6; } code { - font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, - Bitstream Vera Sans Mono, Courier New, monospace; + font-family: + Menlo, + Monaco, + Lucida Console, + Liberation Mono, + DejaVu Sans Mono, + Bitstream Vera Sans Mono, + Courier New, + monospace; } diff --git a/examples/minimal/src/pages/index.astro b/examples/minimal/src/pages/index.astro index 7264ff502..2d1410736 100644 --- a/examples/minimal/src/pages/index.astro +++ b/examples/minimal/src/pages/index.astro @@ -1,4 +1,5 @@ --- + --- diff --git a/examples/portfolio/src/components/Nav.astro b/examples/portfolio/src/components/Nav.astro index bf9ac7869..d0a5857b1 100644 --- a/examples/portfolio/src/components/Nav.astro +++ b/examples/portfolio/src/components/Nav.astro @@ -25,7 +25,7 @@ const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[]