# Sithum Dilshara — Creative Tech Portfolio

A modern single-page portfolio built with **React**, **TypeScript**, **Tailwind CSS**, **Framer Motion**, and **GSAP** — backed by a **Spring Boot** contact API.

## Project Structure

```
MyWebSite/
├── frontend/                    # React + Vite SPA
│   ├── src/
│   │   ├── components/          # Navbar, Hero, Projects, etc.
│   │   ├── pages/               # Home, AdminPanel
│   │   └── hooks/               # Custom hooks
│   └── public/
├── pom.xml
└── src/main/
    ├── java/.../portfolio/      # Spring Boot backend
    └── resources/static/        # Production build output
```

## Features

- **Dark creative-tech theme** with electric blue & violet accents
- **Transparent navbar** with backdrop blur on scroll
- **Hero section** with surreal portrait, gradient overlay, and floating animation
- **Nexora & Thenabadu International** about section with liquid background animation
- **Project cards** (Firezone, Sipsala) with 3D tilt hover effects
- **Services grid** — Web, Mobile, UI/UX, Cloud
- **Contact form** integrated with Spring Boot API
- **Custom cursor follower** (desktop)
- **Scroll-triggered fade-in** animations via Framer Motion
- **Hidden admin panel** at `/admin/private` (password: `nexorasecret`)

## Prerequisites

- **Node.js 18+** and **npm**
- **Java 17+** and **Maven 3.8+**

## Development

### Frontend only (hot reload)

```bash
cd frontend
npm install
npm run dev
```

Visit **http://localhost:5173**

The Vite dev server proxies `/api` requests to Spring Boot on port 8080.

### Full stack

Terminal 1 — backend:

```bash
mvn spring-boot:run
```

Terminal 2 — frontend:

```bash
cd frontend
npm run dev
```

## Production Build

```bash
cd frontend
npm run build
```

This outputs the SPA to `src/main/resources/static/`. Then:

```bash
mvn clean package
java -jar target/portfolio-1.0.0.jar
```

Visit **http://localhost:8080**

## Admin Panel

- Route: `/admin/private`
- Access via the **Login** button in the navbar
- Test password: `nexorasecret`
- Shows a basic dashboard skeleton after authentication

## API Endpoints

| Method | Path           | Description         |
|--------|----------------|---------------------|
| GET    | `/`            | Portfolio homepage  |
| POST   | `/api/contact` | Submit contact form |

## Tech Stack

| Layer      | Technology                              |
|------------|-----------------------------------------|
| Frontend   | React 19, TypeScript, Tailwind CSS v4   |
| Animations | Framer Motion, GSAP                     |
| Routing    | React Router v7                         |
| Backend    | Java 17, Spring Boot 3.2                |
| Build      | Vite 8                                  |

---

Built for **Sithum Dilshara** — Thenabadu International Holding Private Limited | Nexora.
