Skip to content

Commit

Permalink
chore: Astro check passes again
Browse files Browse the repository at this point in the history
  • Loading branch information
ElianCodes committed Aug 9, 2023
1 parent 7a5b8d4 commit 800e7de
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 44 deletions.
2 changes: 1 addition & 1 deletion src/components/blog/BlogSideBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { headings } = Astro.props;
{
headings.map((heading: any) => (
<li class='py-1'>
{[...Array(heading.depth - 1)].map((_, i) => (
{[...Array(heading.depth - 1)].map((_, _i) => (
<span class='inline-block w-4' />
))}
<a
Expand Down
2 changes: 1 addition & 1 deletion src/components/generic/SummaryCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Image } from 'astro:assets';
interface Props {
title: string;
imgSrc: string;
imgSrc: ImageMetadata;
imgAlt: string;
description: string;
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/layout/BaseNavigation.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
interface Props {
pageTitle?: string;
}
const navigationItems = [
{ name: 'Home', url: '/' },
{ name: 'Blog', url: '/blog/' },
Expand All @@ -18,10 +22,6 @@ const socialIcons = [
{ name: 'RSS', url: '/feed.xml', icon: 'i-uil-rss' },
];
interface Props {
pageTitle?: string;
}
const { pageTitle } = Astro.props;
---

Expand Down
2 changes: 1 addition & 1 deletion src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="@astro/image/client" />
/// <reference types="astro/client-image" />
6 changes: 5 additions & 1 deletion src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ const { content, headings } = Astro.props;
const { title, description } = content;
---

<Layout title={title} description={description} ogImage={ogImage}>
<Layout
title={title as string}
description={description as string}
ogImage={ogImage}
>
<main class='p-6 lg:grid lg:grid-cols-3 flex justify-center'>
<BlogSideBar headings={headings} />
<BlogContent content={content}>
Expand Down
37 changes: 2 additions & 35 deletions src/layouts/Default.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import BaseNavigation from '@components/layout/BaseNavigation.astro';
import BaseFooter from '@components/layout/BaseFooter.astro';
import BaseHead from '@components/layout/BaseHead.astro';
import BaseHead from '../components/layout/BaseHead.astro';
import '../styles/global.css';
interface Props {
Expand All @@ -19,41 +19,8 @@ const { title, description, classList, pageTitle, ogImage } = Astro.props;
<BaseHead ogImage={ogImage} title={title} description={description} />

<body class:list={[classList]}>
<BaseNavigation pageTitle={pageTitle} />
<BaseNavigation {pageTitle} />
<slot />
<BaseFooter />
<style is:global>
.outfit {
font-family: 'Outfit', sans-serif;
}
.righteous {
font-family: 'Righteous', sans-serif;
}
.dm-serif {
font-family: 'DM Serif Text', serif;
}
.fredoka {
font-family: 'Fredoka One', sans-serif;
}
.poppins {
font-family: 'Poppins', sans-serif;
}
.sanchez {
font-family: 'Sanchez', serif;
}
.card-shadow {
filter: drop-shadow(7px 7px 0 rgb(0 0 0 / 1));
transition: all;
transition-duration: 0.5s;
animation: ease-in-out;
}
.card-shadow:hover {
filter: drop-shadow(5px 5px 0 rgb(0 0 0 / 1));
}

html {
scroll-behavior: smooth;
}
</style>
</body>
</html>
32 changes: 32 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,35 @@
font-display: swap;
src: url("/fonts/sanchez.ttf") format("truetype");
}

.outfit {
font-family: 'Outfit', sans-serif;
}
.righteous {
font-family: 'Righteous', sans-serif;
}
.dm-serif {
font-family: 'DM Serif Text', serif;
}
.fredoka {
font-family: 'Fredoka One', sans-serif;
}
.poppins {
font-family: 'Poppins', sans-serif;
}
.sanchez {
font-family: 'Sanchez', serif;
}
.card-shadow {
filter: drop-shadow(7px 7px 0 rgb(0 0 0 / 1));
transition: all;
transition-duration: 0.5s;
animation: ease-in-out;
}
.card-shadow:hover {
filter: drop-shadow(5px 5px 0 rgb(0 0 0 / 1));
}

html {
scroll-behavior: smooth;
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "astro/tsconfigs/strictest",
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"baseUrl": ".",
"jsx": "preserve",
Expand Down

1 comment on commit 800e7de

@vercel
Copy link

@vercel vercel bot commented on 800e7de Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.