-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from franciscojavierarceo/revert-13-devin/1738…
…728162-update-link-colors Revert "feat: update link colors to #2178DD"
- Loading branch information
Showing
16 changed files
with
16,142 additions
and
13,792 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<section style={{fontSize: '1.2rem', lineHeight: 1.5, textAlign: 'justify'}}> | ||
<div className={clsx(`flex items-center`, className)}> | ||
<Image | ||
src="/profile.png" | ||
width={96} | ||
height={96} | ||
style={{borderRadius: '9999px'}} | ||
alt="Francisco Javier Arceo" | ||
priority={true} | ||
unoptimized={true} | ||
/> | ||
<h2 style={{fontSize: '2.0rem', marginLeft: '2rem', textAlign: 'center'}}>Hello there! 👋</h2> | ||
</div> | ||
<div style={{paddingBottom: 20}}> | ||
<p>I'm{' '}<Link href="/about-me" className="text-link-blue">Francisco</Link> and this is my blog. | ||
You can find some of my other writing on{' '}<a href="https://chaosengineering.substack.com/" className="text-link-blue">the Chaos Engineering blog</a>. | ||
<> | ||
<section style={{fontSize: '1.2rem', lineHeight: 1.5,textAlign: 'justify'}}> | ||
<div className={clsx(`flex items-center`, className)}> | ||
<img | ||
src={require("../../../content/assets/profile.png")} | ||
style={{width: '6rem', borderRadius: '9999px'}} | ||
alt={'Francisco Javier Arceo'} | ||
/> | ||
<h2 style={{fontSize: '2.0rem', marginLeft: '2rem', textAlign: 'center'}}>Hello there! 👋</h2> | ||
</div> | ||
<div style={{paddingBottom: 20,}}> | ||
<p>I'm{' '}<a href="/about-me">Francisco</a> and this is my blog. | ||
You can find some of my other writing on{' '}<a href="https://chaosengineering.substack.com/">the Chaos Engineering blog</a>. | ||
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! | ||
</p><br/> | ||
<p>Want to get in touch? Feel free to contact me on{' '}<a href='https://twitter.com/franciscojarceo' className="text-link-blue">Twitter</a>.</p> | ||
<p>Want to get in touch? Feel free to contact me on{' '}<a href='https://twitter.com/franciscojarceo'>Twitter</a>.</p> | ||
<p>Thanks for stopping by my little corner of the internet! 🤓</p> | ||
</div> | ||
</div> | ||
</section> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<Image | ||
className={className} | ||
alt={alt} | ||
src={src} | ||
width={800} | ||
height={400} | ||
priority={true} | ||
unoptimized={true} | ||
/> | ||
<picture className={className}> | ||
<source type="image/webp" data-srcset={webpSrc} /> | ||
<source type="image/png" data-srcset={src} /> | ||
<img | ||
className={`lazyload blur ${className}`} | ||
alt={alt} | ||
src={previewSrc} | ||
/> | ||
</picture> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { CustomImage as Image } from "./Image"; | ||
export * from "./Image"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
output: 'export', | ||
images: { | ||
unoptimized: true, | ||
}, | ||
basePath: '', | ||
assetPrefix: '', | ||
trailingSlash: true, | ||
}; | ||
const optimizedImages = require("next-optimized-images"); | ||
|
||
module.exports = nextConfig; | ||
module.exports = optimizedImages({ | ||
async headers() { | ||
return [ | ||
{ | ||
source: '/sitemap.xml', | ||
headers: [ | ||
{ | ||
key: 'Content-type', | ||
value: 'application/xml', | ||
} | ||
], | ||
}, | ||
] | ||
}, | ||
}); |
Oops, something went wrong.