Compare commits
31 Commits
32e621df14
...
production
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f7ea8ca4d | ||
|
|
c00fe6b06c | ||
|
|
dcaa1f8c3c | ||
|
|
c49493bb44 | ||
|
|
c9cd2d734d | ||
|
|
ef72f5fc58 | ||
|
|
8b440dd60b | ||
|
|
9a55dc7f81 | ||
|
|
3ac7c7a5b3 | ||
|
|
96d7ae5747 | ||
|
|
f7b7eaeaff | ||
|
|
9c7e564f6f | ||
|
|
3e83dcfa15 | ||
|
|
b0ec4fd4b7 | ||
|
|
e0e0551a83 | ||
|
|
97c600df14 | ||
|
|
6c47cdbd83 | ||
|
|
bd6007f299 | ||
|
|
689cfa18cf | ||
|
|
4029cd660d | ||
|
|
b754af20e6 | ||
|
|
3f31d6f5bb | ||
|
|
8eff9106f5 | ||
|
|
af30449071 | ||
|
|
98c3ebb96c | ||
|
|
9e2040cefc | ||
|
|
719071345e | ||
|
|
efafd38b1a | ||
|
|
5c70b26508 | ||
|
|
ede591c89e | ||
|
|
2defd7a4a9 |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,5 +1,9 @@
|
|||||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
# Local tooling
|
||||||
|
.claude/
|
||||||
|
._*
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
/node_modules
|
/node_modules
|
||||||
/.pnp
|
/.pnp
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ import { getBookReviews } from '@/lib/directus';
|
|||||||
import { checkRateLimit, getClientIp } from '@/lib/auth';
|
import { checkRateLimit, getClientIp } from '@/lib/auth';
|
||||||
|
|
||||||
export const runtime = 'nodejs';
|
export const runtime = 'nodejs';
|
||||||
export const dynamic = 'force-dynamic';
|
export const revalidate = 300;
|
||||||
|
|
||||||
|
const CACHE_TTL = 300; // 5 minutes
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GET /api/book-reviews
|
* GET /api/book-reviews
|
||||||
@@ -25,31 +27,29 @@ export async function GET(request: NextRequest) {
|
|||||||
const locale = searchParams.get('locale') || 'en';
|
const locale = searchParams.get('locale') || 'en';
|
||||||
|
|
||||||
const reviews = await getBookReviews(locale);
|
const reviews = await getBookReviews(locale);
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
console.log(`[API] Book Reviews geladen für ${locale}:`, reviews?.length || 0);
|
console.log(`[API] Book Reviews geladen für ${locale}:`, reviews?.length || 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reviews && reviews.length > 0) {
|
if (reviews && reviews.length > 0) {
|
||||||
return NextResponse.json({
|
return NextResponse.json(
|
||||||
bookReviews: reviews,
|
{ bookReviews: reviews, source: 'directus' },
|
||||||
source: 'directus'
|
{ headers: { 'Cache-Control': `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
});
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NextResponse.json({
|
return NextResponse.json(
|
||||||
bookReviews: null,
|
{ bookReviews: null, source: 'fallback' },
|
||||||
source: 'fallback'
|
{ headers: { 'Cache-Control': `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
});
|
);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error loading book reviews:', error);
|
if (process.env.NODE_ENV === 'development') {
|
||||||
|
console.error('Error loading book reviews:', error);
|
||||||
|
}
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{
|
{ bookReviews: null, error: 'Failed to load book reviews', source: 'error' },
|
||||||
bookReviews: null,
|
|
||||||
error: 'Failed to load book reviews',
|
|
||||||
source: 'error'
|
|
||||||
},
|
|
||||||
{ status: 500 }
|
{ status: 500 }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import { NextRequest, NextResponse } from "next/server";
|
|||||||
import { getContentByKey } from "@/lib/content";
|
import { getContentByKey } from "@/lib/content";
|
||||||
import { getContentPage } from "@/lib/directus";
|
import { getContentPage } from "@/lib/directus";
|
||||||
|
|
||||||
|
const CACHE_TTL = 300; // 5 minutes
|
||||||
|
|
||||||
export async function GET(request: NextRequest) {
|
export async function GET(request: NextRequest) {
|
||||||
const { searchParams } = new URL(request.url);
|
const { searchParams } = new URL(request.url);
|
||||||
const key = searchParams.get("key");
|
const key = searchParams.get("key");
|
||||||
@@ -15,21 +17,32 @@ export async function GET(request: NextRequest) {
|
|||||||
// 1) Try Directus first
|
// 1) Try Directus first
|
||||||
const directusPage = await getContentPage(key, locale);
|
const directusPage = await getContentPage(key, locale);
|
||||||
if (directusPage) {
|
if (directusPage) {
|
||||||
return NextResponse.json({
|
return NextResponse.json(
|
||||||
content: {
|
{
|
||||||
title: directusPage.title,
|
content: {
|
||||||
slug: directusPage.slug,
|
title: directusPage.title,
|
||||||
locale: directusPage.locale || locale,
|
slug: directusPage.slug,
|
||||||
content: directusPage.content,
|
locale: directusPage.locale || locale,
|
||||||
|
content: directusPage.content,
|
||||||
|
},
|
||||||
|
source: "directus",
|
||||||
},
|
},
|
||||||
source: "directus",
|
{ headers: { "Cache-Control": `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
});
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2) Fallback: PostgreSQL
|
// 2) Fallback: PostgreSQL
|
||||||
const translation = await getContentByKey({ key, locale });
|
const translation = await getContentByKey({ key, locale });
|
||||||
if (!translation) return NextResponse.json({ content: null });
|
if (!translation) {
|
||||||
return NextResponse.json({ content: translation, source: "postgresql" });
|
return NextResponse.json(
|
||||||
|
{ content: null },
|
||||||
|
{ headers: { "Cache-Control": `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return NextResponse.json(
|
||||||
|
{ content: translation, source: "postgresql" },
|
||||||
|
{ headers: { "Cache-Control": `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// If DB isn't migrated/available, fail soft so the UI can fall back to next-intl strings.
|
// If DB isn't migrated/available, fail soft so the UI can fall back to next-intl strings.
|
||||||
if (process.env.NODE_ENV === "development") {
|
if (process.env.NODE_ENV === "development") {
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ import { getHobbies } from '@/lib/directus';
|
|||||||
import { checkRateLimit, getClientIp } from '@/lib/auth';
|
import { checkRateLimit, getClientIp } from '@/lib/auth';
|
||||||
|
|
||||||
export const runtime = 'nodejs';
|
export const runtime = 'nodejs';
|
||||||
export const dynamic = 'force-dynamic';
|
export const revalidate = 300;
|
||||||
|
|
||||||
|
const CACHE_TTL = 300; // 5 minutes
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GET /api/hobbies
|
* GET /api/hobbies
|
||||||
@@ -28,26 +30,24 @@ export async function GET(request: NextRequest) {
|
|||||||
const hobbies = await getHobbies(locale);
|
const hobbies = await getHobbies(locale);
|
||||||
|
|
||||||
if (hobbies && hobbies.length > 0) {
|
if (hobbies && hobbies.length > 0) {
|
||||||
return NextResponse.json({
|
return NextResponse.json(
|
||||||
hobbies,
|
{ hobbies, source: 'directus' },
|
||||||
source: 'directus'
|
{ headers: { 'Cache-Control': `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
});
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback: return empty (component will use hardcoded fallback)
|
// Fallback: return empty (component will use hardcoded fallback)
|
||||||
return NextResponse.json({
|
return NextResponse.json(
|
||||||
hobbies: null,
|
{ hobbies: null, source: 'fallback' },
|
||||||
source: 'fallback'
|
{ headers: { 'Cache-Control': `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
});
|
);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error loading hobbies:', error);
|
if (process.env.NODE_ENV === 'development') {
|
||||||
|
console.error('Error loading hobbies:', error);
|
||||||
|
}
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{
|
{ hobbies: null, error: 'Failed to load hobbies', source: 'error' },
|
||||||
hobbies: null,
|
|
||||||
error: 'Failed to load hobbies',
|
|
||||||
source: 'error'
|
|
||||||
},
|
|
||||||
{ status: 500 }
|
{ status: 500 }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,18 @@
|
|||||||
import { NextRequest, NextResponse } from "next/server";
|
import { NextRequest, NextResponse } from "next/server";
|
||||||
import { getMessages } from "@/lib/directus";
|
import { getMessages } from "@/lib/directus";
|
||||||
|
|
||||||
|
const CACHE_TTL = 300; // 5 minutes
|
||||||
|
|
||||||
export async function GET(request: NextRequest) {
|
export async function GET(request: NextRequest) {
|
||||||
const { searchParams } = new URL(request.url);
|
const { searchParams } = new URL(request.url);
|
||||||
const locale = searchParams.get("locale") || "en";
|
const locale = searchParams.get("locale") || "en";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const messages = await getMessages(locale);
|
const messages = await getMessages(locale);
|
||||||
return NextResponse.json({ messages });
|
return NextResponse.json(
|
||||||
|
{ messages },
|
||||||
|
{ headers: { "Cache-Control": `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
|
);
|
||||||
} catch {
|
} catch {
|
||||||
return NextResponse.json({ messages: {} }, { status: 500 });
|
return NextResponse.json({ messages: {} }, { status: 500 });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import { NextRequest, NextResponse } from 'next/server';
|
import { NextRequest, NextResponse } from 'next/server';
|
||||||
import { getSnippets } from '@/lib/directus';
|
import { getSnippets } from '@/lib/directus';
|
||||||
|
|
||||||
|
const CACHE_TTL = 300; // 5 minutes
|
||||||
|
|
||||||
export async function GET(request: NextRequest) {
|
export async function GET(request: NextRequest) {
|
||||||
try {
|
try {
|
||||||
const { searchParams } = new URL(request.url);
|
const { searchParams } = new URL(request.url);
|
||||||
@@ -9,9 +11,10 @@ export async function GET(request: NextRequest) {
|
|||||||
|
|
||||||
const snippets = await getSnippets(limit, featured);
|
const snippets = await getSnippets(limit, featured);
|
||||||
|
|
||||||
return NextResponse.json({
|
return NextResponse.json(
|
||||||
snippets: snippets || []
|
{ snippets: snippets || [] },
|
||||||
});
|
{ headers: { 'Cache-Control': `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
|
);
|
||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
return NextResponse.json({ error: 'Failed to fetch snippets' }, { status: 500 });
|
return NextResponse.json({ error: 'Failed to fetch snippets' }, { status: 500 });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,13 +3,15 @@ import { getTechStack } from '@/lib/directus';
|
|||||||
import { checkRateLimit, getClientIp } from '@/lib/auth';
|
import { checkRateLimit, getClientIp } from '@/lib/auth';
|
||||||
|
|
||||||
export const runtime = 'nodejs';
|
export const runtime = 'nodejs';
|
||||||
export const dynamic = 'force-dynamic';
|
export const revalidate = 300;
|
||||||
|
|
||||||
|
const CACHE_TTL = 300; // 5 minutes
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GET /api/tech-stack
|
* GET /api/tech-stack
|
||||||
*
|
*
|
||||||
* Loads Tech Stack from Directus with fallback to static data
|
* Loads Tech Stack from Directus with fallback to static data
|
||||||
*
|
*
|
||||||
* Query params:
|
* Query params:
|
||||||
* - locale: en or de (default: en)
|
* - locale: en or de (default: en)
|
||||||
*/
|
*/
|
||||||
@@ -28,26 +30,24 @@ export async function GET(request: NextRequest) {
|
|||||||
const techStack = await getTechStack(locale);
|
const techStack = await getTechStack(locale);
|
||||||
|
|
||||||
if (techStack && techStack.length > 0) {
|
if (techStack && techStack.length > 0) {
|
||||||
return NextResponse.json({
|
return NextResponse.json(
|
||||||
techStack,
|
{ techStack, source: 'directus' },
|
||||||
source: 'directus'
|
{ headers: { 'Cache-Control': `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
});
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback: return empty (component will use hardcoded fallback)
|
// Fallback: return empty (component will use hardcoded fallback)
|
||||||
return NextResponse.json({
|
return NextResponse.json(
|
||||||
techStack: null,
|
{ techStack: null, source: 'fallback' },
|
||||||
source: 'fallback'
|
{ headers: { 'Cache-Control': `public, s-maxage=${CACHE_TTL}, stale-while-revalidate=${CACHE_TTL * 2}` } }
|
||||||
});
|
);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error loading tech stack:', error);
|
if (process.env.NODE_ENV === 'development') {
|
||||||
|
console.error('Error loading tech stack:', error);
|
||||||
|
}
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{
|
{ techStack: null, error: 'Failed to load tech stack', source: 'error' },
|
||||||
techStack: null,
|
|
||||||
error: 'Failed to load tech stack',
|
|
||||||
source: 'error'
|
|
||||||
},
|
|
||||||
{ status: 500 }
|
{ status: 500 }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ import { useState, useEffect } from "react";
|
|||||||
import { Globe, Server, Wrench, Shield, Gamepad2, Code, Activity, Lightbulb, BookOpen, MessageSquare, ArrowRight, Tv, Plane, Camera, Stars, Music, Terminal, Cpu } from "lucide-react";
|
import { Globe, Server, Wrench, Shield, Gamepad2, Code, Activity, Lightbulb, BookOpen, MessageSquare, ArrowRight, Tv, Plane, Camera, Stars, Music, Terminal, Cpu } from "lucide-react";
|
||||||
import { useLocale, useTranslations } from "next-intl";
|
import { useLocale, useTranslations } from "next-intl";
|
||||||
import type { JSONContent } from "@tiptap/react";
|
import type { JSONContent } from "@tiptap/react";
|
||||||
import RichTextClient from "./RichTextClient";
|
import dynamic from "next/dynamic";
|
||||||
|
const RichTextClient = dynamic(() => import("./RichTextClient"), { ssr: false });
|
||||||
import CurrentlyReading from "./CurrentlyReading";
|
import CurrentlyReading from "./CurrentlyReading";
|
||||||
import ReadBooks from "./ReadBooks";
|
import ReadBooks from "./ReadBooks";
|
||||||
import { motion, AnimatePresence } from "framer-motion";
|
import { motion, AnimatePresence } from "framer-motion";
|
||||||
@@ -28,18 +29,17 @@ const About = () => {
|
|||||||
const [snippets, setSnippets] = useState<Snippet[]>([]);
|
const [snippets, setSnippets] = useState<Snippet[]>([]);
|
||||||
const [selectedSnippet, setSelectedSnippet] = useState<Snippet | null>(null);
|
const [selectedSnippet, setSelectedSnippet] = useState<Snippet | null>(null);
|
||||||
const [copied, setCopied] = useState(false);
|
const [copied, setCopied] = useState(false);
|
||||||
const [cmsMessages, setCmsMessages] = useState<Record<string, string>>({});
|
const [_cmsMessages, setCmsMessages] = useState<Record<string, string>>({});
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {
|
||||||
try {
|
try {
|
||||||
const [cmsRes, techRes, hobbiesRes, msgRes, booksRes, snippetsRes] = await Promise.all([
|
const [cmsRes, techRes, hobbiesRes, msgRes, snippetsRes] = await Promise.all([
|
||||||
fetch(`/api/content/page?key=home-about&locale=${locale}`),
|
fetch(`/api/content/page?key=home-about&locale=${locale}`),
|
||||||
fetch(`/api/tech-stack?locale=${locale}`),
|
fetch(`/api/tech-stack?locale=${locale}`),
|
||||||
fetch(`/api/hobbies?locale=${locale}`),
|
fetch(`/api/hobbies?locale=${locale}`),
|
||||||
fetch(`/api/messages?locale=${locale}`),
|
fetch(`/api/messages?locale=${locale}`),
|
||||||
fetch(`/api/book-reviews?locale=${locale}`),
|
|
||||||
fetch(`/api/snippets?limit=3&featured=true`)
|
fetch(`/api/snippets?limit=3&featured=true`)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -57,9 +57,6 @@ const About = () => {
|
|||||||
|
|
||||||
const snippetsData = await snippetsRes.json();
|
const snippetsData = await snippetsRes.json();
|
||||||
if (snippetsData?.snippets) setSnippets(snippetsData.snippets);
|
if (snippetsData?.snippets) setSnippets(snippetsData.snippets);
|
||||||
|
|
||||||
await booksRes.json();
|
|
||||||
// Books data is available but we don't need to track count anymore
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("About data fetch failed:", error);
|
console.error("About data fetch failed:", error);
|
||||||
} finally {
|
} finally {
|
||||||
@@ -90,7 +87,7 @@ const About = () => {
|
|||||||
>
|
>
|
||||||
<div className="space-y-5 sm:space-y-6 md:space-y-8">
|
<div className="space-y-5 sm:space-y-6 md:space-y-8">
|
||||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase">
|
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase">
|
||||||
{t("title")}<span className="text-liquid-mint">.</span>
|
{t("title")}<span className="text-emerald-600 dark:text-emerald-400">.</span>
|
||||||
</h2>
|
</h2>
|
||||||
<div className="prose prose-stone dark:prose-invert max-w-none text-base sm:text-lg md:text-xl lg:text-2xl font-light leading-relaxed text-stone-600 dark:text-stone-400">
|
<div className="prose prose-stone dark:prose-invert max-w-none text-base sm:text-lg md:text-xl lg:text-2xl font-light leading-relaxed text-stone-600 dark:text-stone-400">
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
@@ -107,7 +104,7 @@ const About = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="pt-4 sm:pt-6 md:pt-8">
|
<div className="pt-4 sm:pt-6 md:pt-8">
|
||||||
<div className="inline-block bg-stone-50 dark:bg-stone-800 px-5 py-3 sm:px-8 sm:py-4 rounded-2xl sm:rounded-3xl border border-stone-100 dark:border-stone-700">
|
<div className="inline-block bg-stone-50 dark:bg-stone-800 px-5 py-3 sm:px-8 sm:py-4 rounded-2xl sm:rounded-3xl border border-stone-100 dark:border-stone-700">
|
||||||
<p className="text-[10px] font-black uppercase tracking-[0.2em] text-liquid-mint mb-1 sm:mb-2">{t("funFactTitle")}</p>
|
<p className="text-[10px] font-black uppercase tracking-[0.2em] text-emerald-700 dark:text-emerald-400 mb-1 sm:mb-2">{t("funFactTitle")}</p>
|
||||||
{isLoading ? <Skeleton className="h-5 w-48" /> : <p className="text-sm sm:text-base font-bold opacity-90">{t("funFactBody")}</p>}
|
{isLoading ? <Skeleton className="h-5 w-48" /> : <p className="text-sm sm:text-base font-bold opacity-90">{t("funFactBody")}</p>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -171,7 +168,7 @@ const About = () => {
|
|||||||
) : (
|
) : (
|
||||||
techStack.map((cat) => (
|
techStack.map((cat) => (
|
||||||
<div key={cat.id} className="space-y-6">
|
<div key={cat.id} className="space-y-6">
|
||||||
<h4 className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400">{cat.name}</h4>
|
<h4 className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400">{cat.name}</h4>
|
||||||
<div className="flex flex-wrap gap-2">
|
<div className="flex flex-wrap gap-2">
|
||||||
{cat.items?.map((item: TechStackItem) => (
|
{cat.items?.map((item: TechStackItem) => (
|
||||||
<span key={item.id} className="px-4 py-2 bg-stone-50 dark:bg-stone-800 rounded-xl text-xs font-bold border border-stone-100 dark:border-stone-700/50 hover:border-liquid-mint transition-colors">
|
<span key={item.id} className="px-4 py-2 bg-stone-50 dark:bg-stone-800 rounded-xl text-xs font-bold border border-stone-100 dark:border-stone-700/50 hover:border-liquid-mint transition-colors">
|
||||||
@@ -267,16 +264,16 @@ const About = () => {
|
|||||||
onClick={() => setSelectedSnippet(s)}
|
onClick={() => setSelectedSnippet(s)}
|
||||||
className="w-full text-left p-3 bg-stone-50 dark:bg-stone-800 rounded-xl border border-stone-100 dark:border-stone-700 hover:border-liquid-purple transition-all group/s"
|
className="w-full text-left p-3 bg-stone-50 dark:bg-stone-800 rounded-xl border border-stone-100 dark:border-stone-700 hover:border-liquid-purple transition-all group/s"
|
||||||
>
|
>
|
||||||
<p className="text-[9px] font-black uppercase tracking-widest text-stone-400 mb-0.5 group-hover/s:text-liquid-purple transition-colors">{s.category}</p>
|
<p className="text-[9px] font-black uppercase tracking-widest text-stone-600 dark:text-stone-400 mb-0.5 group-hover/s:text-liquid-purple transition-colors">{s.category}</p>
|
||||||
<p className="text-xs font-bold text-stone-800 dark:text-stone-200">{s.title}</p>
|
<p className="text-xs font-bold text-stone-800 dark:text-stone-200">{s.title}</p>
|
||||||
</button>
|
</button>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<p className="text-xs text-stone-400 italic">No snippets yet.</p>
|
<p className="text-xs text-stone-500 dark:text-stone-400 italic">No snippets yet.</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Link href={`/${locale}/snippets`} className="mt-6 group/btn inline-flex items-center gap-2 text-[10px] font-black uppercase tracking-widest text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">
|
<Link href={`/${locale}/snippets`} className="mt-6 group/btn inline-flex items-center gap-2 text-[10px] font-black uppercase tracking-widest text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">
|
||||||
Enter the Lab <ArrowRight size={12} className="group-hover/btn:translate-x-1 transition-transform" />
|
Enter the Lab <ArrowRight size={12} className="group-hover/btn:translate-x-1 transition-transform" />
|
||||||
</Link>
|
</Link>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
@@ -375,7 +372,7 @@ const About = () => {
|
|||||||
<div className="p-6 bg-stone-50 dark:bg-stone-800/50 border-t border-stone-100 dark:border-stone-800 text-center">
|
<div className="p-6 bg-stone-50 dark:bg-stone-800/50 border-t border-stone-100 dark:border-stone-800 text-center">
|
||||||
<button
|
<button
|
||||||
onClick={() => setSelectedSnippet(null)}
|
onClick={() => setSelectedSnippet(null)}
|
||||||
className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors"
|
className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors"
|
||||||
>
|
>
|
||||||
Close Laboratory
|
Close Laboratory
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { useEffect, useState } from "react";
|
|||||||
import { motion, AnimatePresence } from "framer-motion";
|
import { motion, AnimatePresence } from "framer-motion";
|
||||||
import { Disc3, Gamepad2, Zap, Quote as QuoteIcon } from "lucide-react";
|
import { Disc3, Gamepad2, Zap, Quote as QuoteIcon } from "lucide-react";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
interface CustomActivity {
|
interface CustomActivity {
|
||||||
[key: string]: unknown;
|
[key: string]: unknown;
|
||||||
@@ -133,7 +134,7 @@ export default function ActivityFeed({
|
|||||||
transition={{ duration: 0.5 }}
|
transition={{ duration: 0.5 }}
|
||||||
className="space-y-4"
|
className="space-y-4"
|
||||||
>
|
>
|
||||||
<p className="text-base sm:text-lg md:text-xl lg:text-2xl font-light leading-tight text-stone-700 dark:text-stone-300 italic">
|
<p className="text-base sm:text-lg md:text-xl lg:text-2xl font-light leading-tight text-stone-300 italic">
|
||||||
“{allQuotes[quoteIndex].content}”
|
“{allQuotes[quoteIndex].content}”
|
||||||
</p>
|
</p>
|
||||||
<p className="text-xs font-black text-stone-400 dark:text-stone-500 uppercase tracking-widest">
|
<p className="text-xs font-black text-stone-400 dark:text-stone-500 uppercase tracking-widest">
|
||||||
@@ -172,7 +173,7 @@ export default function ActivityFeed({
|
|||||||
<div className="flex gap-4">
|
<div className="flex gap-4">
|
||||||
{data.gaming.image && (
|
{data.gaming.image && (
|
||||||
<div className="w-12 h-12 rounded-xl overflow-hidden shrink-0 shadow-lg relative">
|
<div className="w-12 h-12 rounded-xl overflow-hidden shrink-0 shadow-lg relative">
|
||||||
<img src={data.gaming.image} alt={data.gaming.name} className="w-full h-full object-cover" />
|
<Image src={data.gaming.image} alt={data.gaming.name} fill className="object-cover" sizes="48px" unoptimized />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="min-w-0 flex flex-col justify-center">
|
<div className="min-w-0 flex flex-col justify-center">
|
||||||
@@ -215,10 +216,12 @@ export default function ActivityFeed({
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex gap-4 relative z-10">
|
<div className="flex gap-4 relative z-10">
|
||||||
<div className="w-16 h-16 rounded-lg overflow-hidden shrink-0 shadow-md relative group-hover:shadow-xl transition-shadow duration-500">
|
<div className="w-16 h-16 rounded-lg overflow-hidden shrink-0 shadow-md relative group-hover:shadow-xl transition-shadow duration-500">
|
||||||
<img
|
<Image
|
||||||
src={data.music.albumArt}
|
src={data.music.albumArt}
|
||||||
alt="Album Art"
|
alt="Album Art"
|
||||||
className="w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"
|
fill
|
||||||
|
className="object-cover transition-transform duration-700 group-hover:scale-110"
|
||||||
|
sizes="64px"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="min-w-0 flex flex-col justify-center">
|
<div className="min-w-0 flex flex-col justify-center">
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ export default function BentoChat() {
|
|||||||
placeholder="Ask me..."
|
placeholder="Ask me..."
|
||||||
className="w-full bg-white dark:bg-stone-800 border border-stone-200 dark:border-stone-700 rounded-2xl py-3 pl-4 pr-12 text-sm focus:outline-none focus:ring-2 focus:ring-liquid-purple/30 transition-all shadow-inner dark:text-white"
|
className="w-full bg-white dark:bg-stone-800 border border-stone-200 dark:border-stone-700 rounded-2xl py-3 pl-4 pr-12 text-sm focus:outline-none focus:ring-2 focus:ring-liquid-purple/30 transition-all shadow-inner dark:text-white"
|
||||||
/>
|
/>
|
||||||
<button onClick={handleSend} className="absolute right-2 top-1/2 -translate-y-1/2 p-2 text-liquid-purple hover:scale-110 transition-transform">
|
<button onClick={handleSend} aria-label="Send message" className="absolute right-2 top-1/2 -translate-y-1/2 p-2 text-liquid-purple hover:scale-110 transition-transform">
|
||||||
<Send size={18} />
|
<Send size={18} />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,6 +14,11 @@ const BackgroundBlobs = dynamic(() => import("@/components/BackgroundBlobs").cat
|
|||||||
loading: () => null,
|
loading: () => null,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const ShaderGradientBackground = dynamic(
|
||||||
|
() => import("./ShaderGradientBackground"),
|
||||||
|
{ ssr: false, loading: () => null }
|
||||||
|
);
|
||||||
|
|
||||||
export default function ClientProviders({
|
export default function ClientProviders({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
@@ -100,6 +105,7 @@ function GatedProviders({
|
|||||||
<ErrorBoundary>
|
<ErrorBoundary>
|
||||||
<ToastProvider>
|
<ToastProvider>
|
||||||
{mounted && <BackgroundBlobs />}
|
{mounted && <BackgroundBlobs />}
|
||||||
|
{mounted && <ShaderGradientBackground />}
|
||||||
<div className="relative z-10">{children}</div>
|
<div className="relative z-10">{children}</div>
|
||||||
</ToastProvider>
|
</ToastProvider>
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ import { Mail, MapPin, Send, Github, Linkedin } from "lucide-react";
|
|||||||
import { useToast } from "@/components/Toast";
|
import { useToast } from "@/components/Toast";
|
||||||
import { useLocale, useTranslations } from "next-intl";
|
import { useLocale, useTranslations } from "next-intl";
|
||||||
import type { JSONContent } from "@tiptap/react";
|
import type { JSONContent } from "@tiptap/react";
|
||||||
import RichTextClient from "./RichTextClient";
|
import dynamic from "next/dynamic";
|
||||||
|
const RichTextClient = dynamic(() => import("./RichTextClient"), { ssr: false });
|
||||||
|
|
||||||
const Contact = () => {
|
const Contact = () => {
|
||||||
const { showEmailSent, showEmailError } = useToast();
|
const { showEmailSent, showEmailError } = useToast();
|
||||||
@@ -169,7 +170,7 @@ const Contact = () => {
|
|||||||
>
|
>
|
||||||
<div className="max-w-3xl">
|
<div className="max-w-3xl">
|
||||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase mb-4 sm:mb-6 md:mb-8">
|
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase mb-4 sm:mb-6 md:mb-8">
|
||||||
{t("title")}<span className="text-liquid-mint">.</span>
|
{t("title")}<span className="text-emerald-600 dark:text-emerald-400">.</span>
|
||||||
</h2>
|
</h2>
|
||||||
{cmsDoc ? (
|
{cmsDoc ? (
|
||||||
<RichTextClient doc={cmsDoc} className="prose prose-stone dark:prose-invert max-w-none text-base sm:text-lg md:text-xl lg:text-2xl font-light leading-relaxed text-stone-600 dark:text-stone-400" />
|
<RichTextClient doc={cmsDoc} className="prose prose-stone dark:prose-invert max-w-none text-base sm:text-lg md:text-xl lg:text-2xl font-light leading-relaxed text-stone-600 dark:text-stone-400" />
|
||||||
@@ -192,10 +193,10 @@ const Contact = () => {
|
|||||||
<div className="bg-white dark:bg-stone-900 rounded-2xl sm:rounded-[2.5rem] md:rounded-[3rem] p-6 sm:p-8 md:p-10 border border-stone-200/60 dark:border-stone-800/60 shadow-sm flex-1 flex flex-col justify-between relative overflow-hidden group">
|
<div className="bg-white dark:bg-stone-900 rounded-2xl sm:rounded-[2.5rem] md:rounded-[3rem] p-6 sm:p-8 md:p-10 border border-stone-200/60 dark:border-stone-800/60 shadow-sm flex-1 flex flex-col justify-between relative overflow-hidden group">
|
||||||
<div className="relative z-10">
|
<div className="relative z-10">
|
||||||
<div className="flex justify-between items-center mb-6 sm:mb-8 md:mb-12">
|
<div className="flex justify-between items-center mb-6 sm:mb-8 md:mb-12">
|
||||||
<h4 className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400">Connect</h4>
|
<p className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400">Connect</p>
|
||||||
<div className="flex items-center gap-2 px-3 py-1 bg-emerald-500/10 rounded-full border border-emerald-500/20">
|
<div className="flex items-center gap-2 px-3 py-1 bg-emerald-500/10 rounded-full border border-emerald-500/20">
|
||||||
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" />
|
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" />
|
||||||
<span className="text-[10px] font-black uppercase tracking-widest text-emerald-600 dark:text-emerald-400">Online</span>
|
<span className="text-[10px] font-black uppercase tracking-widest text-emerald-700 dark:text-emerald-400">Online</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -203,7 +204,7 @@ const Contact = () => {
|
|||||||
{/* Email */}
|
{/* Email */}
|
||||||
<a href="mailto:contact@dk0.dev" className="flex items-center justify-between group/link">
|
<a href="mailto:contact@dk0.dev" className="flex items-center justify-between group/link">
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<span className="text-[9px] font-black uppercase tracking-[0.2em] text-stone-400 mb-1">Email</span>
|
<span className="text-[9px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400 mb-1">Email</span>
|
||||||
<span className="text-lg sm:text-xl md:text-2xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase group-hover/link:text-liquid-mint transition-colors">contact@dk0.dev</span>
|
<span className="text-lg sm:text-xl md:text-2xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase group-hover/link:text-liquid-mint transition-colors">contact@dk0.dev</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-10 h-10 rounded-full border border-stone-100 dark:border-stone-800 flex items-center justify-center group-hover/link:bg-stone-900 dark:group-hover/link:bg-stone-50 group-hover/link:text-white dark:group-hover/link:text-stone-900 transition-all">
|
<div className="w-10 h-10 rounded-full border border-stone-100 dark:border-stone-800 flex items-center justify-center group-hover/link:bg-stone-900 dark:group-hover/link:bg-stone-50 group-hover/link:text-white dark:group-hover/link:text-stone-900 transition-all">
|
||||||
@@ -216,7 +217,7 @@ const Contact = () => {
|
|||||||
{/* GitHub */}
|
{/* GitHub */}
|
||||||
<a href="https://github.com/Denshooter" target="_blank" rel="noopener noreferrer" className="flex items-center justify-between group/link">
|
<a href="https://github.com/Denshooter" target="_blank" rel="noopener noreferrer" className="flex items-center justify-between group/link">
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<span className="text-[9px] font-black uppercase tracking-[0.2em] text-stone-400 mb-1">Code</span>
|
<span className="text-[9px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400 mb-1">Code</span>
|
||||||
<span className="text-lg sm:text-xl md:text-2xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase group-hover/link:text-liquid-mint transition-colors">GitHub</span>
|
<span className="text-lg sm:text-xl md:text-2xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase group-hover/link:text-liquid-mint transition-colors">GitHub</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-10 h-10 rounded-full border border-stone-100 dark:border-stone-800 flex items-center justify-center group-hover/link:bg-stone-900 dark:group-hover/link:bg-stone-50 group-hover/link:text-white dark:group-hover/link:text-stone-900 transition-all">
|
<div className="w-10 h-10 rounded-full border border-stone-100 dark:border-stone-800 flex items-center justify-center group-hover/link:bg-stone-900 dark:group-hover/link:bg-stone-50 group-hover/link:text-white dark:group-hover/link:text-stone-900 transition-all">
|
||||||
@@ -229,7 +230,7 @@ const Contact = () => {
|
|||||||
{/* LinkedIn */}
|
{/* LinkedIn */}
|
||||||
<a href="https://linkedin.com/in/dkonkol" target="_blank" rel="noopener noreferrer" className="flex items-center justify-between group/link">
|
<a href="https://linkedin.com/in/dkonkol" target="_blank" rel="noopener noreferrer" className="flex items-center justify-between group/link">
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<span className="text-[9px] font-black uppercase tracking-[0.2em] text-stone-400 mb-1">Professional</span>
|
<span className="text-[9px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400 mb-1">Professional</span>
|
||||||
<span className="text-lg sm:text-xl md:text-2xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase group-hover/link:text-[#0077b5] transition-colors">LinkedIn</span>
|
<span className="text-lg sm:text-xl md:text-2xl font-black text-stone-900 dark:text-stone-50 tracking-tighter uppercase group-hover/link:text-[#0077b5] transition-colors">LinkedIn</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-10 h-10 rounded-full border border-stone-100 dark:border-stone-800 flex items-center justify-center group-hover/link:bg-stone-900 dark:group-hover/link:bg-stone-50 group-hover/link:text-white dark:group-hover/link:text-stone-900 transition-all">
|
<div className="w-10 h-10 rounded-full border border-stone-100 dark:border-stone-800 flex items-center justify-center group-hover/link:bg-stone-900 dark:group-hover/link:bg-stone-50 group-hover/link:text-white dark:group-hover/link:text-stone-900 transition-all">
|
||||||
@@ -240,7 +241,7 @@ const Contact = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-6 sm:mt-8 md:mt-12 pt-4 sm:pt-6 md:pt-8 border-t border-stone-100 dark:border-stone-800 relative z-10">
|
<div className="mt-6 sm:mt-8 md:mt-12 pt-4 sm:pt-6 md:pt-8 border-t border-stone-100 dark:border-stone-800 relative z-10">
|
||||||
<p className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400 mb-2">Location</p>
|
<p className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400 mb-2">Location</p>
|
||||||
<div className="flex items-center gap-2 text-stone-900 dark:text-stone-50">
|
<div className="flex items-center gap-2 text-stone-900 dark:text-stone-50">
|
||||||
<MapPin size={14} className="text-liquid-mint" />
|
<MapPin size={14} className="text-liquid-mint" />
|
||||||
<span className="font-bold">{tInfo("locationValue")}</span>
|
<span className="font-bold">{tInfo("locationValue")}</span>
|
||||||
@@ -264,7 +265,7 @@ const Contact = () => {
|
|||||||
<form onSubmit={handleSubmit} className="space-y-4 sm:space-y-6 md:space-y-8">
|
<form onSubmit={handleSubmit} className="space-y-4 sm:space-y-6 md:space-y-8">
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6 md:gap-8">
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6 md:gap-8">
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label htmlFor="name" className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400 pl-4">
|
<label htmlFor="name" className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400 pl-4">
|
||||||
{tForm("labels.name")}
|
{tForm("labels.name")}
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
@@ -281,7 +282,7 @@ const Contact = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label htmlFor="email" className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400 pl-4">
|
<label htmlFor="email" className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400 pl-4">
|
||||||
{tForm("labels.email")}
|
{tForm("labels.email")}
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
@@ -299,7 +300,7 @@ const Contact = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label htmlFor="subject" className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400 pl-4">
|
<label htmlFor="subject" className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400 pl-4">
|
||||||
{tForm("labels.subject")}
|
{tForm("labels.subject")}
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
@@ -316,7 +317,7 @@ const Contact = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label htmlFor="message" className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400 pl-4">
|
<label htmlFor="message" className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400 pl-4">
|
||||||
{tForm("labels.message")}
|
{tForm("labels.message")}
|
||||||
</label>
|
</label>
|
||||||
<textarea
|
<textarea
|
||||||
|
|||||||
@@ -33,14 +33,14 @@ const Footer = () => {
|
|||||||
{/* Navigation Links */}
|
{/* Navigation Links */}
|
||||||
<div className="md:col-span-4 grid grid-cols-2 gap-8">
|
<div className="md:col-span-4 grid grid-cols-2 gap-8">
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<p className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400">Legal</p>
|
<p className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400">Legal</p>
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
<Link href={`/${locale}/legal-notice`} className="text-sm font-bold text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">{t("legalNotice")}</Link>
|
<Link href={`/${locale}/legal-notice`} className="text-sm font-bold text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">{t("legalNotice")}</Link>
|
||||||
<Link href={`/${locale}/privacy-policy`} className="text-sm font-bold text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">{t("privacyPolicy")}</Link>
|
<Link href={`/${locale}/privacy-policy`} className="text-sm font-bold text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">{t("privacyPolicy")}</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<p className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-400">Social</p>
|
<p className="text-[10px] font-black uppercase tracking-[0.2em] text-stone-600 dark:text-stone-400">Social</p>
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
<a href="https://github.com/Denshooter" target="_blank" rel="noopener noreferrer" className="text-sm font-bold text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">GitHub</a>
|
<a href="https://github.com/Denshooter" target="_blank" rel="noopener noreferrer" className="text-sm font-bold text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">GitHub</a>
|
||||||
<a href="https://linkedin.com/in/dkonkol" target="_blank" rel="noopener noreferrer" className="text-sm font-bold text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">LinkedIn</a>
|
<a href="https://linkedin.com/in/dkonkol" target="_blank" rel="noopener noreferrer" className="text-sm font-bold text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors">LinkedIn</a>
|
||||||
@@ -52,9 +52,9 @@ const Footer = () => {
|
|||||||
<div className="md:col-span-4 flex justify-start md:justify-end">
|
<div className="md:col-span-4 flex justify-start md:justify-end">
|
||||||
<button
|
<button
|
||||||
onClick={scrollToTop}
|
onClick={scrollToTop}
|
||||||
className="group flex flex-col items-center gap-4 text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors"
|
className="group flex flex-col items-center gap-4 text-stone-600 dark:text-stone-400 hover:text-stone-900 dark:hover:text-white transition-colors"
|
||||||
>
|
>
|
||||||
<span className="text-[10px] font-black uppercase tracking-[0.3em] vertical-text transform rotate-180" style={{ writingMode: 'vertical-rl' }}>Back to top</span>
|
<span className="text-[10px] font-black uppercase tracking-[0.3em] text-stone-600 dark:text-stone-400 vertical-text transform rotate-180" style={{ writingMode: 'vertical-rl' }}>Back to top</span>
|
||||||
<div className="w-12 h-12 rounded-full border border-stone-200 dark:border-stone-800 flex items-center justify-center group-hover:bg-stone-900 dark:group-hover:bg-stone-50 group-hover:text-white dark:group-hover:text-stone-900 transition-all shadow-sm">
|
<div className="w-12 h-12 rounded-full border border-stone-200 dark:border-stone-800 flex items-center justify-center group-hover:bg-stone-900 dark:group-hover:bg-stone-50 group-hover:text-white dark:group-hover:text-stone-900 transition-all shadow-sm">
|
||||||
<ArrowUp size={20} />
|
<ArrowUp size={20} />
|
||||||
</div>
|
</div>
|
||||||
@@ -64,12 +64,12 @@ const Footer = () => {
|
|||||||
|
|
||||||
{/* Bottom Bar */}
|
{/* Bottom Bar */}
|
||||||
<div className="mt-10 sm:mt-16 md:mt-20 pt-6 sm:pt-8 border-t border-stone-100 dark:border-stone-900 flex flex-col md:flex-row justify-between items-center gap-4">
|
<div className="mt-10 sm:mt-16 md:mt-20 pt-6 sm:pt-8 border-t border-stone-100 dark:border-stone-900 flex flex-col md:flex-row justify-between items-center gap-4">
|
||||||
<p className="text-[10px] font-bold text-stone-400 uppercase tracking-widest">
|
<p className="text-[10px] font-bold text-stone-600 dark:text-stone-400 uppercase tracking-widest">
|
||||||
Built with Next.js, Directus & Passion.
|
Built with Next.js, Directus & Passion.
|
||||||
</p>
|
</p>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<div className="w-2 h-2 rounded-full bg-green-500 animate-pulse" />
|
<div className="w-2 h-2 rounded-full bg-green-500 animate-pulse" />
|
||||||
<span className="text-[10px] font-bold text-stone-400 uppercase tracking-widest">Systems Online</span>
|
<span className="text-[10px] font-bold text-stone-600 dark:text-stone-400 uppercase tracking-widest">Systems Online</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
"use client";
|
|
||||||
|
|
||||||
import { motion } from "framer-motion";
|
|
||||||
|
|
||||||
const Grain = () => {
|
|
||||||
return (
|
|
||||||
<div
|
|
||||||
className="pointer-events-none fixed inset-0 z-[9999] h-full w-full overflow-hidden"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="absolute inset-[-200%] h-[400%] w-[400%] bg-[url('/images/grain.png')] bg-repeat opacity-[0.03] dark:opacity-[0.05]"
|
|
||||||
style={{ transform: 'translate3d(0, 0, 0)' }}
|
|
||||||
/>
|
|
||||||
<motion.div
|
|
||||||
animate={{
|
|
||||||
x: [0, -50, 20, -10, 40, -20, 0],
|
|
||||||
y: [0, 20, -30, 10, -20, 30, 0],
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 0.5,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "linear",
|
|
||||||
}}
|
|
||||||
className="absolute inset-[-200%] h-[400%] w-[400%] bg-[url('/images/grain.png')] bg-repeat opacity-[0.03] dark:opacity-[0.05]"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Grain;
|
|
||||||
@@ -58,16 +58,16 @@ const Hero = () => {
|
|||||||
|
|
||||||
<h1 className="text-[2.75rem] sm:text-6xl md:text-8xl lg:text-[9.5rem] font-black tracking-tighter leading-[0.85] text-stone-900 dark:text-stone-50 uppercase">
|
<h1 className="text-[2.75rem] sm:text-6xl md:text-8xl lg:text-[9.5rem] font-black tracking-tighter leading-[0.85] text-stone-900 dark:text-stone-50 uppercase">
|
||||||
<motion.span
|
<motion.span
|
||||||
initial={{ opacity: 0, x: -50 }}
|
initial={{ x: -50 }}
|
||||||
animate={{ opacity: 1, x: 0 }}
|
animate={{ x: 0 }}
|
||||||
transition={{ duration: 0.8, delay: 0.1 }}
|
transition={{ duration: 0.8, delay: 0.1 }}
|
||||||
className="block"
|
className="block"
|
||||||
>
|
>
|
||||||
{getLabel("hero.line1", "Building")}
|
{getLabel("hero.line1", "Building")}
|
||||||
</motion.span>
|
</motion.span>
|
||||||
<motion.span
|
<motion.span
|
||||||
initial={{ opacity: 0, x: -50 }}
|
initial={{ x: -50 }}
|
||||||
animate={{ opacity: 1, x: 0 }}
|
animate={{ x: 0 }}
|
||||||
transition={{ duration: 0.8, delay: 0.2 }}
|
transition={{ duration: 0.8, delay: 0.2 }}
|
||||||
className="block text-transparent bg-clip-text bg-gradient-to-r from-emerald-400 via-liquid-sky to-liquid-purple pb-2 sm:pb-4"
|
className="block text-transparent bg-clip-text bg-gradient-to-r from-emerald-400 via-liquid-sky to-liquid-purple pb-2 sm:pb-4"
|
||||||
>
|
>
|
||||||
@@ -75,14 +75,9 @@ const Hero = () => {
|
|||||||
</motion.span>
|
</motion.span>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<motion.p
|
<p className="text-base sm:text-lg md:text-xl lg:text-2xl text-stone-600 dark:text-stone-400 max-w-xl mx-auto lg:mx-0 font-light leading-relaxed tracking-tight">
|
||||||
initial={{ opacity: 0 }}
|
|
||||||
animate={{ opacity: 1 }}
|
|
||||||
transition={{ duration: 1, delay: 0.4 }}
|
|
||||||
className="text-base sm:text-lg md:text-xl lg:text-2xl text-stone-600 dark:text-stone-400 max-w-xl mx-auto lg:mx-0 font-light leading-relaxed tracking-tight"
|
|
||||||
>
|
|
||||||
{t("description")}
|
{t("description")}
|
||||||
</motion.p>
|
</p>
|
||||||
|
|
||||||
<motion.div
|
<motion.div
|
||||||
initial={{ opacity: 0, y: 20 }}
|
initial={{ opacity: 0, y: 20 }}
|
||||||
@@ -115,7 +110,7 @@ const Hero = () => {
|
|||||||
>
|
>
|
||||||
<div className="absolute inset-0 bg-gradient-to-tr from-liquid-mint to-liquid-purple rounded-[3rem] sm:rounded-[4rem] lg:rounded-[5rem] rotate-12 scale-90 opacity-20 blur-3xl" />
|
<div className="absolute inset-0 bg-gradient-to-tr from-liquid-mint to-liquid-purple rounded-[3rem] sm:rounded-[4rem] lg:rounded-[5rem] rotate-12 scale-90 opacity-20 blur-3xl" />
|
||||||
<div className="relative w-full h-full rounded-[2.5rem] sm:rounded-[3rem] lg:rounded-[4rem] overflow-hidden border-[12px] sm:border-[16px] lg:border-[24px] border-white dark:border-stone-900 shadow-[0_30px_60px_-15px_rgba(0,0,0,0.3)] sm:shadow-[0_50px_100px_-20px_rgba(0,0,0,0.4)]">
|
<div className="relative w-full h-full rounded-[2.5rem] sm:rounded-[3rem] lg:rounded-[4rem] overflow-hidden border-[12px] sm:border-[16px] lg:border-[24px] border-white dark:border-stone-900 shadow-[0_30px_60px_-15px_rgba(0,0,0,0.3)] sm:shadow-[0_50px_100px_-20px_rgba(0,0,0,0.4)]">
|
||||||
<Image src="/images/me.jpg" alt="Dennis Konkol" fill className="object-cover" priority />
|
<Image src="/images/me.jpg" alt="Dennis Konkol" fill className="object-cover" priority sizes="(max-width: 640px) 208px, (max-width: 768px) 256px, (max-width: 1024px) 320px, 500px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="absolute -bottom-4 -left-4 sm:-bottom-6 sm:-left-6 bg-white dark:bg-stone-800 px-5 py-3 sm:px-8 sm:py-4 rounded-xl sm:rounded-[2rem] shadow-2xl border border-stone-100 dark:border-stone-700">
|
<div className="absolute -bottom-4 -left-4 sm:-bottom-6 sm:-left-6 bg-white dark:bg-stone-800 px-5 py-3 sm:px-8 sm:py-4 rounded-xl sm:rounded-[2rem] shadow-2xl border border-stone-100 dark:border-stone-700">
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ const Projects = () => {
|
|||||||
<div className="flex flex-col md:flex-row justify-between items-start md:items-end mb-8 sm:mb-12 md:mb-16 gap-4 sm:gap-6">
|
<div className="flex flex-col md:flex-row justify-between items-start md:items-end mb-8 sm:mb-12 md:mb-16 gap-4 sm:gap-6">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-black text-stone-900 dark:text-stone-50 tracking-tighter mb-2 sm:mb-4 uppercase">
|
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-black text-stone-900 dark:text-stone-50 tracking-tighter mb-2 sm:mb-4 uppercase">
|
||||||
Selected Work<span className="text-liquid-mint">.</span>
|
Selected Work<span className="text-emerald-600 dark:text-emerald-400">.</span>
|
||||||
</h2>
|
</h2>
|
||||||
<p className="text-base sm:text-lg md:text-xl text-stone-500 max-w-xl font-light">
|
<p className="text-base sm:text-lg md:text-xl text-stone-500 max-w-xl font-light">
|
||||||
Projects that pushed my boundaries.
|
Projects that pushed my boundaries.
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const ShaderGradientBackground = () => {
|
|||||||
<ShaderGradient
|
<ShaderGradient
|
||||||
control="props"
|
control="props"
|
||||||
type="sphere"
|
type="sphere"
|
||||||
animate="on"
|
animate="off"
|
||||||
brightness={1.3}
|
brightness={1.3}
|
||||||
cAzimuthAngle={180}
|
cAzimuthAngle={180}
|
||||||
cDistance={3.6}
|
cDistance={3.6}
|
||||||
@@ -57,7 +57,7 @@ const ShaderGradientBackground = () => {
|
|||||||
<ShaderGradient
|
<ShaderGradient
|
||||||
control="props"
|
control="props"
|
||||||
type="sphere"
|
type="sphere"
|
||||||
animate="on"
|
animate="off"
|
||||||
brightness={1.25}
|
brightness={1.25}
|
||||||
cAzimuthAngle={180}
|
cAzimuthAngle={180}
|
||||||
cDistance={3.6}
|
cDistance={3.6}
|
||||||
@@ -83,7 +83,7 @@ const ShaderGradientBackground = () => {
|
|||||||
<ShaderGradient
|
<ShaderGradient
|
||||||
control="props"
|
control="props"
|
||||||
type="sphere"
|
type="sphere"
|
||||||
animate="on"
|
animate="off"
|
||||||
brightness={1.2}
|
brightness={1.2}
|
||||||
cAzimuthAngle={180}
|
cAzimuthAngle={180}
|
||||||
cDistance={3.6}
|
cDistance={3.6}
|
||||||
|
|||||||
@@ -2,19 +2,6 @@
|
|||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
/* Grain Effect */
|
|
||||||
.grain-overlay {
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
z-index: 9999;
|
|
||||||
pointer-events: none;
|
|
||||||
opacity: 0.04;
|
|
||||||
mix-blend-mode: overlay;
|
|
||||||
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/* Warm Brown & Off-White Palette */
|
/* Warm Brown & Off-White Palette */
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import React from "react";
|
|||||||
import ClientProviders from "./components/ClientProviders";
|
import ClientProviders from "./components/ClientProviders";
|
||||||
import { cookies } from "next/headers";
|
import { cookies } from "next/headers";
|
||||||
import { getBaseUrl } from "@/lib/seo";
|
import { getBaseUrl } from "@/lib/seo";
|
||||||
import ShaderGradientBackground from "./components/ShaderGradientBackground";
|
|
||||||
|
|
||||||
const inter = Inter({
|
const inter = Inter({
|
||||||
variable: "--font-inter",
|
variable: "--font-inter",
|
||||||
@@ -35,7 +34,6 @@ export default async function RootLayout({
|
|||||||
</head>
|
</head>
|
||||||
<body className={`${inter.variable} ${playfair.variable}`} suppressHydrationWarning>
|
<body className={`${inter.variable} ${playfair.variable}`} suppressHydrationWarning>
|
||||||
<div className="grain-overlay" aria-hidden="true" />
|
<div className="grain-overlay" aria-hidden="true" />
|
||||||
<ShaderGradientBackground />
|
|
||||||
<ClientProviders>{children}</ClientProviders>
|
<ClientProviders>{children}</ClientProviders>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,169 +1,45 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { motion, useMotionValue, useTransform, useSpring } from "framer-motion";
|
import { motion } from "framer-motion";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
|
||||||
const BackgroundBlobs = () => {
|
const BackgroundBlobs = () => {
|
||||||
const mouseX = useMotionValue(0);
|
|
||||||
const mouseY = useMotionValue(0);
|
|
||||||
|
|
||||||
const springConfig = { damping: 50, stiffness: 50, mass: 2 };
|
|
||||||
const springX = useSpring(mouseX, springConfig);
|
|
||||||
const springY = useSpring(mouseY, springConfig);
|
|
||||||
|
|
||||||
// Very subtle parallax offsets
|
|
||||||
const x1 = useTransform(springX, (value) => value / 30);
|
|
||||||
const y1 = useTransform(springY, (value) => value / 30);
|
|
||||||
|
|
||||||
const x2 = useTransform(springX, (value) => value / -25);
|
|
||||||
const y2 = useTransform(springY, (value) => value / -25);
|
|
||||||
|
|
||||||
const x3 = useTransform(springX, (value) => value / 20);
|
|
||||||
const y3 = useTransform(springY, (value) => value / 20);
|
|
||||||
|
|
||||||
const x4 = useTransform(springX, (value) => value / -35);
|
|
||||||
const y4 = useTransform(springY, (value) => value / -35);
|
|
||||||
|
|
||||||
const x5 = useTransform(springX, (value) => value / 15);
|
|
||||||
const y5 = useTransform(springY, (value) => value / 15);
|
|
||||||
|
|
||||||
// Prevent hydration mismatch
|
|
||||||
const [mounted, setMounted] = useState(false);
|
const [mounted, setMounted] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setMounted(true);
|
setMounted(true);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (!mounted) return;
|
|
||||||
|
|
||||||
const handleMouseMove = (e: MouseEvent) => {
|
|
||||||
const x = e.clientX - window.innerWidth / 2;
|
|
||||||
const y = e.clientY - window.innerHeight / 2;
|
|
||||||
mouseX.set(x);
|
|
||||||
mouseY.set(y);
|
|
||||||
};
|
|
||||||
|
|
||||||
window.addEventListener("mousemove", handleMouseMove);
|
|
||||||
return () => window.removeEventListener("mousemove", handleMouseMove);
|
|
||||||
}, [mouseX, mouseY, mounted]);
|
|
||||||
|
|
||||||
if (!mounted) return null;
|
if (!mounted) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 overflow-hidden pointer-events-none z-0">
|
<div className="fixed inset-0 overflow-hidden pointer-events-none z-0">
|
||||||
{/* Mint blob - top left */}
|
{/* Mint blob - top left */}
|
||||||
<motion.div
|
<motion.div
|
||||||
className="absolute top-[-10%] left-[-10%] w-[40vw] h-[40vw] bg-liquid-mint/40 rounded-full blur-[100px] mix-blend-multiply"
|
className="absolute top-[-10%] left-[-10%] w-[40vw] h-[40vw] bg-liquid-mint/40 rounded-full blur-[60px] opacity-70"
|
||||||
style={{ x: x1, y: y1 }}
|
animate={{ scale: [1, 1.15, 1] }}
|
||||||
animate={{
|
transition={{ duration: 40, repeat: Infinity, ease: "easeInOut", repeatType: "reverse" }}
|
||||||
scale: [1, 1.15, 1],
|
|
||||||
rotate: [0, 45, 0],
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 40,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "easeInOut",
|
|
||||||
repeatType: "reverse",
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Lavender blob - top right */}
|
{/* Lavender blob - top right */}
|
||||||
<motion.div
|
<motion.div
|
||||||
className="absolute top-[10%] right-[-5%] w-[35vw] h-[35vw] bg-liquid-lavender/35 rounded-full blur-[100px] mix-blend-multiply"
|
className="absolute top-[10%] right-[-5%] w-[35vw] h-[35vw] bg-liquid-lavender/35 rounded-full blur-[60px] opacity-70"
|
||||||
style={{ x: x2, y: y2 }}
|
animate={{ scale: [1, 1.1, 1] }}
|
||||||
animate={{
|
transition={{ duration: 45, repeat: Infinity, ease: "easeInOut", repeatType: "reverse" }}
|
||||||
scale: [1, 1.1, 1],
|
|
||||||
rotate: [0, -30, 0],
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 45,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "easeInOut",
|
|
||||||
repeatType: "reverse",
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Rose blob - bottom left */}
|
{/* Rose blob - bottom left */}
|
||||||
<motion.div
|
<motion.div
|
||||||
className="absolute bottom-[-5%] left-[15%] w-[45vw] h-[45vw] bg-liquid-rose/35 rounded-full blur-[100px] mix-blend-multiply"
|
className="absolute bottom-[-5%] left-[15%] w-[45vw] h-[45vw] bg-liquid-rose/35 rounded-full blur-[60px] opacity-70"
|
||||||
style={{ x: x3, y: y3 }}
|
animate={{ scale: [1, 1.2, 1] }}
|
||||||
animate={{
|
transition={{ duration: 50, repeat: Infinity, ease: "easeInOut", repeatType: "reverse" }}
|
||||||
scale: [1, 1.2, 1],
|
|
||||||
rotate: [0, 60, 0],
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 50,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "easeInOut",
|
|
||||||
repeatType: "reverse",
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Peach blob - middle right */}
|
{/* Peach blob - middle right */}
|
||||||
<motion.div
|
<motion.div
|
||||||
className="absolute top-[40%] right-[10%] w-[30vw] h-[30vw] bg-orange-200/30 rounded-full blur-[120px] mix-blend-multiply"
|
className="absolute top-[40%] right-[10%] w-[30vw] h-[30vw] bg-orange-200/30 rounded-full blur-[60px] opacity-70"
|
||||||
style={{ x: x4, y: y4 }}
|
animate={{ scale: [1, 1.25, 1] }}
|
||||||
animate={{
|
transition={{ duration: 55, repeat: Infinity, ease: "easeInOut", repeatType: "reverse" }}
|
||||||
scale: [1, 1.25, 1],
|
|
||||||
rotate: [0, -45, 0],
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 55,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "easeInOut",
|
|
||||||
repeatType: "reverse",
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* Blue blob - center */}
|
|
||||||
<motion.div
|
|
||||||
className="absolute top-[50%] left-[40%] w-[38vw] h-[38vw] bg-blue-200/30 rounded-full blur-[110px] mix-blend-multiply"
|
|
||||||
style={{ x: x5, y: y5 }}
|
|
||||||
animate={{
|
|
||||||
scale: [1, 1.18, 1],
|
|
||||||
rotate: [0, 90, 0],
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 48,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "easeInOut",
|
|
||||||
repeatType: "reverse",
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* Pink blob - bottom right */}
|
|
||||||
<motion.div
|
|
||||||
className="absolute bottom-[10%] right-[-8%] w-[32vw] h-[32vw] bg-pink-200/35 rounded-full blur-[100px] mix-blend-multiply"
|
|
||||||
animate={{
|
|
||||||
scale: [1, 1.12, 1],
|
|
||||||
rotate: [0, -60, 0],
|
|
||||||
x: [0, -20, 0],
|
|
||||||
y: [0, 20, 0],
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 43,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "easeInOut",
|
|
||||||
repeatType: "reverse",
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* Yellow-green blob - top center */}
|
|
||||||
<motion.div
|
|
||||||
className="absolute top-[5%] left-[45%] w-[28vw] h-[28vw] bg-lime-200/30 rounded-full blur-[115px] mix-blend-multiply"
|
|
||||||
animate={{
|
|
||||||
scale: [1, 1.22, 1],
|
|
||||||
rotate: [0, 75, 0],
|
|
||||||
x: [0, 15, 0],
|
|
||||||
y: [0, -15, 0],
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 52,
|
|
||||||
repeat: Infinity,
|
|
||||||
ease: "easeInOut",
|
|
||||||
repeatType: "reverse",
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,32 +1,2 @@
|
|||||||
// This file configures the initialization of Sentry on the client.
|
// Sentry client SDK disabled to reduce bundle size (~400KB).
|
||||||
// The added config here will be used whenever a users loads a page in their browser.
|
// To re-enable, restore the @sentry/nextjs import and withSentryConfig in next.config.ts.
|
||||||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
|
|
||||||
|
|
||||||
import * as Sentry from "@sentry/nextjs";
|
|
||||||
|
|
||||||
Sentry.init({
|
|
||||||
// DSN from environment variable with fallback to wizard-provided value
|
|
||||||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN || "https://148e31ea874c60f3d2e0f70fd6701f6b@o4510751135105024.ingest.de.sentry.io/4510751388926032",
|
|
||||||
|
|
||||||
// Add optional integrations for additional features
|
|
||||||
integrations: [Sentry.replayIntegration()],
|
|
||||||
|
|
||||||
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
|
|
||||||
tracesSampleRate: process.env.NODE_ENV === "production" ? 0.1 : 1,
|
|
||||||
// Enable logs to be sent to Sentry
|
|
||||||
enableLogs: true,
|
|
||||||
|
|
||||||
// Define how likely Replay events are sampled.
|
|
||||||
// This sets the sample rate to be 10%. You may want this to be 100% while
|
|
||||||
// in development and sample at a lower rate in production
|
|
||||||
replaysSessionSampleRate: 0.1,
|
|
||||||
|
|
||||||
// Define how likely Replay events are sampled when an error occurs.
|
|
||||||
replaysOnErrorSampleRate: 1.0,
|
|
||||||
|
|
||||||
// Enable sending user PII (Personally Identifiable Information)
|
|
||||||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii
|
|
||||||
sendDefaultPii: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ import dotenv from "dotenv";
|
|||||||
import path from "path";
|
import path from "path";
|
||||||
import bundleAnalyzer from "@next/bundle-analyzer";
|
import bundleAnalyzer from "@next/bundle-analyzer";
|
||||||
import createNextIntlPlugin from "next-intl/plugin";
|
import createNextIntlPlugin from "next-intl/plugin";
|
||||||
import { withSentryConfig } from "@sentry/nextjs";
|
|
||||||
|
|
||||||
// Load the .env file from the working directory
|
// Load the .env file from the working directory
|
||||||
dotenv.config({ path: path.resolve(process.cwd(), ".env") });
|
dotenv.config({ path: path.resolve(process.cwd(), ".env") });
|
||||||
|
|
||||||
@@ -46,7 +44,7 @@ const nextConfig: NextConfig = {
|
|||||||
// Image optimization
|
// Image optimization
|
||||||
images: {
|
images: {
|
||||||
formats: ["image/webp", "image/avif"],
|
formats: ["image/webp", "image/avif"],
|
||||||
minimumCacheTTL: 60,
|
minimumCacheTTL: 2592000,
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
protocol: "https",
|
protocol: "https",
|
||||||
@@ -169,7 +167,35 @@ const nextConfig: NextConfig = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "/api/(.*)",
|
// Only prevent caching for real-time/sensitive API routes
|
||||||
|
source: "/api/n8n/(.*)",
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
key: "Cache-Control",
|
||||||
|
value: "no-store, no-cache, must-revalidate, proxy-revalidate",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
source: "/api/auth/(.*)",
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
key: "Cache-Control",
|
||||||
|
value: "no-store, no-cache, must-revalidate, proxy-revalidate",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
source: "/api/email/(.*)",
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
key: "Cache-Control",
|
||||||
|
value: "no-store, no-cache, must-revalidate, proxy-revalidate",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
source: "/api/contacts/(.*)",
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
key: "Cache-Control",
|
key: "Cache-Control",
|
||||||
@@ -200,42 +226,4 @@ const withBundleAnalyzer = bundleAnalyzer({
|
|||||||
|
|
||||||
const withNextIntl = createNextIntlPlugin("./i18n/request.ts");
|
const withNextIntl = createNextIntlPlugin("./i18n/request.ts");
|
||||||
|
|
||||||
// Wrap with Sentry
|
export default withBundleAnalyzer(withNextIntl(nextConfig));
|
||||||
export default withSentryConfig(
|
|
||||||
withBundleAnalyzer(withNextIntl(nextConfig)),
|
|
||||||
{
|
|
||||||
// For all available options, see:
|
|
||||||
// https://github.com/getsentry/sentry-webpack-plugin#options
|
|
||||||
|
|
||||||
org: "dk0",
|
|
||||||
project: "portfolio",
|
|
||||||
|
|
||||||
// Only print logs for uploading source maps in CI
|
|
||||||
silent: !process.env.CI,
|
|
||||||
|
|
||||||
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
|
||||||
widenClientFileUpload: true,
|
|
||||||
|
|
||||||
// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
|
|
||||||
tunnelRoute: "/monitoring",
|
|
||||||
|
|
||||||
// Webpack-specific options
|
|
||||||
webpack: {
|
|
||||||
// Automatically annotate React components to show their full name in breadcrumbs and session replay
|
|
||||||
reactComponentAnnotation: {
|
|
||||||
enabled: true,
|
|
||||||
},
|
|
||||||
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
|
||||||
treeshake: {
|
|
||||||
removeDebugLogging: true,
|
|
||||||
},
|
|
||||||
// Enables automatic instrumentation of Vercel Cron Monitors
|
|
||||||
automaticVercelMonitors: true,
|
|
||||||
},
|
|
||||||
|
|
||||||
// Source maps configuration
|
|
||||||
sourcemaps: {
|
|
||||||
disable: false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|||||||
14
package.json
14
package.json
@@ -86,6 +86,12 @@
|
|||||||
"tailwind-merge": "^2.6.0",
|
"tailwind-merge": "^2.6.0",
|
||||||
"three": "^0.183.1"
|
"three": "^0.183.1"
|
||||||
},
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"last 2 Chrome versions",
|
||||||
|
"last 2 Firefox versions",
|
||||||
|
"last 2 Safari versions",
|
||||||
|
"last 2 Edge versions"
|
||||||
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/eslintrc": "^3",
|
"@eslint/eslintrc": "^3",
|
||||||
"@playwright/test": "^1.57.0",
|
"@playwright/test": "^1.57.0",
|
||||||
@@ -115,5 +121,11 @@
|
|||||||
"tsx": "^4.20.5",
|
"tsx": "^4.20.5",
|
||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"whatwg-fetch": "^3.6.20"
|
"whatwg-fetch": "^3.6.20"
|
||||||
}
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"chrome >= 100",
|
||||||
|
"firefox >= 100",
|
||||||
|
"safari >= 15",
|
||||||
|
"edge >= 100"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,6 @@
|
|||||||
import * as Sentry from "@sentry/nextjs";
|
import * as Sentry from "@sentry/nextjs";
|
||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
// DSN from environment variable with fallback to wizard-provided value
|
|
||||||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN || "https://148e31ea874c60f3d2e0f70fd6701f6b@o4510751135105024.ingest.de.sentry.io/4510751388926032",
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN || "https://148e31ea874c60f3d2e0f70fd6701f6b@o4510751135105024.ingest.de.sentry.io/4510751388926032",
|
||||||
|
enabled: false,
|
||||||
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
|
|
||||||
tracesSampleRate: process.env.NODE_ENV === "production" ? 0.1 : 1,
|
|
||||||
|
|
||||||
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
||||||
debug: false,
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,12 +5,6 @@
|
|||||||
import * as Sentry from "@sentry/nextjs";
|
import * as Sentry from "@sentry/nextjs";
|
||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
// DSN from environment variable with fallback to wizard-provided value
|
|
||||||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN || "https://148e31ea874c60f3d2e0f70fd6701f6b@o4510751135105024.ingest.de.sentry.io/4510751388926032",
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN || "https://148e31ea874c60f3d2e0f70fd6701f6b@o4510751135105024.ingest.de.sentry.io/4510751388926032",
|
||||||
|
enabled: false,
|
||||||
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
|
|
||||||
tracesSampleRate: process.env.NODE_ENV === "production" ? 0.1 : 1,
|
|
||||||
|
|
||||||
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
||||||
debug: false,
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user