aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/layouts
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-12-20 01:58:22 -0500
committerPauline <git@ethanlibs.co>2023-12-20 01:58:22 -0500
commit8e85be96a154b371b4cf1fb1924155d96150f949 (patch)
tree22edab0f259bbdba76d1c8fb790ff2c6cf65db60 /apps/website/src/layouts
parent64537e64852193cb735ee4853c0f8d07a5222030 (diff)
downloadNexus-8e85be96a154b371b4cf1fb1924155d96150f949.tar.gz
Nexus-8e85be96a154b371b4cf1fb1924155d96150f949.tar.bz2
Nexus-8e85be96a154b371b4cf1fb1924155d96150f949.zip
chore(lint): bump deps and fix linting/format
Diffstat (limited to 'apps/website/src/layouts')
-rw-r--r--apps/website/src/layouts/BlogPost.astro17
-rw-r--r--apps/website/src/layouts/Layout.astro24
2 files changed, 20 insertions, 21 deletions
diff --git a/apps/website/src/layouts/BlogPost.astro b/apps/website/src/layouts/BlogPost.astro
index ed2a3c3..188aae1 100644
--- a/apps/website/src/layouts/BlogPost.astro
+++ b/apps/website/src/layouts/BlogPost.astro
@@ -1,10 +1,9 @@
---
+import FormattedDate from '@components/base/FormattedDate.astro';
+import '@styles/blog.css';
import type { CollectionEntry } from 'astro:content';
import Layout from './Layout.astro';
-import '@styles/blog.css';
-import FormattedDate from '@components/base/FormattedDate.astro';
-
type Props = CollectionEntry<'blog'>['data'];
const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
@@ -12,25 +11,25 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
<Layout title={title} description={description}>
<article>
- <div class='hero-image'>
- {heroImage && <img width={1020} height={510} src={heroImage} alt="Hero Image" />}
+ <div class="hero-image">
+ {heroImage && <img width={1020} height={510} src={heroImage} alt="Hero Image"/>}
</div>
<div class="prose">
<div class="title">
<div class="date">
- <FormattedDate date={pubDate} />
+ <FormattedDate date={pubDate}/>
{
updatedDate && (
<div class="last-updated-on">
- Last updated on <FormattedDate date={updatedDate} />
+ Last updated on <FormattedDate date={updatedDate}/>
</div>
)
}
</div>
<h1>{title}</h1>
- <hr />
+ <hr/>
</div>
- <slot />
+ <slot/>
</div>
</article>
</Layout>
diff --git a/apps/website/src/layouts/Layout.astro b/apps/website/src/layouts/Layout.astro
index 4acc407..1af3a1e 100644
--- a/apps/website/src/layouts/Layout.astro
+++ b/apps/website/src/layouts/Layout.astro
@@ -20,25 +20,25 @@ const {
<!doctype html>
<html lang="en">
<head>
- <meta charset="UTF-8" />
- <meta name="description" content={description} />
- <meta name="viewport" content="width=device-width" />
- <link rel="icon" type="image/svg+xml" href={favicon} />
- <meta name="generator" content={Astro.generator} />
+ <meta charset="UTF-8"/>
+ <meta name="description" content={description}/>
+ <meta name="viewport" content="width=device-width"/>
+ <link rel="icon" type="image/svg+xml" href={favicon}/>
+ <meta name="generator" content={Astro.generator}/>
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital@0;1&display=swap" rel="stylesheet">
+ <link rel="preconnect" href="https://fonts.googleapis.com"/>
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet"/>
+ <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital@0;1&display=swap" rel="stylesheet"/>
<title>{title}</title>
</head>
<body class="bg-gray-50">
- <Navbar />
+ <Navbar/>
<main class="min-h-screen h-auto">
- <slot />
+ <slot/>
</main>
- <Footer />
+ <Footer/>
</body>
</html>