Added dynamic colour-background
This commit is contained in:
1 parent
bc81bacdf5
commit
d1522323d3
6 files changed
+6191
-63
No files matched your search
+40
-6
@@ -1,15 +1,20 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
@custom-variant dark (&:where(.dark, .dark *));
|
||||
|
||||
:root {
|
||||
--background: #ffffff;
|
||||
--foreground: #171717;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: var(--font-geist-sans);
|
||||
--font-mono: var(--font-geist-mono);
|
||||
/* Tailwind color variables (replaces addVariablesForColors plugin from Tailwind v3) */
|
||||
--black: #000000;
|
||||
--white: #ffffff;
|
||||
--transparent: transparent;
|
||||
--blue-300: #93c5fd;
|
||||
--blue-400: #60a5fa;
|
||||
--blue-500: #3b82f6;
|
||||
--indigo-300: #a5b4fc;
|
||||
--violet-200: #ddd6fe;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@@ -19,6 +24,35 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Dark mode overrides for color variables */
|
||||
.dark {
|
||||
--background: #0a0a0a;
|
||||
--foreground: #ededed;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: var(--font-geist-sans);
|
||||
--font-mono: var(--font-geist-mono);
|
||||
|
||||
/* Aurora animation */
|
||||
--animate-aurora: aurora 60s linear infinite;
|
||||
|
||||
@keyframes aurora {
|
||||
from {
|
||||
background-position:
|
||||
50% 50%,
|
||||
50% 50%;
|
||||
}
|
||||
to {
|
||||
background-position:
|
||||
350% 50%,
|
||||
350% 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--background);
|
||||
color: var(--foreground);
|
||||
|
||||
+53
-56
@@ -1,68 +1,60 @@
|
||||
import Image from "next/image";
|
||||
"use client";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
import { AuroraBackground } from "@/components/ui/aurora-background";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col bg-white text-zinc-900">
|
||||
<header className="mx-auto flex w-full max-w-5xl items-center justify-between px-6 py-8">
|
||||
<div className="flex items-center gap-3">
|
||||
<Image
|
||||
src="/favicon.ico"
|
||||
alt="Profile Picture"
|
||||
width={100}
|
||||
height={100}
|
||||
/>
|
||||
<span className="text-lg font-semibold">pascalyazid</span>
|
||||
</div>
|
||||
<nav className="hidden items-center gap-6 text-sm text-zinc-600 sm:flex">
|
||||
<a className="transition hover:text-zinc-900" href="#about">
|
||||
About
|
||||
</a>
|
||||
<a className="transition hover:text-zinc-900" href="#projects">
|
||||
Projects
|
||||
</a>
|
||||
<a className="transition hover:text-zinc-900" href="#contact">
|
||||
Contact
|
||||
</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main className="mx-auto w-full max-w-5xl flex-1 px-6 pb-16">
|
||||
<section className="py-12 sm:py-16">
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.3em] text-zinc-500">
|
||||
<AuroraBackground>
|
||||
<div className="relative z-10 flex min-h-screen w-full flex-col text-zinc-900">
|
||||
{/* Hero */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0.0, y: 40 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
transition={{
|
||||
delay: 0.3,
|
||||
duration: 0.8,
|
||||
ease: "easeInOut",
|
||||
}}
|
||||
className="flex flex-col items-center justify-center px-4 pt-32 pb-20 text-center"
|
||||
>
|
||||
<p className="text-xs font-semibold uppercase tracking-[0.3em] text-zinc-500 dark:text-zinc-400">
|
||||
Portfolio
|
||||
</p>
|
||||
<h1 className="mt-4 text-4xl font-semibold tracking-tight sm:text-5xl">
|
||||
Hi, I’m pascalyazid — a student developer who builds web apps, APIs,
|
||||
and desktop tooling with a strong Java backbone.
|
||||
<h1 className="text-3xl font-bold dark:text-white sm:text-5xl md:text-7xl">
|
||||
Hi, I'm pascalyazid
|
||||
</h1>
|
||||
<p className="mt-6 max-w-xl text-lg text-zinc-600">
|
||||
I lean on object-oriented design and Spring Boot for backends, and
|
||||
ship front ends with Next.js, Nuxt, Vue, and React — plus plain
|
||||
HTML/JS, HTMX, and PHP when the project calls for it. I also enjoy
|
||||
GJS (GNOME JavaScript) for desktop-side experiments.
|
||||
<p className="font-extralight text-base dark:text-neutral-200 md:text-4xl">
|
||||
a student developer who builds web apps, APIs, and desktop tooling
|
||||
with a strong Java backbone.
|
||||
</p>
|
||||
<div className="mt-8 flex flex-wrap gap-4">
|
||||
<div className="mt-4 flex flex-wrap justify-center gap-4">
|
||||
<a
|
||||
className="inline-flex items-center justify-center rounded-full bg-zinc-900 px-6 py-3 text-sm font-medium text-white transition hover:bg-zinc-800"
|
||||
className="inline-flex items-center justify-center rounded-full bg-zinc-900 px-6 py-3 text-sm font-medium text-white transition hover:bg-zinc-800 dark:bg-white dark:text-black dark:hover:bg-zinc-200"
|
||||
href="#projects"
|
||||
>
|
||||
View projects
|
||||
</a>
|
||||
<a
|
||||
className="inline-flex items-center justify-center rounded-full border border-zinc-200 px-6 py-3 text-sm font-medium text-zinc-900 transition hover:border-zinc-300"
|
||||
className="inline-flex items-center justify-center rounded-full border border-zinc-200 px-6 py-3 text-sm font-medium text-zinc-900 transition hover:border-zinc-300 dark:border-zinc-700 dark:text-zinc-100"
|
||||
href="#contact"
|
||||
>
|
||||
Contact me
|
||||
</a>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* Main content */}
|
||||
<div className="mx-auto w-full max-w-5xl flex-1 px-6 pb-16">
|
||||
<section className="py-12 sm:py-16">
|
||||
<div className="mt-10 grid gap-4 sm:grid-cols-3">
|
||||
<div className="rounded-2xl border border-zinc-200 p-4 text-sm text-zinc-600">
|
||||
<p className="text-xs font-semibold uppercase text-zinc-500">
|
||||
Focus
|
||||
</p>
|
||||
<p className="mt-2">
|
||||
Java & OOP, Spring Boot, REST APIs, and modern stacks: Next.js,
|
||||
Nuxt, Vue, and React.
|
||||
Java & OOP, Spring Boot, REST APIs, and modern stacks:
|
||||
Next.js, Nuxt, Vue, and React.
|
||||
</p>
|
||||
</div>
|
||||
<div className="rounded-2xl border border-zinc-200 p-4 text-sm text-zinc-600">
|
||||
@@ -89,12 +81,13 @@ export default function Home() {
|
||||
<div>
|
||||
<h2 className="text-2xl font-semibold">About</h2>
|
||||
<p className="mt-4 text-zinc-600">
|
||||
I’m currently a student with a strong object-oriented foundation
|
||||
— especially in Java — and hands-on experience building APIs
|
||||
with Spring Boot. I’ve shipped multiple web projects across PHP
|
||||
stacks and minimal HTML/JS or HTMX front ends, alongside work in
|
||||
Next.js, Nuxt, Vue, React, and GJS for GNOME. Away from the
|
||||
keyboard I read books and manga, and I unwind with games.
|
||||
I'm currently a student with a strong object-oriented
|
||||
foundation — especially in Java — and hands-on experience
|
||||
building APIs with Spring Boot. I've shipped multiple web
|
||||
projects across PHP stacks and minimal HTML/JS or HTMX front
|
||||
ends, alongside work in Next.js, Nuxt, Vue, React, and GJS for
|
||||
GNOME. Away from the keyboard I read books and manga, and I
|
||||
unwind with games.
|
||||
</p>
|
||||
</div>
|
||||
<div className="rounded-2xl border border-zinc-200 p-6">
|
||||
@@ -115,7 +108,7 @@ export default function Home() {
|
||||
<div className="flex items-center justify-between gap-4">
|
||||
<h2 className="text-2xl font-semibold">Selected projects</h2>
|
||||
<a className="text-sm font-medium text-zinc-600" href="#contact">
|
||||
Let’s build something →
|
||||
Let's build something →
|
||||
</a>
|
||||
</div>
|
||||
<div className="mt-6 grid gap-6 md:grid-cols-2">
|
||||
@@ -166,11 +159,13 @@ export default function Home() {
|
||||
<p className="text-xs font-semibold uppercase tracking-wide text-zinc-500">
|
||||
HTML & JavaScript
|
||||
</p>
|
||||
<h3 className="mt-3 text-lg font-semibold">Abfahrtsbildschirm</h3>
|
||||
<h3 className="mt-3 text-lg font-semibold">
|
||||
Abfahrtsbildschirm
|
||||
</h3>
|
||||
<p className="mt-2 text-sm text-zinc-600">
|
||||
A plain HTML/JS site for displaying train departures, showcasing
|
||||
clean structure and client-side scripting. See the repository
|
||||
for the implementation.
|
||||
A plain HTML/JS site for displaying train departures,
|
||||
showcasing clean structure and client-side scripting. See the
|
||||
repository for the implementation.
|
||||
</p>
|
||||
<div className="mt-4 flex flex-wrap items-center gap-3 text-xs uppercase tracking-wide text-zinc-500">
|
||||
<span>HTML · JS</span>
|
||||
@@ -235,10 +230,11 @@ export default function Home() {
|
||||
|
||||
<section className="border-t border-zinc-100 py-12" id="contact">
|
||||
<div className="rounded-3xl border border-zinc-200 bg-zinc-50 p-8">
|
||||
<h2 className="text-2xl font-semibold">Let’s connect</h2>
|
||||
<h2 className="text-2xl font-semibold">Let's connect</h2>
|
||||
<p className="mt-3 text-zinc-600">
|
||||
Want to chat about a project or opportunity? I’d love to hear from
|
||||
you. Send an email or reach me on your favorite platform.
|
||||
Want to chat about a project or opportunity? I'd love to
|
||||
hear from you. Send an email or reach me on your favorite
|
||||
platform.
|
||||
</p>
|
||||
<div className="mt-6 flex flex-wrap gap-4">
|
||||
<a
|
||||
@@ -258,7 +254,7 @@ export default function Home() {
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<footer className="border-t border-zinc-100 py-6">
|
||||
<div className="mx-auto flex w-full max-w-5xl items-center justify-between px-6 text-sm text-zinc-500">
|
||||
@@ -267,5 +263,6 @@ export default function Home() {
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</AuroraBackground>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
"use client";
|
||||
import { cn } from "@/lib/utils";
|
||||
import React, { ReactNode } from "react";
|
||||
|
||||
interface AuroraBackgroundProps extends React.HTMLProps<HTMLDivElement> {
|
||||
children: ReactNode;
|
||||
showRadialGradient?: boolean;
|
||||
}
|
||||
|
||||
export const AuroraBackground = ({
|
||||
className,
|
||||
children,
|
||||
showRadialGradient = true,
|
||||
...props
|
||||
}: AuroraBackgroundProps) => {
|
||||
return (
|
||||
<main>
|
||||
<div
|
||||
className={cn(
|
||||
"relative flex flex-col min-h-screen items-center justify-start bg-zinc-50 dark:bg-zinc-900 text-slate-950 transition-bg",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
>
|
||||
<div className="absolute inset-0 overflow-hidden">
|
||||
<div
|
||||
className={cn(
|
||||
`
|
||||
[--white-gradient:repeating-linear-gradient(100deg,var(--white)_0%,var(--white)_7%,var(--transparent)_10%,var(--transparent)_12%,var(--white)_16%)]
|
||||
[--dark-gradient:repeating-linear-gradient(100deg,var(--black)_0%,var(--black)_7%,var(--transparent)_10%,var(--transparent)_12%,var(--black)_16%)]
|
||||
[--aurora:repeating-linear-gradient(100deg,var(--blue-500)_10%,var(--indigo-300)_15%,var(--blue-300)_20%,var(--violet-200)_25%,var(--blue-400)_30%)]
|
||||
[background-image:var(--white-gradient),var(--aurora)]
|
||||
dark:[background-image:var(--dark-gradient),var(--aurora)]
|
||||
[background-size:300%,_200%]
|
||||
[background-position:50%_50%,50%_50%]
|
||||
filter blur-[10px] invert dark:invert-0
|
||||
after:content-[""] after:absolute after:inset-0 after:[background-image:var(--white-gradient),var(--aurora)]
|
||||
after:dark:[background-image:var(--dark-gradient),var(--aurora)]
|
||||
after:[background-size:200%,_100%]
|
||||
after:animate-aurora after:[background-attachment:fixed] after:mix-blend-difference
|
||||
pointer-events-none
|
||||
absolute -inset-[10px] opacity-50 will-change-transform`,
|
||||
|
||||
showRadialGradient &&
|
||||
`[mask-image:radial-gradient(ellipse_at_100%_0%,black_10%,var(--transparent)_70%)]`,
|
||||
)}
|
||||
></div>
|
||||
</div>
|
||||
{children}
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
import { clsx, type ClassValue } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
Generated
+6035
File diff suppressed because it is too large.
Load diff
+4
-1
@@ -9,9 +9,12 @@
|
||||
"lint": "eslint"
|
||||
},
|
||||
"dependencies": {
|
||||
"clsx": "^2.1.1",
|
||||
"framer-motion": "^12.38.0",
|
||||
"next": "16.2.4",
|
||||
"react": "19.2.4",
|
||||
"react-dom": "19.2.4"
|
||||
"react-dom": "19.2.4",
|
||||
"tailwind-merge": "^3.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "^4",
|
||||
|
||||
Reference in new issue
Block a user