diff --git a/.prettierrc b/.prettierrc index 3667846..8c3f990 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,13 +2,19 @@ "printWidth": 150, "arrowParens": "avoid", "tabWidth": 2, - "plugins": ["prettier-plugin-astro"], + "plugins": ["prettier-plugin-astro", "prettier-plugin-svelte"], "overrides": [ { "files": "*.astro", "options": { "parser": "astro" } + }, + { + "files": "*.svelte", + "options": { + "parser": "svelte" + } } ] } diff --git a/README.md b/README.md index 60f0057..c7c86cd 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ My personal portfolio built with Astro and TailwindCSS. Deployed at siri-dev.vercel.app. I am too cheap to buy the siri.dev domain :( +Design heavily inspired by [nexxel](https://nexxel.dev)'s site + ## Technologies - Astro diff --git a/astro.config.ts b/astro.config.ts index 919a0a0..15699d9 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -1,16 +1,23 @@ import { defineConfig } from "astro/config"; - import mdx from "@astrojs/mdx"; import sitemap from "@astrojs/sitemap"; import tailwind from "@astrojs/tailwind"; import vercel from "@astrojs/vercel/static"; import icon from "astro-icon"; +import svelte from "@astrojs/svelte"; +// https://astro.build/config export default defineConfig({ - integrations: [tailwind(), mdx(), sitemap(), icon({ iconDir: "src/components/icons" })], - build: { format: "file" }, + integrations: [tailwind(), mdx(), sitemap(), icon({ + iconDir: "src/components/icons" + }), svelte()], + build: { + format: "file" + }, site: "https://siri-dev.vercel.app", adapter: vercel({ - webAnalytics: { enabled: true }, - }), -}); + webAnalytics: { + enabled: true + } + }) +}); \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 4d6f598..14afd0f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index a0b73d2..028cb77 100644 --- a/package.json +++ b/package.json @@ -9,19 +9,23 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^2.0.1", - "@iconify-json/mdi": "^1.1.66", - "@vercel/analytics": "^1.2.2", - "astro": "^4.0.6", - "astro-icon": "^1.1.0", + "@astrojs/mdx": "^3.1.9", + "@astrojs/svelte": "^6.0.1", + "@iconify-json/mdi": "^1.2.1", + "@vercel/analytics": "^1.4.1", + "astro": "^4.16.13", + "astro-icon": "^1.1.2", "astro-tweet": "github:Dev-Siri/astro-tweet" }, "devDependencies": { - "@astrojs/sitemap": "^3.0.3", - "@astrojs/tailwind": "^5.1.0", - "@astrojs/vercel": "^6.1.0", - "prettier": "^3.1.1", - "prettier-plugin-astro": "^0.12.3", - "tailwindcss": "^3.4.1" + "@astrojs/sitemap": "^3.2.1", + "@astrojs/tailwind": "^5.1.2", + "@astrojs/vercel": "^7.8.2", + "prettier": "^3.3.3", + "prettier-plugin-astro": "^0.14.1", + "prettier-plugin-svelte": "^3.2.8", + "tailwindcss": "^3.4.15", + "typescript": "^5.6.3", + "svelte": "^5.2.3" } } diff --git a/src/components/BookItem.astro b/src/components/BookItem.astro index b2d35e2..913ab7a 100644 --- a/src/components/BookItem.astro +++ b/src/components/BookItem.astro @@ -1,6 +1,7 @@ --- import { Image } from "astro:assets"; import SocialMediaLink from "../components/SocialMediaLink.astro"; +import ProceedToCheckout from "../islands/ProceedToCheckout.svelte"; export interface Props { title: string; @@ -24,9 +25,7 @@ const { title, authors, imageUrl, price, imageSize } = Astro.props;
{authors} "{title}" O'Rly Book

${price}

- +
By IroncladDev @@ -34,11 +33,3 @@ const { title, authors, imageUrl, price, imageSize } = Astro.props;
- - diff --git a/src/components/GalleryPicture.astro b/src/components/GalleryPicture.astro index fc2029d..fcba6d7 100644 --- a/src/components/GalleryPicture.astro +++ b/src/components/GalleryPicture.astro @@ -27,9 +27,15 @@ const { index, location, height, width } = Astro.props; {width} /> + + diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 1f98057..bf189b9 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -10,9 +10,16 @@ import AnimatedSiriLogo from "./AnimatedSiriLogo.astro"; diff --git a/src/components/ProjectCard.astro b/src/components/ProjectCard.astro index db8ddcc..0b6013a 100644 --- a/src/components/ProjectCard.astro +++ b/src/components/ProjectCard.astro @@ -30,11 +30,11 @@ const linkProps = link?.includes("http") }
-

- {name} +

+ {name.toString()}

-

- {description.length >= 60 ? `${description.slice(0, 60)}...` : description} +

+ {description.length >= 55 ? `${description.slice(0, 55)}...` : description}

diff --git a/src/components/SideMenu.astro b/src/components/SideMenu.astro index 3877c86..83c0b49 100644 --- a/src/components/SideMenu.astro +++ b/src/components/SideMenu.astro @@ -4,11 +4,11 @@ import { links } from "../data";