Skip to content

Commit e009b07

Browse files
Fixed optimization warnings. (#1238)
Warning was from Lighthouse report. Co-authored-by: Mia Bajić <[email protected]>
1 parent 58545eb commit e009b07

File tree

9 files changed

+17
-25
lines changed

9 files changed

+17
-25
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"@astrojs/mdx": "^4.2.6",
1717
"@astrojs/sitemap": "^3.3.1",
1818
"@astrojs/tailwind": "^5.1.5",
19-
"@fontsource-variable/inter": "^5.2.5",
2019
"@fortawesome/fontawesome-free": "^6.7.2",
2120
"@tailwindcss/typography": "^0.5.16",
2221
"astro": "^5.7.5",

pnpm-lock.yaml

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

src/components/Footer.astro

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const gitVersion = __GIT_VERSION__;
5757
Excited about our mission? Want to collaborate or contribute? Let's
5858
connect! We're open to partnership opportunities and would love to
5959
hear your ideas.
60-
<a class="text-white" href="mailto:[email protected]"
60+
<a class="text-white/80 hover:text-white underline" href="mailto:[email protected]"
6161
6262
>
6363
</p>
@@ -88,7 +88,7 @@ const gitVersion = __GIT_VERSION__;
8888
links.terms.map((item) => (
8989
<a
9090
href={item.path}
91-
class="text-gray-700 hover:text-primary-hover transition-colors duration-200 mx-2"
91+
class="text-white/80 hover:text-primary-hover transition-colors duration-200 mx-2"
9292
>
9393
{item.name}
9494
{item.path.startsWith("http") && (
@@ -104,14 +104,14 @@ const gitVersion = __GIT_VERSION__;
104104
<SocialLinks
105105
socials={links["socials"]}
106106
variant="white"
107-
class="opacity-40 pb-4"
107+
class="opacity-60 pb-4"
108108
/>
109109
)
110110
}
111111
</div>
112112
</div>
113113

114-
<p class="mb-16 text-text-inverted text-center">
114+
<p class="mb-16 text-white/80 text-center">
115115
version: {gitVersion} @ {buildTimestamp}
116116
</p>
117117
</div>
@@ -122,6 +122,5 @@ const gitVersion = __GIT_VERSION__;
122122
}
123123
.terms {
124124
font-size: 0.8rem;
125-
opacity: 0.4;
126125
}
127126
</style>

src/components/NavItems.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ const { items, inverted = false, level = 1 } = Astro.props;
5454
target={item.path?.startsWith("http") ? "_blank" : undefined}
5555
role="menuitem"
5656
>
57-
<span>{item.name}</span>
57+
{item.name}
5858
{item.path?.startsWith("http") && (
59-
<span class="ml-1" aria-hidden="true">↗</span>
59+
<span aria-hidden="true">↗</span>
6060
)}
6161
</a>
6262
) : (
@@ -72,7 +72,7 @@ const { items, inverted = false, level = 1 } = Astro.props;
7272
)}
7373
role="menuitem"
7474
>
75-
<span>{item.name}</span>
75+
{item.name}
7676
{level === 2 && (
7777
<span aria-hidden="true">
7878
<Icon name="caret-right" />

src/components/sections/hero/hero.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { Image } from "astro:assets";
2+
import { Picture } from "astro:assets";
33
import heroImage from "/public/images/conference_photo.jpg";
44
55
import IconWithLabel from "./icon-label.astro";
@@ -135,10 +135,14 @@ const action2 = "/sponsorship/sponsor/";
135135
<div class="hero-image overflow-hidden -mt-12">
136136
<!-- Image with Rounded Corners and Shadow -->
137137
<div class="px-5 md:px-10 md:m-10">
138-
<Image
138+
<Picture
139139
src={heroImage}
140140
alt="EuroPython 2025 Conference"
141+
layout='full-width'
142+
formats={['avif', 'webp', 'jpeg']}
141143
class="w-full max-w-5xl lg:max-w-full h-auto lg:h-full rounded-2xl shadow-xl"
144+
loading="eager"
145+
priority={true}
142146
/>
143147
</div>
144148
</div>

src/components/sections/speakers.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function getRandomSpeakers(speakers: CollectionEntry<"speakers">[], count: numbe
1515
return shuffled.slice(0, Math.min(count, speakers.length));
1616
}
1717
18-
const featuredSpeakers = getRandomSpeakers(validSpeakers, 15);
18+
const featuredSpeakers = getRandomSpeakers(validSpeakers, 6);
1919
2020
const sectionTitle = "Featured Speakers";
2121
const sectionSubtitle = "Meet some of our amazing speakers";

src/components/sections/updates/card.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ const { title, subtitle, url, image } = Astro.props;
1414
---
1515

1616
<div
17-
class="prose-xl min-w-[250px] w-full md:w-[40%] lg:w-[30%] p-4 bg-[#D5D6E6] rounded-2xl text-center flex flex-col"
17+
class="prose-xl min-w-[250px] w-full md:w-[40%] lg:w-[30%] p-4 bg-[#D5D6E6] rounded-2xl text-center flex flex-col max-w-[360px]"
1818
>
1919
<div class="relative w-full">
2020
<Image
2121
src={image}
2222
width={600}
2323
height={375}
2424
alt=`Card image - ${title}`
25-
class="not-prose rounded-xl aspect-[3/2] w-full"
25+
class="not-prose rounded-xl w-full"
2626
loading="lazy"
2727
/>
2828
</div>

src/layouts/Layout.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import Header from "@components/Header.astro";
44
import Footer from "@components/Footer.astro";
55
66
7+
import "@fortawesome/fontawesome-free/css/all.min.css";
78
import "@src/styles/global.css";
89
import "@src/styles/search.css";
9-
import "@fontsource-variable/inter";
10-
import "@fortawesome/fontawesome-free/css/all.min.css";
1110
1211
export interface Props {
1312
title: string;

tailwind.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export default {
5454
fontFamily: {
5555
system: ["system-ui", "sans-serif"],
5656
title: [
57-
"Inter Variable",
5857
"-apple-system",
5958
"BlinkMacSystemFont",
6059
"Segoe UI",

0 commit comments

Comments
 (0)