From 5e1a3d7ac27aeab6cd4f666d192069fd10640cd5 Mon Sep 17 00:00:00 2001 From: Francisco Arceo Date: Wed, 5 Feb 2025 00:07:52 -0500 Subject: [PATCH] Revert "feat: update link colors to #2178DD" --- .github/workflows/deploy.yml | 40 - .github/workflows/worfklow.yml | 44 + components/common/Bio/Bio.js | 39 +- components/common/Image/Image.js | 22 +- components/common/Image/index.js | 2 +- components/common/Layout/Layout.js | 45 +- next.config.cjs | 11 - next.config.js | 27 +- package-lock.json | 22005 ++++++++++----------------- package.json | 55 +- pages/index.js | 6 +- pages/post/[slug].js | 69 +- postcss.config.cjs | 3 - scripts/generate-sitemap.mjs | 66 - tailwind.config.js | 19 +- yarn.lock | 7481 +++++++++ 16 files changed, 16142 insertions(+), 13792 deletions(-) delete mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/worfklow.yml delete mode 100644 next.config.cjs delete mode 100644 postcss.config.cjs delete mode 100644 scripts/generate-sitemap.mjs create mode 100644 yarn.lock diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index c237a02..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Deploy to GitHub Pages - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build-and-deploy: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v3 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20.x' - cache: 'npm' - - - name: Install dependencies - run: | - npm install - npm list - - - name: Build and Export - run: | - echo "Starting build process..." - npm run build || (echo "Build failed" && exit 1) - echo "Build completed, copying public files..." - mkdir -p out - cp -r public/* out/ || echo "No public files to copy" - - - name: Deploy to GitHub Pages - if: github.ref == 'refs/heads/main' - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./out - cname: franciscojavierarceo.github.io diff --git a/.github/workflows/worfklow.yml b/.github/workflows/worfklow.yml new file mode 100644 index 0000000..bb3642a --- /dev/null +++ b/.github/workflows/worfklow.yml @@ -0,0 +1,44 @@ +name: Build and Deploy +on: [push] +jobs: + build-and-deploy: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./ + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Cache 💾 + uses: actions/cache@v2 + with: + path: ${{ github.workspace }}/.next/cache + key: ${{ runner.os }}-nextjs-v3-${{ hashFiles('**/package-lock.json') }} + + - name: Install and Build 🔧 + uses: actions/setup-node@v1 + with: + node-version: '12' + - run: npm install + - run: npm run build + - run: node ./scripts/generate-sitemap.js + env: + CI: false + + - name: Update Sitemap 🕸 + uses: stefanzweifel/git-auto-commit-action@v4 + with: + ref: ${{ github.head_ref }} + file_pattern: 'public/sitemap.xml' + commit_message: Auto-updating the Sitemap! + + - name: Deploy 🚀 + if: github.ref == 'refs/heads/main' + uses: JamesIves/github-pages-deploy-action@3.6.2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: out # The folder the action should deploy. + CLEAN: true # Automatically remove deleted files from the deploy branch diff --git a/components/common/Bio/Bio.js b/components/common/Bio/Bio.js index 2c74b35..057ec36 100644 --- a/components/common/Bio/Bio.js +++ b/components/common/Bio/Bio.js @@ -1,34 +1,33 @@ import clsx from "clsx"; -import Link from 'next/link'; -import Image from 'next/image'; +import Link from 'next/link' + +import { Image } from ".."; import { getSiteMetaData } from "@utils/helpers"; export function Bio({ className }) { const { author, social } = getSiteMetaData(); return ( -
-
- Francisco Javier Arceo -

Hello there! 👋

-
-
-

I'm{' '}Francisco and this is my blog. - You can find some of my other writing on{' '}the Chaos Engineering blog. + <> +

+
+ {'Francisco +

Hello there! 👋

+
+
+

I'm{' '}Francisco and this is my blog. + You can find some of my other writing on{' '}the Chaos Engineering blog. I'm very passionate about data, code, technology, engineering, economics, finance, machine learning, digital products, and philanthropy. I'll probably write about some of those things so feel free to check back in if you're interested!


-

Want to get in touch? Feel free to contact me on{' '}Twitter.

+

Want to get in touch? Feel free to contact me on{' '}Twitter.

Thanks for stopping by my little corner of the internet! 🤓

-
+
+ ); } diff --git a/components/common/Image/Image.js b/components/common/Image/Image.js index 19dea69..680faef 100644 --- a/components/common/Image/Image.js +++ b/components/common/Image/Image.js @@ -1,15 +1,15 @@ -import Image from 'next/image'; +import "lazysizes"; -export function CustomImage({ alt, src, className }) { +export function Image({ alt, src, previewSrc, webpSrc, className }) { return ( - {alt} + + + + {alt} + ); } diff --git a/components/common/Image/index.js b/components/common/Image/index.js index 336d84c..321f81e 100644 --- a/components/common/Image/index.js +++ b/components/common/Image/index.js @@ -1 +1 @@ -export { CustomImage as Image } from "./Image"; +export * from "./Image"; diff --git a/components/common/Layout/Layout.js b/components/common/Layout/Layout.js index e61016f..dd97e47 100644 --- a/components/common/Layout/Layout.js +++ b/components/common/Layout/Layout.js @@ -4,6 +4,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import { DarkModeSwitch } from "react-toggle-dark-mode"; import { useTheme } from "next-themes"; +import { Person } from "schema-dts"; import { JsonLd } from "react-schemaorg"; import { jsonLdScriptProps } from "react-schemaorg"; import { getSiteMetaData } from "@utils/helpers"; @@ -14,12 +15,12 @@ export const Footer = () => { return ( ); @@ -28,7 +29,7 @@ export const Footer = () => { export const Footer2 = ({}) => (