style: format code with Prettier

This commit fixes the style issues introduced in b99142f according to the output
from Prettier.

Details: None
This commit is contained in:
deepsource-autofix[bot] 2024-05-25 10:01:48 +00:00 committed by GitHub
parent b99142fd44
commit 3d5071102e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 64 additions and 56 deletions

View file

@ -1,4 +1,4 @@
import { defineConfig } from 'astro/config';
import { defineConfig } from "astro/config";
// https://astro.build/config
export default defineConfig({});

View file

@ -1,5 +1,4 @@
import { z, defineCollection } from 'astro:content';
import { z, defineCollection } from "astro:content";
const postsCollection = defineCollection({
type: "content",
@ -31,10 +30,10 @@ const certificatesCollection = defineCollection({
skills: z.array(z.string()).optional(),
link: z.string().optional(),
}),
})
});
export const collections = {
"posts": postsCollection,
"projects": projectsCollection,
"certificates": certificatesCollection,
posts: postsCollection,
projects: projectsCollection,
certificates: certificatesCollection,
};

View file

@ -22,7 +22,9 @@ These are the elements outlined in John Grubers original design document. All
### Heading
# H1
## H2
### H3
### Bold
@ -31,7 +33,7 @@ These are the elements outlined in John Grubers original design document. All
### Italic
*italicized text*
_italicized text_
### Blockquote
@ -72,7 +74,7 @@ These elements extend the basic syntax by adding additional features. Not all Ma
### Table
| Syntax | Description |
| ----------- | ----------- |
| --------- | ----------- |
| Header | Title |
| Paragraph | Text |

View file

@ -23,7 +23,7 @@
overflow: hidden;
&:before {
content: '';
content: "";
width: 100%;
height: 100%;
@ -40,13 +40,16 @@
pointer-events: none;
}
&:hover, &:focus-visible {
&:hover,
&:focus-visible {
outline: 0 solid transparent;
&:before {
opacity: 1;
transform: scaleX(100%);
transition: opacity 0.5s cubic-bezier(0,1,0,1), transform 0.5s cubic-bezier(0,1,0,1);
transition:
opacity 0.5s cubic-bezier(0, 1, 0, 1),
transform 0.5s cubic-bezier(0, 1, 0, 1);
}
}
}

View file

@ -1,8 +1,10 @@
*, *::before, *::after {
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'IBM Plex Mono', monospace;
font-family: "IBM Plex Mono", monospace;
}
html {

View file

@ -3,9 +3,11 @@ import { type ContentEntryMap, getCollection } from "astro:content";
// https://github.com/hellotham/hello-astro/blob/e05706cf488bcec6e4c5494a622eedfc4e47d763/src/config.ts#L55C1-L62C2
export async function getPosts(collection: keyof ContentEntryMap) {
const posts = await getCollection(collection, ({ data }) => {
return data.draft !== true
})
return data.draft !== true;
});
return posts.sort((a, b) =>
a.data.pubDate && b.data.pubDate ? +b.data.pubDate - +a.data.pubDate : 0
)
a.data.pubDate && b.data.pubDate
? +b.data.pubDate - +a.data.pubDate
: 0,
);
}