diff --git a/README.md b/README.md index 1db3fb3..dd964b3 100644 --- a/README.md +++ b/README.md @@ -1,54 +1,5 @@ -# Astro Starter Kit: Basics +# Homepage / portfolio -```sh -npm create astro@latest -- --template basics -``` +> This repository is mirrored on [Codeberg](https://codeberg.org/martials/martials.no) -[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) -[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics) -[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json) - -> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! - - - -## 🚀 Project Structure - -Inside of your Astro project, you'll see the following folders and files: - -```text -/ -├── public/ -│ └── favicon.svg -├── src/ -│ ├── components/ -│ │ └── Card.astro -│ ├── layouts/ -│ │ └── Layout.astro -│ └── pages/ -│ └── index.astro -└── package.json -``` - -Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. - -There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. - -Any static assets, like images, can be placed in the `public/` directory. - -## 🧞 Commands - -All commands are run from the root of the project, from a terminal: - -| Command | Action | -| :------------------------ | :----------------------------------------------- | -| `npm install` | Installs dependencies | -| `npm run dev` | Starts local dev server at `localhost:4321` | -| `npm run build` | Build your production site to `./dist/` | -| `npm run preview` | Preview your build locally, before deploying | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | -| `npm run astro -- --help` | Get help using the Astro CLI | - -## 👀 Want to learn more? - -Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). +More to come! diff --git a/TODO.md b/TODO.md index e4cdb06..7fdf64e 100644 --- a/TODO.md +++ b/TODO.md @@ -11,6 +11,7 @@ - [ ] Fix colours on buttons - [ ] Correct contrast - [ ] All interactable elements have labels +- [ ] Colour links, also in MDX posts ## ~/ - [ ] About me description diff --git a/astro.config.mjs b/astro.config.mjs index ab45fa6..1c06fa7 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -28,9 +28,8 @@ export default defineConfig({ svelte(), icon(), paraglide({ - // recommended settings project: "./project.inlang", - outdir: "./src/paraglide", //where your files should be + outdir: "./src/paraglide", }), ], adapter: node({ diff --git a/public/favicon.jpg b/public/favicon.jpg new file mode 100644 index 0000000..8032d56 Binary files /dev/null and b/public/favicon.jpg differ diff --git a/public/favicon.svg b/public/favicon.svg deleted file mode 100644 index f157bd1..0000000 --- a/public/favicon.svg +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 8b9bf77..ad79733 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -16,7 +16,11 @@ const giteaLink = `${GIT_URL}/martials/martials.no`
{message}
diff --git a/src/components/myLinks/myLinks.ts b/src/components/myLinks/myLinks.ts index 823cf5a..d62c591 100644 --- a/src/components/myLinks/myLinks.ts +++ b/src/components/myLinks/myLinks.ts @@ -6,7 +6,10 @@ export interface MyLink { title: string url: string message?: string - icon?: PajamasIcon + icon?: { + src: PajamasIcon + alt: string + } } export default [ @@ -14,28 +17,43 @@ export default [ title: "Codeberg", url: "https://codeberg.org/martials", message: m.forMirrors(), - icon: "pajamas:git", + icon: { + src: "pajamas:git", + alt: "Git icon", + }, }, { title: "Gitea", url: `${GIT_URL}/martials`, message: m.forPersonalProjects(), - icon: "pajamas:gitea", + icon: { + src: "pajamas:gitea", + alt: "Gitea icon", + }, }, { title: "GitHub", url: "https://github.com/emberal", - icon: "pajamas:github", + icon: { + src: "pajamas:github", + alt: "GitHub icon", + }, }, { title: "LinkedIn", url: "https://www.linkedin.com/in/martin-b-2a69391a3/", - icon: "pajamas:linkedin", + icon: { + src: "pajamas:linkedin", + alt: "LinkedIn icon", + }, }, { title: "Mastodon (Snabelen.no)", url: "https://snabelen.no/@Martials", - icon: "pajamas:mastodon", + icon: { + src: "pajamas:mastodon", + alt: "Mastodon icon", + }, }, { title: "Pixelfed", @@ -49,4 +67,4 @@ export default [ title: "Trakt.tv", url: "https://trakt.tv/users/martials", }, -] as MyLink[] +] satisfies MyLink[] diff --git a/src/components/projects/ProjectCard.astro b/src/components/projects/ProjectCard.astro index 207df50..f64c09c 100644 --- a/src/components/projects/ProjectCard.astro +++ b/src/components/projects/ProjectCard.astro @@ -19,7 +19,7 @@ const { title, description, tags, image, imageAlt, linkTo } = Astro.props{description}