Skip to content

Commit c2be8fa

Browse files
committed
pre-commit
1 parent 679fed0 commit c2be8fa

File tree

11 files changed

+3635
-1781
lines changed

11 files changed

+3635
-1781
lines changed

pnpm-lock.yaml

Lines changed: 3580 additions & 1734 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/form/select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const Select = ({
1919
defaultValue={defaultValue}
2020
className={clsx(
2121
"block w-full bg-transparent text-lg h-16 py-2 pr-16 pl-4 border-[3px] border-primary appearance-none",
22-
"focus:outline-none focus:border-black focus-visible:bg-white"
22+
"focus:outline-none focus:border-black focus-visible:bg-white",
2323
)}
2424
>
2525
{children}
@@ -29,7 +29,7 @@ export const Select = ({
2929
xmlns="http://www.w3.org/2000/svg"
3030
viewBox="0 0 12 8"
3131
className={clsx(
32-
"absolute top-1/2 -translate-y-1/2 w-6 h-6 pointer-events-none text-primary right-4"
32+
"absolute top-1/2 -translate-y-1/2 w-6 h-6 pointer-events-none text-primary right-4",
3333
)}
3434
>
3535
<path

src/components/link/link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const Link = ({
1616
<a
1717
className={clsx(
1818
"text-primary hover:text-primary-hover font-title font-bold underline",
19-
className
19+
className,
2020
)}
2121
href={href}
2222
{...props}

src/components/nav-items/nav-items.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const NavItems = ({ items, inverted = false }: Props) => {
2323
{
2424
"text-white": inverted,
2525
"text-primary": !inverted,
26-
}
26+
},
2727
)}
2828
>
2929
<a
@@ -35,7 +35,7 @@ export const NavItems = ({ items, inverted = false }: Props) => {
3535
"font-bold inline-block w-full text-3xl xl:text-base p-5 text-center",
3636
"xl:text-left xl:p-2 xl:px-5",
3737
"xl:group-hover:bg-secondary xl:group-hover:rounded-[30px] xl:group-hover:text-white",
38-
"xl:group-focus-within:bg-secondary xl:group-focus-within:rounded-[30px] xl:group-focus-within:text-white"
38+
"xl:group-focus-within:bg-secondary xl:group-focus-within:rounded-[30px] xl:group-focus-within:text-white",
3939
)}
4040
>
4141
{item.name}
@@ -46,7 +46,7 @@ export const NavItems = ({ items, inverted = false }: Props) => {
4646
<div
4747
className={clsx(
4848
"xl:hidden xl:group-hover:block xl:absolute z-50",
49-
"xl:group-focus-within:block"
49+
"xl:group-focus-within:block",
5050
)}
5151
>
5252
<ul className="mb-3 xl:bg-secondary xl:mt-2 xl:rounded-[30px]">
@@ -57,15 +57,15 @@ export const NavItems = ({ items, inverted = false }: Props) => {
5757
"bg-secondary text-white block w-full font-bold text-center",
5858
"xl:text-left xl:hover:bg-secondary-light",
5959
"xl:first:rounded-t-[30px] xl:first:pt-2",
60-
"xl:last:rounded-b-[30px] xl:last:pb-2"
60+
"xl:last:rounded-b-[30px] xl:last:pb-2",
6161
)}
6262
>
6363
<a
6464
href={subItem.path || "#"}
6565
role="button"
6666
className={clsx(
6767
"block w-full font-bold text-center",
68-
"xl:text-left mb-[2px] p-2 xl:px-5"
68+
"xl:text-left mb-[2px] p-2 xl:px-5",
6969
)}
7070
>
7171
{subItem.name}

src/components/tag/tag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const Tag = ({ children, className, href }: TagProps) => {
1414
"inline-block bg-secondary text-body px-4 py-2 rounded-xl font-bold",
1515
"hover:bg-primary hover:text-white transition-colors",
1616
"duration-200 ease-in-out cursor-pointer",
17-
className
17+
className,
1818
)}
1919
href={href}
2020
>

src/components/typography/title.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const Title = ({
2727
"text-lg md:text-2xl": level === 5,
2828
"text-lg md:text-xl": level === 6,
2929
},
30-
className
30+
className,
3131
)}
3232
{...props}
3333
>

src/content/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ const days = defineCollection({
116116
code: z.string(),
117117
name: z.string(),
118118
website_url: z.string(),
119-
})
119+
}),
120120
)
121121
.optional(),
122122
tweet: z.string().optional().nullable(),
123123
level: z.string().optional().nullable(),
124124
start: z.string(),
125125
website_url: z.string().optional().nullable(),
126126
duration: z.number(),
127-
})
127+
}),
128128
),
129129
}),
130130
});

src/pages/schedule/[day].astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ const slots = Object.entries(sessionsByTime)
189189
};
190190
});
191191
192-
193192
const gridRows: string[] = [];
194193
195194
let row = 1;

src/pages/speakers.astro

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ type Groups = {
2121
2222
// Group speakers by the first letter of their name
2323
const groups: Groups = speakersCollection
24-
.filter((speaker: Speaker) => !!speaker.data.name)
25-
.reduce((acc: Groups, speaker: Speaker) => {
24+
.filter((speaker: Speaker) => !!speaker.data.name)
25+
.reduce((acc: Groups, speaker: Speaker) => {
2626
const letter = speaker.data.name[0].toUpperCase();
2727
if (!acc[letter]) {
2828
acc[letter] = [];
@@ -35,7 +35,8 @@ const letters = Object.keys(groups).sort((a, b) => a.localeCompare(b));
3535
3636
const title = "Speakers";
3737
38-
const description = "Alphabetical list of all confirmed speakers for the conference";
38+
const description =
39+
"Alphabetical list of all confirmed speakers for the conference";
3940
---
4041

4142
<Layout title={title} description={description}>
@@ -45,40 +46,48 @@ const description = "Alphabetical list of all confirmed speakers for the confere
4546
</Prose>
4647

4748
<div class="flex text-3xl font-bold flex-wrap mb-6">
48-
{letters.map((letter) => (
49-
<h3 class="mr-2">
50-
<a href={`#letter-${letter}`}>{letter}</a>
51-
</h3>
52-
))}
49+
{
50+
letters.map((letter) => (
51+
<h3 class="mr-2">
52+
<a href={`#letter-${letter}`}>{letter}</a>
53+
</h3>
54+
))
55+
}
5356
</div>
5457

5558
<ol class="speakers">
56-
{letters.map((letter, index) => (
57-
<>
58-
<div id={`letter-${letter}`}>
59-
<h2 class="relative font-title text-primary font-bold mb-[0.6em] [&>a]:border-0 [&>a]:text-inherit text-4xl">
60-
{letter}
61-
</h2>
59+
{
60+
letters.map((letter, index) => (
61+
<>
62+
<div id={`letter-${letter}`}>
63+
<h2 class="relative font-title text-primary font-bold mb-[0.6em] [&>a]:border-0 [&>a]:text-inherit text-4xl">
64+
{letter}
65+
</h2>
6266

63-
<ul class="pl-4">
64-
{groups[letter]
65-
.sort((a, b) => a.data.name.localeCompare(b.data.name))
66-
.map((speaker) => (
67-
<li {...{ key: speaker.slug }} class="mb-1">
68-
<a
69-
class="underline hover:text-primary-hover"
70-
href={`/speaker/${speaker.slug}`}
71-
>
72-
{speaker.data.name}
73-
</a>
74-
</li>
75-
))}
76-
</ul>
77-
</div>
67+
<ul class="pl-4">
68+
{groups[letter]
69+
.sort((a, b) => a.data.name.localeCompare(b.data.name))
70+
.map((speaker) => (
71+
<li {...{ key: speaker.slug }} class="mb-1">
72+
<a
73+
class="underline hover:text-primary-hover"
74+
href={`/speaker/${speaker.slug}`}
75+
>
76+
{speaker.data.name}
77+
</a>
78+
</li>
79+
))}
80+
</ul>
81+
</div>
7882

79-
{index !== letters.length - 1 ? <Separator /> : <div class="mb-20" />}
80-
</>
81-
))}
83+
{index !== letters.length - 1 ? (
84+
<Separator />
85+
) : (
86+
<div class="mb-20" />
87+
)}
88+
</>
89+
))
90+
}
8291
</ol>
8392
</div>
8493
</Layout>

src/scripts/fetchData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function fetchAndSaveData(url, filePath) {
2828

2929
if (!response.ok) {
3030
throw new Error(
31-
`Failed to fetch data: ${response.status} ${response.statusText}`
31+
`Failed to fetch data: ${response.status} ${response.statusText}`,
3232
);
3333
}
3434

0 commit comments

Comments
 (0)