Switched to Next.Js

This commit is contained in:
Space-Banane
2026-03-14 13:48:16 +01:00
parent e60da1905c
commit b473840ed9
49 changed files with 3355 additions and 1588 deletions

View File

@@ -1,37 +0,0 @@
# Workspace Instructions - my-portfolio
This repository contains a personal portfolio website built with React 19, Vite, TypeScript, and Tailwind CSS 4.
## Project Structure
- `src/components/`: Reusable UI components (cards, modals, navbar).
- `src/pages/`: Main page components.
- `src/sections/`: Modular layout sections used in pages.
- `src/types.ts`: Central location for all TypeScript interfaces and data models.
- `src/App.tsx`: The main entry point managing overall state and routing.
## Development Workflow
- **Package Manager**: Use `pnpm`.
- **Commands**:
- `pnpm dev`: Start development server.
- `pnpm build`: Type-check and build for production.
- `pnpm lint`: Run ESLint.
- `pnpm preview`: Preview production build.
## Code Conventions
- **Naming**: Use PascalCase for components and sections (e.g., `ProjectCard.tsx`).
- **Exports**: Prefer named exports for components.
- **Styling**:
- Use Tailwind CSS 4 utility classes.
- Follow the "glassmorphism" aesthetic (e.g., `backdrop-blur-sm`, `bg-white/10`, `border-white/10`).
- **Data Models**:
- All new data structures (projects, experiences) must be defined in `src/types.ts`.
- Content is typically initialized in `App.tsx` and passed down as props.
## Component Principles
- **Separation of Concerns**: Sections in `src/sections/` should focus on presentation and receive data via props from parent pages.
- **Modals**: Modal states (open/close, selected item) are managed in the parent component and passed down.
## Best Practices
- Ensure strict TypeScript typing for all props.
- Use the `@danielgtmn/umami-react` for analytics features if needed.
- Maintain consistent hover effects and layout patterns across cards.

View File

@@ -1,34 +0,0 @@
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm run lint
- name: Build
run: pnpm run build