Compare commits
4 Commits
1dd74a3861
...
v1.2.4
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d0a94d288 | |||
| 3568c13941 | |||
| d538d7b9ec | |||
| 8c08b552cf |
@@ -10,17 +10,31 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v3
|
uses: pnpm/action-setup@v3
|
||||||
with:
|
with:
|
||||||
version: 10
|
version: 10
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
|
- name: Get pnpm store directory
|
||||||
|
id: pnpm-cache
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Setup pnpm cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
- name: 🔐 Configure Private Registry
|
- name: 🔐 Configure Private Registry
|
||||||
run: |
|
run: |
|
||||||
REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}"
|
REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}"
|
||||||
|
|||||||
@@ -154,14 +154,26 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v3
|
uses: pnpm/action-setup@v3
|
||||||
with:
|
with:
|
||||||
version: 10
|
version: 10
|
||||||
|
- name: Get pnpm store directory
|
||||||
|
id: pnpm-cache
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
|
||||||
|
- name: Setup pnpm cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
- name: 🔐 Registry Auth
|
- name: 🔐 Registry Auth
|
||||||
run: |
|
run: |
|
||||||
echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc
|
echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc
|
||||||
@@ -180,7 +192,7 @@ jobs:
|
|||||||
# ──────────────────────────────────────────────────────────────────────────────
|
# ──────────────────────────────────────────────────────────────────────────────
|
||||||
build:
|
build:
|
||||||
name: 🏗️ Build
|
name: 🏗️ Build
|
||||||
needs: [prepare, qa]
|
needs: prepare
|
||||||
if: needs.prepare.outputs.target != 'skip'
|
if: needs.prepare.outputs.target != 'skip'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
@@ -386,14 +398,26 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v3
|
uses: pnpm/action-setup@v3
|
||||||
with:
|
with:
|
||||||
version: 10
|
version: 10
|
||||||
|
- name: Get pnpm store directory
|
||||||
|
id: pnpm-cache
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
|
||||||
|
- name: Setup pnpm cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
- name: 🔐 Registry Auth
|
- name: 🔐 Registry Auth
|
||||||
run: |
|
run: |
|
||||||
echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc
|
echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc
|
||||||
@@ -418,14 +442,26 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v3
|
uses: pnpm/action-setup@v3
|
||||||
with:
|
with:
|
||||||
version: 10
|
version: 10
|
||||||
|
- name: Get pnpm store directory
|
||||||
|
id: pnpm-cache
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
|
||||||
|
- name: Setup pnpm cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
- name: 🔐 Registry Auth
|
- name: 🔐 Registry Auth
|
||||||
run: |
|
run: |
|
||||||
echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc
|
echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { MDXRemote } from 'next-mdx-remote/rsc';
|
|||||||
import { getPostBySlug, getAdjacentPosts, getReadingTime, getHeadings } from '@/lib/blog';
|
import { getPostBySlug, getAdjacentPosts, getReadingTime, getHeadings } from '@/lib/blog';
|
||||||
import { Metadata } from 'next';
|
import { Metadata } from 'next';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import Image from 'next/image';
|
||||||
import PostNavigation from '@/components/blog/PostNavigation';
|
import PostNavigation from '@/components/blog/PostNavigation';
|
||||||
import PowerCTA from '@/components/blog/PowerCTA';
|
import PowerCTA from '@/components/blog/PowerCTA';
|
||||||
import TableOfContents from '@/components/blog/TableOfContents';
|
import TableOfContents from '@/components/blog/TableOfContents';
|
||||||
@@ -77,10 +78,16 @@ export default async function BlogPost({ params }: BlogPostProps) {
|
|||||||
{/* Featured Image Header */}
|
{/* Featured Image Header */}
|
||||||
{post.frontmatter.featuredImage ? (
|
{post.frontmatter.featuredImage ? (
|
||||||
<div className="relative w-full h-[70vh] min-h-[500px] overflow-hidden group">
|
<div className="relative w-full h-[70vh] min-h-[500px] overflow-hidden group">
|
||||||
<div
|
<div className="absolute inset-0 transition-transform duration-[3s] ease-out scale-110 group-hover:scale-100">
|
||||||
className="absolute inset-0 bg-cover bg-center transition-transform duration-[3s] ease-out scale-110 group-hover:scale-100"
|
<Image
|
||||||
style={{ backgroundImage: `url(${post.frontmatter.featuredImage})` }}
|
src={`${post.frontmatter.featuredImage}?gravity=obj:face`}
|
||||||
/>
|
alt={post.frontmatter.title}
|
||||||
|
fill
|
||||||
|
priority
|
||||||
|
className="object-cover"
|
||||||
|
sizes="100vw"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div className="absolute inset-0 bg-gradient-to-t from-neutral-dark via-neutral-dark/40 to-transparent" />
|
<div className="absolute inset-0 bg-gradient-to-t from-neutral-dark via-neutral-dark/40 to-transparent" />
|
||||||
|
|
||||||
{/* Title overlay on image */}
|
{/* Title overlay on image */}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export default async function BlogIndex({ params }: BlogIndexProps) {
|
|||||||
{featuredPost && featuredPost.frontmatter.featuredImage && (
|
{featuredPost && featuredPost.frontmatter.featuredImage && (
|
||||||
<>
|
<>
|
||||||
<Image
|
<Image
|
||||||
src={featuredPost.frontmatter.featuredImage}
|
src={`${featuredPost.frontmatter.featuredImage}?gravity=obj:face`}
|
||||||
alt={featuredPost.frontmatter.title}
|
alt={featuredPost.frontmatter.title}
|
||||||
fill
|
fill
|
||||||
className="absolute inset-0 w-full h-full object-cover scale-105 animate-slow-zoom opacity-40 md:opacity-60"
|
className="absolute inset-0 w-full h-full object-cover scale-105 animate-slow-zoom opacity-40 md:opacity-60"
|
||||||
@@ -160,7 +160,7 @@ export default async function BlogIndex({ params }: BlogIndexProps) {
|
|||||||
{post.frontmatter.featuredImage && (
|
{post.frontmatter.featuredImage && (
|
||||||
<div className="relative h-48 md:h-72 overflow-hidden">
|
<div className="relative h-48 md:h-72 overflow-hidden">
|
||||||
<Image
|
<Image
|
||||||
src={post.frontmatter.featuredImage}
|
src={`${post.frontmatter.featuredImage}?gravity=obj:face`}
|
||||||
alt={post.frontmatter.title}
|
alt={post.frontmatter.title}
|
||||||
fill
|
fill
|
||||||
className="w-full h-full object-cover transition-transform duration-1000 group-hover:scale-110"
|
className="w-full h-full object-cover transition-transform duration-1000 group-hover:scale-110"
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ export default function HeroIllustration() {
|
|||||||
const viewBox = isMobile ? '400 0 1000 1100' : '-400 -200 1800 1100';
|
const viewBox = isMobile ? '400 0 1000 1100' : '-400 -200 1800 1100';
|
||||||
const scale = isMobile ? 1.44 : 1;
|
const scale = isMobile ? 1.44 : 1;
|
||||||
const opacity = isMobile ? 0.6 : 0.85;
|
const opacity = isMobile ? 0.6 : 0.85;
|
||||||
|
const strokeMultiplier = isMobile ? 2.5 : 1;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="absolute inset-0 z-0 overflow-visible bg-primary w-full h-full">
|
<div className="absolute inset-0 z-0 overflow-visible bg-primary w-full h-full">
|
||||||
@@ -184,7 +185,7 @@ export default function HeroIllustration() {
|
|||||||
x2={end.x}
|
x2={end.x}
|
||||||
y2={end.y}
|
y2={end.y}
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1"
|
strokeWidth={1 * strokeMultiplier}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
@@ -199,14 +200,14 @@ export default function HeroIllustration() {
|
|||||||
x2={end.x}
|
x2={end.x}
|
||||||
y2={end.y}
|
y2={end.y}
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1"
|
strokeWidth={1 * strokeMultiplier}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
{/* POWER LINES */}
|
{/* POWER LINES */}
|
||||||
<g stroke="white" strokeWidth="2" strokeOpacity="0.2">
|
<g stroke="white" strokeWidth={2 * strokeMultiplier} strokeOpacity="0.2">
|
||||||
{POWER_LINES.map((line, i) => {
|
{POWER_LINES.map((line, i) => {
|
||||||
const from = gridToScreen(line.from.col, line.from.row);
|
const from = gridToScreen(line.from.col, line.from.row);
|
||||||
const to = gridToScreen(line.to.col, line.to.row);
|
const to = gridToScreen(line.to.col, line.to.row);
|
||||||
@@ -230,7 +231,7 @@ export default function HeroIllustration() {
|
|||||||
x2={to.x}
|
x2={to.x}
|
||||||
y2={to.y}
|
y2={to.y}
|
||||||
stroke="url(#energy-pulse)"
|
stroke="url(#energy-pulse)"
|
||||||
strokeWidth="3"
|
strokeWidth={3 * strokeMultiplier}
|
||||||
strokeLinecap="round"
|
strokeLinecap="round"
|
||||||
style={{
|
style={{
|
||||||
strokeDasharray: `${length * 0.2} ${length * 0.8}`,
|
strokeDasharray: `${length * 0.2} ${length * 0.8}`,
|
||||||
@@ -252,7 +253,7 @@ export default function HeroIllustration() {
|
|||||||
fill="white"
|
fill="white"
|
||||||
fillOpacity="0.05"
|
fillOpacity="0.05"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1"
|
strokeWidth={1 * strokeMultiplier}
|
||||||
strokeOpacity="0.2"
|
strokeOpacity="0.2"
|
||||||
/>
|
/>
|
||||||
<path
|
<path
|
||||||
@@ -260,7 +261,7 @@ export default function HeroIllustration() {
|
|||||||
fill="white"
|
fill="white"
|
||||||
fillOpacity="0.1"
|
fillOpacity="0.1"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1"
|
strokeWidth={1 * strokeMultiplier}
|
||||||
strokeOpacity="0.3"
|
strokeOpacity="0.3"
|
||||||
/>
|
/>
|
||||||
<circle
|
<circle
|
||||||
@@ -285,7 +286,7 @@ export default function HeroIllustration() {
|
|||||||
x2="0"
|
x2="0"
|
||||||
y2="-60"
|
y2="-60"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="2"
|
strokeWidth={2 * strokeMultiplier}
|
||||||
strokeOpacity="0.3"
|
strokeOpacity="0.3"
|
||||||
/>
|
/>
|
||||||
<g transform="translate(0, -60)">
|
<g transform="translate(0, -60)">
|
||||||
@@ -303,7 +304,7 @@ export default function HeroIllustration() {
|
|||||||
x2="0"
|
x2="0"
|
||||||
y2="-30"
|
y2="-30"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1.5"
|
strokeWidth={1.5 * strokeMultiplier}
|
||||||
strokeOpacity="0.4"
|
strokeOpacity="0.4"
|
||||||
transform={`rotate(${angle})`}
|
transform={`rotate(${angle})`}
|
||||||
/>
|
/>
|
||||||
@@ -325,7 +326,7 @@ export default function HeroIllustration() {
|
|||||||
fill="white"
|
fill="white"
|
||||||
fillOpacity="0.05"
|
fillOpacity="0.05"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1"
|
strokeWidth={1 * strokeMultiplier}
|
||||||
strokeOpacity="0.2"
|
strokeOpacity="0.2"
|
||||||
/>
|
/>
|
||||||
<path
|
<path
|
||||||
@@ -337,7 +338,7 @@ export default function HeroIllustration() {
|
|||||||
fill="white"
|
fill="white"
|
||||||
fillOpacity="0.08"
|
fillOpacity="0.08"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1"
|
strokeWidth={1 * strokeMultiplier}
|
||||||
strokeOpacity="0.3"
|
strokeOpacity="0.3"
|
||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
@@ -352,7 +353,7 @@ export default function HeroIllustration() {
|
|||||||
<path
|
<path
|
||||||
d="M -6 0 L -3 -45 M 6 0 L 3 -45"
|
d="M -6 0 L -3 -45 M 6 0 L 3 -45"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1.5"
|
strokeWidth={1.5 * strokeMultiplier}
|
||||||
strokeOpacity="0.3"
|
strokeOpacity="0.3"
|
||||||
/>
|
/>
|
||||||
<line
|
<line
|
||||||
@@ -361,7 +362,7 @@ export default function HeroIllustration() {
|
|||||||
x2="12"
|
x2="12"
|
||||||
y2="-40"
|
y2="-40"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1"
|
strokeWidth={1 * strokeMultiplier}
|
||||||
strokeOpacity="0.2"
|
strokeOpacity="0.2"
|
||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
@@ -380,7 +381,7 @@ export default function HeroIllustration() {
|
|||||||
fill="white"
|
fill="white"
|
||||||
fillOpacity="0.08"
|
fillOpacity="0.08"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1"
|
strokeWidth={1 * strokeMultiplier}
|
||||||
strokeOpacity="0.2"
|
strokeOpacity="0.2"
|
||||||
/>
|
/>
|
||||||
<path
|
<path
|
||||||
@@ -388,7 +389,7 @@ export default function HeroIllustration() {
|
|||||||
fill="white"
|
fill="white"
|
||||||
fillOpacity="0.05"
|
fillOpacity="0.05"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="1"
|
strokeWidth={1 * strokeMultiplier}
|
||||||
strokeOpacity="0.15"
|
strokeOpacity="0.15"
|
||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ const booleanSchema = z.preprocess((val) => {
|
|||||||
const envExtension = {
|
const envExtension = {
|
||||||
// Project specific overrides or additions
|
// Project specific overrides or additions
|
||||||
AUTH_COOKIE_NAME: z.string().default('klz_gatekeeper_session'),
|
AUTH_COOKIE_NAME: z.string().default('klz_gatekeeper_session'),
|
||||||
|
TARGET: z.string().optional(),
|
||||||
|
NEXT_PUBLIC_TARGET: z.string().optional(),
|
||||||
|
|
||||||
// Gatekeeper specifics not in base
|
// Gatekeeper specifics not in base
|
||||||
GATEKEEPER_URL: z.string().url().default('http://gatekeeper:3000'),
|
GATEKEEPER_URL: z.string().url().default('http://gatekeeper:3000'),
|
||||||
|
|||||||
@@ -23,11 +23,28 @@ export default function imgproxyLoader({
|
|||||||
return src;
|
return src;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if src contains custom gravity query parameter
|
||||||
|
let gravity = 'sm'; // Use smart gravity (content-aware) by default
|
||||||
|
let cleanSrc = src;
|
||||||
|
|
||||||
|
try {
|
||||||
|
// Dummy base needed for relative URLs
|
||||||
|
const url = new URL(src, 'http://localhost');
|
||||||
|
const customGravity = url.searchParams.get('gravity');
|
||||||
|
if (customGravity) {
|
||||||
|
gravity = customGravity;
|
||||||
|
url.searchParams.delete('gravity');
|
||||||
|
cleanSrc = src.startsWith('http') ? url.href : url.pathname + url.search;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
// Fallback if parsing fails
|
||||||
|
}
|
||||||
|
|
||||||
// We use the width provided by Next.js for responsive images
|
// We use the width provided by Next.js for responsive images
|
||||||
// Height is set to 0 to maintain aspect ratio
|
// Height is set to 0 to maintain aspect ratio
|
||||||
return getImgproxyUrl(src, {
|
return getImgproxyUrl(cleanSrc, {
|
||||||
width,
|
width,
|
||||||
resizing_type: 'fit',
|
resizing_type: 'fit',
|
||||||
gravity: 'sm', // Use smart gravity (content-aware) instead of face detection (requires ML)
|
gravity,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user