From 51041f6ae9aa3550fb68cbda45413d11796af1d5 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 8 Jun 2025 16:45:36 -0500 Subject: [PATCH] apply prettier formatting --- .gitea/workflows/renovate.yaml | 2 +- .prettierrc | 1 - astro.config.mjs | 5 +- lib/directus.ts | 44 +- package.json | 5 +- pnpm-lock.yaml | 36 +- renovate.json | 20 +- src/components/Background.astro | 52 +- src/components/Footer.astro | 326 +++--- src/components/FormattedDate.astro | 20 +- src/components/Navigation.astro | 190 ++-- src/components/ShareButtons.astro | 133 ++- src/components/TagList.astro | 26 +- src/components/ThemeToggle.astro | 286 ++--- src/env.d.ts | 1 - src/layouts/Base.astro | 7 +- src/layouts/BaseLayout.astro | 16 +- src/layouts/BlogPost.astro | 245 +++-- src/layouts/Layout.astro | 151 +-- src/layouts/TransitionLayout.astro | 4 +- src/layouts/styles/markdown.css | 1611 ++++++++++++++-------------- src/pages/404.astro | 178 +-- src/pages/about.astro | 261 +++-- src/pages/blog/[...slug].astro | 251 +++-- src/pages/blog/index.astro | 421 ++++---- src/pages/index.astro | 524 +++++---- src/pages/rss.xml.ts | 12 +- src/pages/topics/[tag].astro | 448 +++++--- src/pages/topics/index.astro | 460 ++++---- src/styles/global.css | 67 +- src/utils/debug.ts | 3 +- tailwind.config.cjs | 6 +- 32 files changed, 3303 insertions(+), 2509 deletions(-) diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml index ebc0b09..88cd8d6 100644 --- a/.gitea/workflows/renovate.yaml +++ b/.gitea/workflows/renovate.yaml @@ -2,7 +2,7 @@ name: renovate on: schedule: - - cron: "@daily" + - cron: '@daily' push: branches: diff --git a/.prettierrc b/.prettierrc index 915c431..a21f88c 100644 --- a/.prettierrc +++ b/.prettierrc @@ -15,4 +15,3 @@ } ] } - diff --git a/astro.config.mjs b/astro.config.mjs index 4c83e68..2423b50 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -11,8 +11,5 @@ const getSiteURL = () => { export default defineConfig({ site: getSiteURL(), - integrations: [ - tailwind(), - react(), - ], + integrations: [tailwind(), react()], }); diff --git a/lib/directus.ts b/lib/directus.ts index 912024d..b7ab0d0 100644 --- a/lib/directus.ts +++ b/lib/directus.ts @@ -1,4 +1,4 @@ -import { createDirectus, rest, } from '@directus/sdk'; +import { createDirectus, rest } from '@directus/sdk'; type Global = { title: string; @@ -10,38 +10,38 @@ type Global = { portrait: string; portrait_alt: string; about: string; -} +}; type About = { background: string; experience: string; education: string; certifications: string; -} +}; type Links = { github: string; linkedin: string; -} +}; type Skill = { - title: string; - description: string; - icon: string; - level: string; - } + title: string; + description: string; + icon: string; + level: string; +}; export type Post = { - slug: string; - title: string; - description: string; - content: string; - image: string; - image_alt: string; - published_date: Date; - updated_date: Date; - tags: string[]; - } + slug: string; + title: string; + description: string; + content: string; + image: string; + image_alt: string; + published_date: Date; + updated_date: Date; + tags: string[]; +}; type Schema = { global: Global; @@ -49,8 +49,10 @@ type Schema = { links: Links; skills: Skill[]; posts: Post[]; -} +}; -const directus = createDirectus(process.env.DIRECTUS_URL ?? "https://directus.alexlebens.dev").with(rest()); +const directus = createDirectus( + process.env.DIRECTUS_URL ?? 'https://directus.alexlebens.dev' +).with(rest()); export default directus; diff --git a/package.json b/package.json index 09236d2..2b60116 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "dev": "astro dev", "build": "astro build", "preview": "astro preview", + "format": "prettier . --write", "astro": "astro" }, "dependencies": { @@ -30,7 +31,7 @@ "devDependencies": { "@tailwindcss/typography": "^0.5.16", "prettier": "^3.5.3", - "prettier-plugin-astro": "^0.12.3", - "prettier-plugin-tailwindcss": "^0.5.14" + "prettier-plugin-astro": "^0.14.0", + "prettier-plugin-tailwindcss": "^0.6.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 51bb559..9126013 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -64,11 +64,11 @@ importers: specifier: ^3.5.3 version: 3.5.3 prettier-plugin-astro: - specifier: ^0.12.3 - version: 0.12.3 + specifier: ^0.14.0 + version: 0.14.1 prettier-plugin-tailwindcss: - specifier: ^0.5.14 - version: 0.5.14(prettier-plugin-astro@0.12.3)(prettier@3.5.3) + specifier: ^0.6.0 + version: 0.6.12(prettier-plugin-astro@0.14.1)(prettier@3.5.3) packages: @@ -80,9 +80,6 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} - '@astrojs/compiler@1.8.2': - resolution: {integrity: sha512-o/ObKgtMzl8SlpIdzaxFnt7SATKPxu4oIP/1NL+HDJRzxfJcAkOTAb/ZKMRyULbz4q+1t2/DAebs2Z1QairkZw==} - '@astrojs/compiler@2.12.1': resolution: {integrity: sha512-WDSyVIiz7sNcJcCJxJFITu6XjfGhJ50Z0auyaWsrM+xb07IlhBLFtQuDkNy0caVHWNcKTM2LISAaHhgkRqGAVg==} @@ -1792,25 +1789,26 @@ packages: resolution: {integrity: sha512-QSa9EBe+uwlGTFmHsPKokv3B/oEMQZxfqW0QqNCyhpa6mB1afzulwn8hihglqAb2pOw+BJgNlmXQ8la2VeHB7w==} engines: {node: ^10 || ^12 || >=14} - prettier-plugin-astro@0.12.3: - resolution: {integrity: sha512-GthUSu3zCvmtVyqlArosez0xE08vSJ0R1sWurxIWpABaCkNGYFANoUdFkqmIo54EV2uPLGcVJzOucWvCjPBWvg==} + prettier-plugin-astro@0.14.1: + resolution: {integrity: sha512-RiBETaaP9veVstE4vUwSIcdATj6dKmXljouXc/DDNwBSPTp8FRkLGDSGFClKsAFeeg+13SB0Z1JZvbD76bigJw==} engines: {node: ^14.15.0 || >=16.0.0} - prettier-plugin-tailwindcss@0.5.14: - resolution: {integrity: sha512-Puaz+wPUAhFp8Lo9HuciYKM2Y2XExESjeT+9NQoVFXZsPPnc9VYss2SpxdQ6vbatmt8/4+SN0oe0I1cPDABg9Q==} + prettier-plugin-tailwindcss@0.6.12: + resolution: {integrity: sha512-OuTQKoqNwV7RnxTPwXWzOFXy6Jc4z8oeRZYGuMpRyG3WbuR3jjXdQFK8qFBMBx8UHWdHrddARz2fgUenild6aw==} engines: {node: '>=14.21.3'} peerDependencies: '@ianvs/prettier-plugin-sort-imports': '*' '@prettier/plugin-pug': '*' '@shopify/prettier-plugin-liquid': '*' '@trivago/prettier-plugin-sort-imports': '*' - '@zackad/prettier-plugin-twig-melody': '*' + '@zackad/prettier-plugin-twig': '*' prettier: ^3.0 prettier-plugin-astro: '*' prettier-plugin-css-order: '*' prettier-plugin-import-sort: '*' prettier-plugin-jsdoc: '*' prettier-plugin-marko: '*' + prettier-plugin-multiline-arrays: '*' prettier-plugin-organize-attributes: '*' prettier-plugin-organize-imports: '*' prettier-plugin-sort-imports: '*' @@ -1825,7 +1823,7 @@ packages: optional: true '@trivago/prettier-plugin-sort-imports': optional: true - '@zackad/prettier-plugin-twig-melody': + '@zackad/prettier-plugin-twig': optional: true prettier-plugin-astro: optional: true @@ -1837,6 +1835,8 @@ packages: optional: true prettier-plugin-marko: optional: true + prettier-plugin-multiline-arrays: + optional: true prettier-plugin-organize-attributes: optional: true prettier-plugin-organize-imports: @@ -2466,8 +2466,6 @@ snapshots: '@jridgewell/gen-mapping': 0.3.8 '@jridgewell/trace-mapping': 0.3.25 - '@astrojs/compiler@1.8.2': {} - '@astrojs/compiler@2.12.1': {} '@astrojs/internal-helpers@0.6.1': {} @@ -4585,17 +4583,17 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 - prettier-plugin-astro@0.12.3: + prettier-plugin-astro@0.14.1: dependencies: - '@astrojs/compiler': 1.8.2 + '@astrojs/compiler': 2.12.1 prettier: 3.5.3 sass-formatter: 0.7.9 - prettier-plugin-tailwindcss@0.5.14(prettier-plugin-astro@0.12.3)(prettier@3.5.3): + prettier-plugin-tailwindcss@0.6.12(prettier-plugin-astro@0.14.1)(prettier@3.5.3): dependencies: prettier: 3.5.3 optionalDependencies: - prettier-plugin-astro: 0.12.3 + prettier-plugin-astro: 0.14.1 prettier@3.5.3: {} diff --git a/renovate.json b/renovate.json index 5c9e8a0..9e4da8c 100644 --- a/renovate.json +++ b/renovate.json @@ -1,14 +1,10 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended", - "mergeConfidence:all-badges", - ":rebaseStalePrs" - ], - "timezone": "US/Central", - "schedule": [ "* */1 * * *" ], - "labels": [], - "prHourlyLimit": 0, - "prConcurrentLimit": 0, - "packageRules": [] + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended", "mergeConfidence:all-badges", ":rebaseStalePrs"], + "timezone": "US/Central", + "schedule": ["* */1 * * *"], + "labels": [], + "prHourlyLimit": 0, + "prConcurrentLimit": 0, + "packageRules": [] } diff --git a/src/components/Background.astro b/src/components/Background.astro index 510a76e..67442d2 100644 --- a/src/components/Background.astro +++ b/src/components/Background.astro @@ -2,16 +2,29 @@ // Background.astro - Dot pattern and ambient glow background with smooth theme transitions --- -
+
-
- +
+
+ -
-
- +
+
+
+
+ -
+
+
@@ -353,19 +368,21 @@ try { /* Enhanced hero image styling */ article img:first-of-type { border-radius: 1rem; - box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); + box-shadow: + 0 10px 25px -5px rgba(0, 0, 0, 0.1), + 0 8px 10px -6px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; } - + article img:first-of-type:hover { transform: scale(1.01); } - + /* Article entrance animation */ .article-entering { animation: article-fade-in 0.8s ease-out forwards; } - + @keyframes article-fade-in { from { opacity: 0; @@ -376,6 +393,6 @@ try { transform: translateY(0); } } - + /* Rest of the styles remain unchanged... */ diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index af6b89f..5fa7b13 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -5,14 +5,14 @@ import Background from '../components/Background.astro'; import '../styles/global.css'; interface Props { - title?: string | undefined; - description?: string | undefined; + title?: string | undefined; + description?: string | undefined; } const { title, description } = Astro.props; --- - + @@ -21,33 +21,41 @@ const { title, description } = Astro.props; {title} - - - + + + - + -
+
- + - -
+ +