Skip to content

Commit

Permalink
feat: Gatsby-Astro migration (#601)
Browse files Browse the repository at this point in the history
* feat: add initial astro config

* fix: remove cached IDE file

* feat: add CSS variables

* WIP

* WIP

* feat: add initial header

* feat: update modules

* feat: update modules

* feat: add eslint config

* feat: add eslint config

* feat: add header backdrop

* feat: add css isolation

* feat: replace CSS for GSAP animation

* feat: improved GSAP performance

* feat: add initial testimonials layout

* fix: remove duplicities

* feat: add swiper modules

* chore: add stylelint

* feat: add testimonials

* fix: folder component structure

* fix: wrong grid column positioning

* feat: add new chevrons + improved swiper modules

* feat: add intersection observer + latest articles

* feat: add intersection observer + latest articles

* fix: correct scope-enum

* asasasaq1a

* asasasaq1a

* chore: add pre-commit rules

* feat: test commit

* feat: add author and tags entities

* fix: refine timeline callback to match header styles

* feat: add latest articles section

* feat: add latest articles section

* feat: add footer

* feat: add footer

* chore: bump deps

* feat: add initial threejs globe

* feat: add custom markers + dymamic post images + view transitions

* feat: add about page

* feat: add initial featured article

* feat: add articles initial layout

* docs: add licence

* docs: add licence

* feat: add latest articles section

* chore: bump deps

* chore(deps): bump deps

* chore(deps): bump deps

* feat: add minor unit improvements

* chore(deps): bump deps

* fix: add current page for subpages

* refactor: add native underline property

* chore: bump deps

* chore(deps): bump deps

* chore(deps): bump deps

* chore(deps): add million integration

* fix: add latest articles props

* feat: add project

* feat: add initial contact

* chore(deps): bump deps

* feat: add initial contact layout

* feat: add contact form

* feat: add submit animation

* feat: add section + remove unused code

* chore: add Million lint

* chore(deps): bump deps

* feat: add contact intro

* feat: add initial article layout

* feat: improve article layout

* chore(deps): bump deps

* chore(deps): bump deps + replace react asset

* feat: add related articles

* chore(deps): bump deps

* chore(deps): bump deps

* docs: update todo

* feat: add scroll-driven animation in header comp

* chore(deps): bump deps

* chore(deps): cloudflare migration

* docs: update todo

* chore(deps): bump deps

* feat: add endpoint to fetch contact

* feat: add Firebase integration

* chore: biome migration

* style: biome migration

* style: biome migration

* test biome

* test biome

* test biome

* test biome

* test biome

* Keep calm and commit

* Keep calm and commit

* foo: this will fail

* foo: this will fail

* test

* test

* chore: add biome integration

* chore: update rules

* style: rename firestore db

* fix: email header

* feat: add initial responsive header

* feat: add initial responsive header

* perf: get related article in SSR

* perf: get related article in SSR

* perf: get related article in SSR

* feat: add spinner

* feat: add reset form button

* chore: bump deps

* fix: build errors

* fix: ssr build

* fix: add external ssr lib

* chore: bump deps

* feat: add responsive home layout

* feat: add more responsivness to menu

* feat: add responsive improvements

* docs: update funding

* chore: renovate ci

* chore: bump deps

* feat: improve responsiveness

* chore: bump deps

* feat: minor CSS improvements

* feat: add responsiveness to about page

* fix: remove global variable

* feat: add responsiveness in about page

* feat: add responsiveness in about page

* feat: add about responsiveness

* feat: add about responsive

* feat: add articles responsive

* feat: add /articles responsive

* feat: add contact responsive

* feat: improve testimonials layout

* feat: migrate to Astro actions

* feat: add slider for latest articles

* feat: add breadcrumbs

* feat: improve breadcrumbs

* feat: add breadcrumbs

* chore(deps): bump deps

* chore(deps): bump deps

* feat: add breadcrumbs

* chore(deps): bump deps

* feat: add scroll to top

* fix: type imports

* feat: style improvements

* feat: style improvements

* feat: add theme toggle

* feat: add dark-mode support

* fix: fix small font issue

* fix: header empty fr

* feat: add clsx

* fix: fix theme toggle

* feat: add keyboard support

* feat: initial cookie set

* fix: rehydration on vanilla cookie

* feat: major changes in theme

* feat: add script improvements

* feat: add consent mode

* fix: remove unused rules

* fix: remove unused rules

* feat: add consent mode support

* feat: add microdata

* feat: add DTO

* feat: improved animations and transitions

* style: biome eof

* feat: minor CSS improvements

* feat: add major SEO improvements + GDPR compliance

* fix: env vars

* feat: add initial tag DTO

* fix: persist theme on view transitions

* style: improved types

* feat: add microdata

* feat: remove context provider

* feat: add common card compponent

* feat: add image management in DTO

* feat: add featured image in DTO

* feat: add featured image in DTO

* feat: add generic slider

* feat: improved DTOs

* feat: add more DTO logic

* feat: add articles by tag in DTO

* style: apply biome

* style: improved types

* chore: fix build method

* chore: fix build method

* feat: add tag page

* style: changed articleDTO signature

* feat: add composition

* fix: types

* fix: import

* chore(deps): bump deps

* chore(deps): bump deps

* feat: transition to react component

* feat: add Contentful migration DTOs

* feat: add Image component + refactor images in DTOs

* perf: add filtered queries in DTOs

* feat: add testmimonials CMS implementation

* feat: add common method to generate DTO images

* fix: small layout issues

* feat: add cities and map CMS integration

* perf: improved performance in tags request

* feat: add new module folder structure

* feat: remove nesting folder

* feat: remove unnecessary prop lifting

* feat: add related article card

* style: add biome parser

* chore(deps): remove wrangler

* feat: refine folder structure

* feat: add reading time to DTO

* chore(deps): bump deps

* fix: small fixes

* fix: build errors

* chore(deps): bump deps

* fix: count tags

* feat: add screaming arch

* feat: add screaming arch

* feat: add reading progress-bar

* feat: add env schema

* feat: seo improvements

* feat: seo improvements

* fix: x seo

* fix: seo improvements

* fix: seo improvements

* chore: bump deps

* feat: remove duplicate components

* fix: rename component

* feat: add images richtext display

* style: minor var refactor

* style: quotation

* feat: add 404 and 5xx error handling

* fix: types check

* chore: bump node version

* feat: minor type improvements

* feat: add native content layer

* fix: tags collection types

* feat: initial vitest support

* feat: initial vitest support

* ASASA: should failAS

* chore: prepared husky v10 support

* perf: improved pre-commit hook

---------

Co-authored-by: Ferran Buireu <[email protected]>
  • Loading branch information
fbuireu and fbuireu authored Aug 24, 2024
1 parent 1a8c6d9 commit 0f402a2
Show file tree
Hide file tree
Showing 585 changed files with 46,246 additions and 28,806 deletions.
23 changes: 23 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
SITE_URL=https://biancafiore.me
BIANCA_EMAIL=[email protected]
TWITTER_HANDLE=[email protected]
GOOGLE_ANALYTICS_ID=YOUR_PUBLIC_GOOGLE_ANALYTICS_ID
GOOGLE_TAG_MANAGER_ID=YOUR_PUBLIC_GOOGLE_TAG_MANAGER_ID
GOOGLE_RECAPTCHA_SITE_KEY=YOUR_PUBLIC_GOOGLE_RECAPTCHA_SITE_KEY
GOOGLE_RECAPTCHA_SECRET_KEY=YOUR_GOOGLE_RECAPTCHA_SECRET_KEY
FIREBASE_PRIVATE_KEY_ID=YOUR_FIREBASE_PRIVATE_KEY_ID
FIREBASE_PRIVATE_KEY=YOUR_FIREBASE_PRIVATE_KEY
FIREBASE_PROJECT_ID=YOUR_FIREBASE_PROJECT_ID
FIREBASE_CLIENT_EMAIL=YOUR_FIREBASE_CLIENT_EMAIL
FIREBASE_CLIENT_ID=YOUR_FIREBASE_CLIENT_ID
FIREBASE_AUTH_URI=YOUR_FIREBASE_AUTH_URI
FIREBASE_TOKEN_URI=YOUR_FIREBASE_TOKEN_URI
FIREBASE_AUTH_CERT_URL=YOUR_FIREBASE_AUTH_CERT_URL
FIREBASE_CLIENT_CERT_URL=YOUR_FIREBASE_CLIENT_CERT_URL
RESEND_API_KEY=YOUR_RESEND_API_KEY
CONTENTFUL_SPACE_ID=YOUR_CONTENTFUL_SPACE_ID
CONTENTFUL_DELIVERY_TOKEN=YOUR_CONTENTFUL_DELIVERY_TOKEN
CONTENTFUL_PREVIEW_TOKEN=YOUR_CONTENTFUL_PREVIEW_TOKEN
CONTENTFUL_SIGNIN_TOKEN=YOUR_CONTENTFUL_SIGNIN_TOKEN
ALGOLIA_API_KEY=YOUR_ALGOLIA_API_KEY
ALGOLIA_APP_ID=YOUR_ALGOLIA_APP_ID
16 changes: 8 additions & 8 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
coverage
bower_components
build/Release
node_modules/
jspm_packages/
build/
.cache/
public/
node_modules
dist
/scripts/*
yarn.lock
.eslintrc.cjs
.netlify
commitlint.config.js
prettier.config.js
89 changes: 0 additions & 89 deletions .eslintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
github: [fbuireu]

patreon: fbuireu
ko_fi: ferranbuireu
8 changes: 0 additions & 8 deletions .github/dependabot.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"labels": ["dependencies", "renovate", "bot"],
"schedule": ["every weekend"]
}
67 changes: 33 additions & 34 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
name: CodeQL Analysis
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'JavaScript', 'TypeScript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
queries: security-extended, security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['JavaScript', 'TypeScript']
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
queries: security-extended, security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
16 changes: 8 additions & 8 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Dependency Review
on: [pull_request]
permissions:
contents: read
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Dependency Review
uses: actions/dependency-review-action@v1
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Dependency Review
uses: actions/dependency-review-action@v1
16 changes: 0 additions & 16 deletions .github/workflows/diagram.yml

This file was deleted.

45 changes: 13 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,66 +1,47 @@
# OS files
.DS_Store

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# nyc test coverage
.nyc_output/

# node-waf configuration
.lock-wscript

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
pnpm-debug.log*

# eslint cache
.eslintcache

# REPL history
.node_repl_history

# Coverage directory used by tools like istanbul
# Coverage directory used by testing tools
coverage/

# Dependency directories
node_modules/
jspm_packages/

# npm
# Dependency managers
.npm
.yarn
*.tgz

# Yarn
yarn-error.log
.yarn-integrity
.pnp/
.pnp.js
yarn-error.log

# Environment variables files
.env*
!.env.example

# Gatsby files
# Astro files
.cache
public

# Compiled binary addons
build/Release
.astro/
dist/

# Local Netlify folder
.netlify/
# Million files
.million/

# IDE/Text editor
.editorconfig
.idea/
.vscode/
.fleet/
.history/
.history/
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn commitlint --edit $1
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn lint-staged
git add .
5 changes: 0 additions & 5 deletions .huskyrc

This file was deleted.

6 changes: 6 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"src/**/*.{ts,tsx,css,astro}": ["yarn format:all:changed"],
"src/**/*.{ts,tsx,astro}": ["yarn lint:ts:changed"],
"src/**/*.css": ["yarn lint:styles"],
"src/**/*.{test,spec}.{ts,tsx}": ["yarn test --bail --findRelatedTests"]
}
4 changes: 0 additions & 4 deletions .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.12.1
v22.6.0
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

Loading

0 comments on commit 0f402a2

Please sign in to comment.