Skip to content

Commit af02b75

Browse files
committed
Upgrade all deps and fix all errors
1 parent 3a092e5 commit af02b75

35 files changed

+119
-123
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
/**
2-
* @see https://prettier.io/docs/en/configuration.html
3-
* @type {import("prettier").Config}
4-
*/
5-
const config = {
1+
// https://prettier.io/docs/en/configuration.html
2+
import type { Config } from "prettier";
3+
4+
export default {
65
trailingComma: "es5",
76
tabWidth: 2,
87
semi: true,
@@ -16,6 +15,4 @@ const config = {
1615
},
1716
},
1817
],
19-
};
20-
21-
export default config;
18+
} as Config;

astro.config.mjs renamed to astro.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { defineConfig } from "astro/config";
2-
import tailwind from "@astrojs/tailwind";
2+
import tailwindcss from "@tailwindcss/vite";
33
import sitemap from "@astrojs/sitemap";
44

55
import mdx from "@astrojs/mdx";
66

77
// https://astro.build/config
88
export default defineConfig({
9+
output: "static",
910
site: "https://ladybird.org",
10-
integrations: [tailwind(), sitemap(), mdx()],
11+
integrations: [sitemap(), mdx()],
1112
// Special case the initial posts from before the astro transition.
1213
// These are the super-SEO'd links that were shared around.
1314
redirects: {
@@ -23,4 +24,7 @@ export default defineConfig({
2324
"/wire.pdf": "/organization#bank-details",
2425
"/posts.xml": "/posts.rss",
2526
},
27+
vite: {
28+
plugins: [tailwindcss()],
29+
},
2630
});

bun.lockb

-9.69 KB
Binary file not shown.

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build": "astro build",
99
"preview": "astro preview",
1010
"astro": "astro",
11+
"check": "astro check",
1112
"format": "prettier --write \"**/*.{astro,ts,tsx,md,mdx,js,cjs,mjs,jsx}\"",
1213
"format:check": "prettier --check \"**/*.{astro,ts,tsx,md,mdx,js,cjs,mjs,jsx}\""
1314
},
@@ -16,18 +17,19 @@
1617
"@tailwindcss/forms": "^0.5.10",
1718
"@tailwindcss/typography": "^0.5.16",
1819
"@types/bun": "latest",
19-
"fast-xml-parser": "^4.5.3",
20+
"fast-xml-parser": "^5.2.5",
2021
"kleur": "^4.1.5",
21-
"prettier": "^3.5.3",
22-
"prettier-plugin-astro": "^0.14.1"
22+
"prettier": "^3.6.2",
23+
"prettier-plugin-astro": "^0.14.1",
24+
"typescript": "^5.8.3"
2325
},
2426
"dependencies": {
25-
"@astrojs/mdx": "3.1.3",
26-
"@astrojs/rss": "^4.0.11",
27-
"@astrojs/sitemap": "^3.4.0",
28-
"@astrojs/tailwind": "^5.1.5",
29-
"@astrojs/ts-plugin": "^1.10.4",
30-
"astro": "^4.16.18",
31-
"tailwindcss": "^3.4.17"
27+
"@astrojs/check": "^0.9.4",
28+
"@astrojs/mdx": "^4.3.0",
29+
"@astrojs/rss": "^4.0.12",
30+
"@astrojs/sitemap": "^3.4.1",
31+
"@tailwindcss/vite": "^4.1.11",
32+
"astro": "^5.11",
33+
"tailwindcss": "^4.1.11"
3234
}
3335
}

src/components/global/footer.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<footer class="bg-[#000] py-0 md:px-20">
1+
<footer class="bg-black py-0 md:px-20">
22
<div class="container">
33
<div
44
class="flex items-center h-[335px] sm:h-[380px] bg-cover bg-no-repeat relative z-10 -top-[60px] rounded-[40px] md:rounded-[80px] bg-center bg-[url('../../../assets/img/discover-bg.webp')] w-full"
55
>
66
<div class="p-7 md:h-[335px] md:p-10 lg:py-12 lg:px-20">
7-
<h2 class="text-[#000] mb-1 text-[36px] lg:text-4xl">
7+
<h2 class="text-black mb-1 text-[36px] lg:text-4xl">
88
Sign up for our newsletter
99
</h2>
10-
<p class="text-[#000] mb-6 max-w-[832px] lg:text-lg">
10+
<p class="text-black mb-6 max-w-[832px] lg:text-lg">
1111
We'll e-mail you once a month with updates about Ladybird.
1212
</p>
1313

@@ -88,7 +88,7 @@
8888
</div>
8989

9090
<div
91-
class="flex sm:flex-row flex-col gap-10 items-center justify-between py-[30px] pb-5 px-0 border-t-[#303030] border-t-[1px] mt-8 border-solid"
91+
class="flex sm:flex-row flex-col gap-10 items-center justify-between py-[30px] pb-5 px-0 border-t-[#303030] border-t mt-8 border-solid"
9292
>
9393
<div class="[&>p]:text-[#757575] font-normal">
9494
<p>© 2024 - {new Date().getFullYear()}. All rights reserved.</p>

src/components/global/head.astro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
---
22
import "../../styles/global.css";
3+
type Props = {
4+
title?: string;
5+
description?: string;
6+
author?: string;
7+
image?: string;
8+
};
39
const { title, description, author, image } = Astro.props;
410
const defaultTitle = "Ladybird";
511
const defaultDescription =

src/components/global/navigation.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<header class="p-[20px] bg-[#000] relative">
1+
<header class="p-[20px] bg-black relative">
22
<div id="header-blobs" class="absolute pointer-events-none z-10 top-0 left-0">
33
<img src="/assets/img/header-eclipse.svg" alt="Header Gradient Blobs" />
44
</div>

src/components/landing/about.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<section id="about" class="text-[#fff] bg-[#000] pt-12 lg:pt-0 px-4">
1+
<section id="about" class="text-white bg-black pt-12 lg:pt-0 px-4">
22
<div class="container">
33
<div
44
class="grid grid-cols-[1fr] lg:grid-cols-[1fr_1fr] items-center gap-16"

src/components/landing/donate.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<section
2-
class="relative z-10 -top-4 text-[#fff] bg-[url('/assets/img/blurp.webp')] bg-center bg-cover mb-12 flex justify-center"
2+
class="relative z-10 -top-4 text-white bg-[url('/assets/img/blurp.webp')] bg-center bg-cover mb-12 flex justify-center"
33
>
44
<div class="p-6 md:p-8 lg:px-16 lg:py-10">
55
<h2 class="text-3xl lg:text-4xl mb-[0.8em] lg:mb-[0.4em]">

src/components/landing/hero.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<section
2-
class="bg-[#000] relative flex flex-col items-center pt-[80px] px-5 pb-0 lg:flex-row lg:pt-0 lg:min-h-[892px]"
2+
class="bg-black relative flex flex-col items-center pt-[80px] px-5 pb-0 lg:flex-row lg:pt-0 lg:min-h-[892px]"
33
>
44
<div class="container">
5-
<div class="max-w-[800px] relative z-[2]">
6-
<h1 class="text-[#fff] mb-4">
5+
<div class="max-w-[800px] relative z-2">
6+
<h1 class="text-white mb-4">
77
Welcome to <span
8-
class="bg-clip-text text-transparent bg-gradient-to-r from-[#6d98cc] to-[#8a64e5]"
8+
class="bg-clip-text text-transparent bg-linear-to-r from-[#6d98cc] to-[#8a64e5]"
99
style="-webkit-background-clip: text;">Ladybird</span
1010
>,<br />a truly independent<br />web browser.
1111
</h1>
12-
<p class="mb-8 text-[#fff]">
12+
<p class="mb-8 text-white">
1313
We are building a brand-new browser from scratch, backed by a
1414
non-profit.
1515
</p>

0 commit comments

Comments
 (0)