Implement achraf's portfolio
This commit is contained in:
267
app/globals.css
267
app/globals.css
@@ -1,26 +1,259 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
: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);
|
||||
--color-bg: #07080a;
|
||||
--color-surface: #0e1014;
|
||||
--color-border: #1c1f26;
|
||||
--color-border-dim: #141619;
|
||||
--color-text: #e2e4e9;
|
||||
--color-muted: #4a5060;
|
||||
--color-accent: #c8a96e;
|
||||
--color-accent-bright: #e8c887;
|
||||
--color-accent-dim: #6b5730;
|
||||
--color-tag-bg: #131720;
|
||||
--color-done: #3a7a5a;
|
||||
--color-progress: #6b5730;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: #0a0a0a;
|
||||
--foreground: #ededed;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
/* All page sections sit above the fixed GridCanvas (z-index 0) */
|
||||
main > section { position: relative; z-index: 5; }
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
background: #07080a;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--background);
|
||||
color: var(--foreground);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
background: #07080a;
|
||||
color: #e2e4e9;
|
||||
font-family: var(--font-lora), Georgia, serif;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar { width: 4px; }
|
||||
::-webkit-scrollbar-track { background: #07080a; }
|
||||
::-webkit-scrollbar-thumb { background: #1c1f26; border-radius: 2px; }
|
||||
|
||||
@keyframes fadeUp {
|
||||
from { opacity: 0; transform: translateY(32px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
@keyframes slideRight {
|
||||
from { transform: scaleX(0); }
|
||||
to { transform: scaleX(1); }
|
||||
}
|
||||
@keyframes pulse-glow {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(200, 169, 110, 0); }
|
||||
50% { box-shadow: 0 0 20px 4px rgba(200, 169, 110, 0.12); }
|
||||
}
|
||||
@keyframes blink {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0; }
|
||||
}
|
||||
@keyframes scroll-bounce {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
50% { transform: translateY(6px); }
|
||||
}
|
||||
|
||||
.animate-fade-up {
|
||||
animation: fadeUp 0.75s ease both;
|
||||
}
|
||||
|
||||
.delay-1 { animation-delay: 0.15s; }
|
||||
.delay-2 { animation-delay: 0.3s; }
|
||||
.delay-3 { animation-delay: 0.45s; }
|
||||
.delay-4 { animation-delay: 0.6s; }
|
||||
.delay-5 { animation-delay: 0.75s; }
|
||||
.delay-6 { animation-delay: 0.9s; }
|
||||
|
||||
.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(24px);
|
||||
transition: opacity 0.7s ease, transform 0.7s ease;
|
||||
}
|
||||
.reveal.visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* grid-bg: static CSS grid removed — replaced by GridCanvas (canvas-based distortion) */
|
||||
.grid-bg {}
|
||||
|
||||
.project-card {
|
||||
background: #0e1014;
|
||||
border: 1px solid #1c1f26;
|
||||
transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.project-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(135deg, rgba(200,169,110,0.05) 0%, transparent 60%);
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
.project-card:hover {
|
||||
border-color: #6b5730;
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 16px 48px rgba(0,0,0,0.5);
|
||||
}
|
||||
.project-card:hover::before { opacity: 1; }
|
||||
|
||||
.tech-tag {
|
||||
font-family: var(--font-jetbrains), monospace;
|
||||
font-size: 0.62rem;
|
||||
letter-spacing: 0.08em;
|
||||
padding: 2px 8px;
|
||||
border: 1px solid #1c1f26;
|
||||
color: #4a5060;
|
||||
background: #131720;
|
||||
display: inline-block;
|
||||
transition: border-color 0.2s, color 0.2s;
|
||||
}
|
||||
.tech-tag:hover {
|
||||
border-color: #6b5730;
|
||||
color: #c8a96e;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
font-family: var(--font-jetbrains), monospace;
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
color: #4a5060;
|
||||
transition: color 0.2s;
|
||||
position: relative;
|
||||
}
|
||||
.nav-link::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
left: 0;
|
||||
width: 0;
|
||||
height: 1px;
|
||||
background: #c8a96e;
|
||||
transition: width 0.25s ease;
|
||||
}
|
||||
.nav-link:hover { color: #c8a96e; }
|
||||
.nav-link:hover::after { width: 100%; }
|
||||
|
||||
.status-done {
|
||||
font-family: var(--font-jetbrains), monospace;
|
||||
font-size: 0.58rem;
|
||||
letter-spacing: 0.1em;
|
||||
padding: 1px 6px;
|
||||
border: 1px solid #3a7a5a;
|
||||
color: #3a7a5a;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.status-progress {
|
||||
font-family: var(--font-jetbrains), monospace;
|
||||
font-size: 0.58rem;
|
||||
letter-spacing: 0.1em;
|
||||
padding: 1px 6px;
|
||||
border: 1px solid #6b5730;
|
||||
color: #c8954a;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.section-label {
|
||||
font-family: var(--font-jetbrains), monospace;
|
||||
font-size: 0.62rem;
|
||||
letter-spacing: 0.22em;
|
||||
text-transform: uppercase;
|
||||
color: #c8a96e;
|
||||
}
|
||||
|
||||
.cursor::after {
|
||||
content: '_';
|
||||
animation: blink 1s step-end infinite;
|
||||
color: #c8a96e;
|
||||
}
|
||||
|
||||
.scroll-indicator {
|
||||
animation: scroll-bounce 1.8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.accent-bar {
|
||||
display: block;
|
||||
width: 32px;
|
||||
height: 2px;
|
||||
background: #c8a96e;
|
||||
transform-origin: left;
|
||||
}
|
||||
|
||||
/* ── Responsive bento grid ───────────────────────────────────── */
|
||||
.hero-bento-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1px;
|
||||
background: #1c1f26;
|
||||
border: 1px solid #1c1f26;
|
||||
}
|
||||
@media (max-width: 1023px) {
|
||||
.hero-bento-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
@media (max-width: 599px) {
|
||||
.hero-bento-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
/* ── Hero header responsive ──────────────────────────────────── */
|
||||
.hero-header-strip {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
@media (max-width: 599px) {
|
||||
.hero-header-strip { flex-direction: column; align-items: flex-start; }
|
||||
}
|
||||
|
||||
/* ── Hero section padding ────────────────────────────────────── */
|
||||
.hero-section {
|
||||
padding-top: 88px;
|
||||
padding-bottom: 4rem;
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
@media (max-width: 599px) {
|
||||
.hero-section {
|
||||
padding-top: 76px;
|
||||
padding-left: 1.25rem;
|
||||
padding-right: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Headline cursor blink ───────────────────────────────────── */
|
||||
@keyframes cursor-blink {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0; }
|
||||
}
|
||||
.headline-cursor {
|
||||
display: inline-block;
|
||||
width: 3px;
|
||||
background: #c8a96e;
|
||||
margin-left: 4px;
|
||||
animation: cursor-blink 1.1s step-end infinite;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
@@ -1,33 +1,44 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import { Bebas_Neue, JetBrains_Mono, Lora } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import GridCanvas from "@/components/GridCanvas";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
const bebas = Bebas_Neue({
|
||||
weight: "400",
|
||||
variable: "--font-bebas",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
const jetbrains = JetBrains_Mono({
|
||||
variable: "--font-jetbrains",
|
||||
subsets: ["latin"],
|
||||
weight: ["400", "500"],
|
||||
});
|
||||
|
||||
const lora = Lora({
|
||||
variable: "--font-lora",
|
||||
subsets: ["latin"],
|
||||
weight: ["400", "500"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "Achraf Achkari — Technical Lead & Software Engineer",
|
||||
description:
|
||||
"Personal portfolio and project hub. Technical Lead at Kereval, building software with Java, TypeScript, and modern frameworks.",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
}: Readonly<{ children: React.ReactNode }>) {
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
||||
className={`${bebas.variable} ${jetbrains.variable} ${lora.variable} h-full`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">{children}</body>
|
||||
<body className="min-h-full flex flex-col antialiased" suppressHydrationWarning>
|
||||
<GridCanvas />
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
97
app/page.tsx
97
app/page.tsx
@@ -1,65 +1,46 @@
|
||||
import Image from "next/image";
|
||||
import portfolioData from "@/data/portfolio.json";
|
||||
import Navigation from "@/components/Navigation";
|
||||
import Hero from "@/components/Hero";
|
||||
import Projects from "@/components/Projects";
|
||||
import Experience from "@/components/Experience";
|
||||
import Education from "@/components/Education";
|
||||
import Skills from "@/components/Skills";
|
||||
import Contact from "@/components/Contact";
|
||||
|
||||
export default function Home() {
|
||||
const { about, projects, experiences, education } = portfolioData;
|
||||
|
||||
return (
|
||||
<div className="flex flex-col flex-1 items-center justify-center bg-zinc-50 font-sans dark:bg-black">
|
||||
<main className="flex flex-1 w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
|
||||
<Image
|
||||
className="dark:invert"
|
||||
src="/next.svg"
|
||||
alt="Next.js logo"
|
||||
width={100}
|
||||
height={20}
|
||||
priority
|
||||
<>
|
||||
<Navigation />
|
||||
<main>
|
||||
<Hero
|
||||
name={about.FullName.split(" ")[0]}
|
||||
lastName={about.FullName.split(" ").slice(1).join(" ")}
|
||||
title={about.title}
|
||||
description={about.description}
|
||||
skills={about.skills}
|
||||
projects={projects}
|
||||
experiences={experiences}
|
||||
education={education}
|
||||
languages={about.languages}
|
||||
interests={about.interests}
|
||||
location={about.contact.Address}
|
||||
/>
|
||||
<Projects projects={projects} />
|
||||
<Experience experiences={experiences} />
|
||||
<Education education={education} />
|
||||
<Skills
|
||||
skills={about.skills}
|
||||
languages={about.languages}
|
||||
interests={about.interests}
|
||||
/>
|
||||
<Contact
|
||||
contact={about.contact}
|
||||
fullName={about.FullName}
|
||||
image={about.image}
|
||||
/>
|
||||
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
|
||||
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
|
||||
To get started, edit the page.tsx file.
|
||||
</h1>
|
||||
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
|
||||
Looking for a starting point or more instructions? Head over to{" "}
|
||||
<a
|
||||
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
||||
>
|
||||
Templates
|
||||
</a>{" "}
|
||||
or the{" "}
|
||||
<a
|
||||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
||||
>
|
||||
Learning
|
||||
</a>{" "}
|
||||
center.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
|
||||
<a
|
||||
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
|
||||
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<Image
|
||||
className="dark:invert"
|
||||
src="/vercel.svg"
|
||||
alt="Vercel logomark"
|
||||
width={16}
|
||||
height={16}
|
||||
/>
|
||||
Deploy Now
|
||||
</a>
|
||||
<a
|
||||
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
|
||||
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Documentation
|
||||
</a>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user