Skip to content

Commit 76740d8

Browse files
committed
add react and remove react-router
1 parent 757281a commit 76740d8

145 files changed

Lines changed: 1938 additions & 2481 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,17 @@ jobs:
4545
working-directory: ./${{ env.APP_VERSION }}
4646
run: npm ci
4747

48-
- name: Type check
49-
working-directory: ./${{ env.APP_VERSION }}
50-
run: npm run typecheck
51-
5248
- name: Build project
5349
working-directory: ./${{ env.APP_VERSION }}
54-
run: npm run build:static
50+
run: npm run build
5551

5652
- name: Setup Pages
5753
uses: actions/configure-pages@v4
5854

5955
- name: Upload artifact
6056
uses: actions/upload-pages-artifact@v3
6157
with:
62-
path: ./build/
58+
path: './build'
6359

6460
- name: Show build files
6561
run: ls -la ./build/

v3/README.md

Lines changed: 90 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,123 @@
1-
# Welcome to React Router!
1+
# M-Tech Portfolio
22

3-
A modern, production-ready template for building full-stack React applications using React Router.
3+
A modern, responsive company portfolio built with React, TypeScript, and Vite.
44

55
## Features
66

7-
- 🚀 Server-side rendering
8-
- ⚡️ Hot Module Replacement (HMR)
9-
- 📦 Asset bundling and optimization
10-
- 🔄 Data loading and mutations
11-
- 🔒 TypeScript by default
12-
- 🎉 CSS Modules for styling
13-
- 📖 [React Router docs](https://reactrouter.com/)
7+
- 🚀 Pure React (no routing framework)
8+
- ⚡ Vite for fast development and optimized builds
9+
- 🎨 Glass morphism design with gradient effects
10+
- 📱 Fully responsive with mobile menu
11+
- 💌 EmailJS integration for contact form
12+
- 🎯 Hash-based client-side navigation
13+
- 🔧 TypeScript for type safety
14+
- 🎨 CSS Modules for scoped styling
1415

15-
### Styling & Theming
16+
## Project Structure
1617

17-
- This project uses CSS modules as the styling solution, Radix as the component library, and Open Props for styling tokens and theming
18-
- Project theme is defined in `app/styles/theme.css`, used as a design system for all UI building
19-
- Base design tokens are defined in `app/styles/tokens/<token-type>.css`, used as an immutable base design system for all the theme and all UI
18+
```
19+
src/
20+
├── components/ # Reusable UI components
21+
│ ├── ui/ # UI library components (buttons, cards, etc.)
22+
│ ├── Navigation.tsx
23+
│ └── Footer.tsx
24+
├── pages/ # Page components
25+
│ ├── Home.tsx
26+
│ ├── About.tsx
27+
│ ├── Services.tsx
28+
│ ├── Projects.tsx
29+
│ └── Contact.tsx
30+
├── data/ # Mock data
31+
├── hooks/ # Custom React hooks
32+
├── services/ # Business logic (email service)
33+
├── styles/ # Global styles and tokens
34+
├── App.tsx # Main app component with routing
35+
└── main.tsx # Entry point
36+
```
2037

2138
## Getting Started
2239

23-
### Installation
24-
25-
Install the dependencies:
40+
### Install Dependencies
2641

2742
```bash
2843
npm install
2944
```
3045

3146
### Development
3247

33-
Start the development server with HMR:
34-
3548
```bash
3649
npm run dev
3750
```
3851

39-
Your application will be available at `http://localhost:5173`.
40-
41-
## Building for Production
52+
Open [http://localhost:5173](http://localhost:5173) in your browser.
4253

43-
Create a production build:
54+
### Build for Production
4455

4556
```bash
4657
npm run build
4758
```
4859

60+
The build output will be in the `dist/` directory.
61+
62+
### Preview Production Build
63+
64+
```bash
65+
npm run preview
66+
```
67+
68+
## Navigation
69+
70+
The app uses hash-based routing:
71+
72+
- `#home` - Home page
73+
- `#about` - About us
74+
- `#services` - Services listing
75+
- `#projects` - Portfolio projects
76+
- `#contact` - Contact form
77+
78+
## EmailJS Setup
79+
80+
To enable the contact form:
81+
82+
1. Sign up at [EmailJS](https://www.emailjs.com/)
83+
2. Create a service and email template
84+
3. Copy `.env.example` to `.env`
85+
4. Add your EmailJS credentials
86+
87+
See `EMAILJS_SETUP.md` for detailed instructions.
88+
4989
## Deployment
5090

51-
### DIY Deployment
91+
The built static files can be deployed to any static hosting service:
5292

53-
If you're familiar with deploying Node applications, the built-in app server is production-ready.
93+
- **GitHub Pages**: Copy `dist/` contents to your gh-pages branch
94+
- **Netlify**: Deploy the `dist/` folder
95+
- **Vercel**: Deploy the `dist/` folder
96+
- **Cloudflare Pages**: Deploy the `dist/` folder
5497

55-
Make sure to deploy the output of `npm run build`
98+
### Build Output
5699

57100
```
58-
├── package.json
59-
├── package-lock.json (or pnpm-lock.yaml, or bun.lockb)
60-
├── build/
61-
│ ├── client/ # Static assets
62-
│ └── server/ # Server-side code
101+
dist/
102+
├── index.html
103+
├── assets/
104+
│ ├── index-[hash].js
105+
│ └── index-[hash].css
106+
└── [static assets]
63107
```
108+
109+
## Technologies
110+
111+
- **React 19** - UI library
112+
- **TypeScript** - Type safety
113+
- **Vite** - Build tool
114+
- **CSS Modules** - Scoped styling
115+
- **Lucide React** - Icons
116+
- **Radix UI** - Accessible components
117+
- **EmailJS** - Email service
118+
- **React Hook Form** - Form management
119+
- **Sonner** - Toast notifications
120+
121+
## License
122+
123+
Private project - All rights reserved

v3/app/components/navigation.tsx

Lines changed: 0 additions & 81 deletions
This file was deleted.

v3/app/entry.point.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

v3/app/root.tsx

Lines changed: 0 additions & 83 deletions
This file was deleted.

v3/app/routes.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)