Skip to content

Commit 54687bb

Browse files
authored
Clean up. (#1235)
Clean up components, imports and styles.
1 parent cca654f commit 54687bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+210
-691
lines changed

README.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,10 @@ content collections to manage the content. The collections are configure inside
4747

4848
### Pages
4949

50-
Pages are stored in the `src/content/pages` directory. Each page is a mdx file
50+
Pages are stored in the `src/content/pages` directory. Each page is a md file
5151
with frontmatter.
5252

5353
### Deadlines
5454

5555
Meanwhile, our important deadlines ⏰ are located inside the
5656
`src/content/deadlines` directory.
57-
58-
## Using Astro Image Component 🖼️
59-
60-
When adding images to the website, please make sure to use astro Image component
61-
and to specify the width of the image. This will make sure we are optimizing the
62-
images and not serving large images to the users.
63-
64-
Here is an example:
65-
66-
```jsx
67-
import { Image } from "astro:assset";
68-
69-
import image from "./image.jpg";
70-
71-
<Image src={image} width={500} />;
72-
```

astro.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import path from "path";
22
import { defineConfig } from "astro/config";
33
import mdx from "@astrojs/mdx";
44
import sitemap from "@astrojs/sitemap";
5-
import react from "@astrojs/react";
65
import tailwind from "@astrojs/tailwind";
76
import remarkToc from "remark-toc";
87
import rehypeSlug from "rehype-slug";
@@ -50,6 +49,7 @@ export default defineConfig({
5049
"@layouts": path.resolve("./src/layouts"),
5150
"@ui": path.resolve("./src/components/ui"),
5251
"@assets": path.resolve("./src/assets"),
52+
"@styles": path.resolve("./src/styles"),
5353
"@i18n": path.resolve("./src/i18n"),
5454
"@src": path.resolve("./src"),
5555
},
@@ -83,7 +83,6 @@ export default defineConfig({
8383
preload(),
8484
mdx(),
8585
sitemap(),
86-
react(),
8786
tailwind({
8887
nesting: true,
8988
}),

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@
1414
"@astro-community/astro-embed-youtube": "^0.5.6",
1515
"@astrojs/check": "^0.9.4",
1616
"@astrojs/mdx": "^4.2.6",
17-
"@astrojs/react": "^4.2.7",
1817
"@astrojs/sitemap": "^3.3.1",
1918
"@astrojs/tailwind": "^5.1.5",
2019
"@fontsource-variable/inter": "^5.2.5",
2120
"@fortawesome/fontawesome-free": "^6.7.2",
2221
"@tailwindcss/typography": "^0.5.16",
23-
"@types/react": "^19.1.2",
24-
"@types/react-dom": "^19.1.3",
2522
"astro": "^5.7.5",
2623
"astro-compress": "^2.3.8",
2724
"astro-delete-unused-images": "^1.0.3",
@@ -35,8 +32,6 @@
3532
"js-yaml": "^4.1.0",
3633
"marked": "^15.0.11",
3734
"pagefind": "^1.3.0",
38-
"react": "^19.1.0",
39-
"react-dom": "^19.1.0",
4035
"rehype-autolink-headings": "^7.1.0",
4136
"rehype-slug": "^6.0.0",
4237
"remark-toc": "^9.0.0",

0 commit comments

Comments
 (0)