Skip to content

Commit c673089

Browse files
committed
feat(refactor): Refactor and optimize codebase:
- Removed unused CSS animations and consolidated styles in index.css. - Updated font imports for optimization. - Simplified component definitions by removing explicit React.FC type annotations. - Organized blog post imports and removed commented-out sample data. - Adjusted image paths for portfolio items and author images. - Created new LoadingScreen.css for loading animations. - Added markdown.css for consistent styling of blog posts. - Enhanced Vite configuration for better chunking and optimized dependencies. - Updated Tailwind CSS configuration to include additional content paths.
1 parent 717b691 commit c673089

Some content is hidden

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

68 files changed

+218
-1127
lines changed

CHANGELOG.md

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,60 @@
22

33
## Date: June 12, 2025
44

5+
### 🚀 Complete Codebase Optimization & Cleanup
6+
7+
#### Asset Optimization
8+
9+
- **Image Compression**: Optimized all large images for web performance
10+
- `sayak.png`: 2.5MB → 74KB (97% reduction)
11+
- `epic-learning-sync.png`: 239KB → 71KB (70% reduction)
12+
- `zeomed-services.png`: 231KB → 44KB (81% reduction)
13+
- Converted PNG to optimized JPEG format where appropriate
14+
- Maintained image quality while dramatically reducing file sizes
15+
16+
#### React 19 Optimization
17+
18+
- **React Import Cleanup**: Removed unnecessary React imports from 29 TSX files
19+
- Leveraged React 19's automatic JSX transform
20+
- Removed `React.FC` typing in favor of cleaner function declarations
21+
- Updated `React.createElement` calls to JSX syntax in test files
22+
- Optimized `index.tsx` to use named imports (`StrictMode`)
23+
24+
#### Dependency Management
25+
26+
- **Unused Dependency Removal**: Eliminated 56 unused packages
27+
- Removed `@react-three/fiber`, `@react-three/drei`, `three` packages
28+
- Cleaned up Three.js mocks from test setup
29+
- Updated Vite configuration to remove three-vendors chunk
30+
- Reduced bundle complexity and improved build performance
31+
32+
#### Bundle Optimization
33+
34+
- **Enhanced Chunk Splitting**: Improved from previous optimization
35+
- Removed unused three-vendors chunk
36+
- Maintained optimized vendor chunks:
37+
- react-core: 185KB (React and ReactDOM)
38+
- react-router: 31KB (React Router)
39+
- markdown-vendors: 156KB (Markdown processing)
40+
- vendors: 230KB (Other libraries)
41+
42+
#### Code Quality Improvements
43+
44+
- **Test File Optimization**: Updated all test files to React 19 standards
45+
- **Configuration Cleanup**: Streamlined build and development configurations
46+
- **Type Safety**: Maintained full TypeScript compliance throughout optimization
47+
48+
#### Performance Results
49+
50+
- **Build Time**: Consistent ~1.67s build performance
51+
- **Bundle Size**: Maintained efficient 18MB total build size
52+
- **Asset Loading**: Significantly faster image loading due to compression
53+
- **Development Experience**: Cleaner, more maintainable codebase
54+
55+
# ThinkRED Website - Recent Updates
56+
57+
## Date: June 12, 2025
58+
559
### 🤖 Avatar Assistant Improvements
660

761
#### Fixed Sleep Behavior
@@ -111,4 +165,4 @@
111165

112166
---
113167

114-
**Summary**: Successfully fixed avatar assistant sleep behavior, implemented intelligent navigation filtering, expanded technology stack display, and updated documentation to reflect latest capabilities.
168+
**Summary**: Successfully fixed avatar assistant sleep behavior, implemented intelligent navigation filtering, expanded technology stack display, and updated documentation to reflect latest capabilities. Complete codebase optimization and cleanup achieved with improved asset loading, dependency management, and bundle optimization.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ThinkRED Technologies Website
22

3-
![ThinkRED Logo](public/assets/images/thinkRED-np.svg)
3+
![ThinkRED Logo](public/assets/logos/thinkRED-np.svg)
44

55
> **Simplify Technology & Experience!**
66

index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,24 @@
2222
<!-- Open Graph / Facebook -->
2323
<meta property="og:title" content="ThinkRED Technologies | Simplify Technology & Experience" />
2424
<meta property="og:description" content="ThinkRED Technologies - We build cutting-edge web applications, platforms, and infrastructure solutions that transform businesses and delight users." />
25-
<meta property="og:image" content="/assets/images/thinkRED-np.svg" />
25+
<meta property="og:image" content="/assets/logos/thinkRED-np.svg" />
2626
<meta property="og:url" content="https://thinkredtech.github.io" />
2727
<meta property="og:type" content="website" />
2828

2929
<!-- Twitter -->
3030
<meta name="twitter:card" content="summary_large_image" />
3131
<meta name="twitter:title" content="ThinkRED Technologies | Simplify Technology & Experience" />
3232
<meta name="twitter:description" content="ThinkRED Technologies - We build cutting-edge web applications, platforms, and infrastructure solutions that transform businesses and delight users." />
33-
<meta name="twitter:image" content="/assets/images/thinkRED-np.svg" />
33+
<meta name="twitter:image" content="/assets/logos/thinkRED-np.svg" />
3434

3535
<!-- Icons -->
3636
<link rel="icon" href="/favicon.ico" />
37-
<link rel="apple-touch-icon" href="/assets/images/thinkred/apple-touch-icon.png" />
37+
<link rel="apple-touch-icon" href="/assets/icons/thinkred/apple-touch-icon.png" />
3838
<link rel="manifest" href="/manifest.json" />
3939

40-
<!-- Fonts -->
41-
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
40+
<!-- Preload critical fonts -->
41+
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'" />
42+
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap" /></noscript>
4243

4344
<!-- GitHub Pages SPA redirect handling -->
4445
<script type="text/javascript">
@@ -71,13 +72,14 @@
7172
justify-content: center;
7273
height: 100vh;
7374
text-align: center;
74-
font-family: Arial, sans-serif;
75+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
7576
background-color: #f5f5f5;
7677
color: #333;
78+
padding: 20px;
7779
"
7880
>
79-
<h1>JavaScript Required</h1>
80-
<p>
81+
<h1 style="margin-bottom: 20px;">JavaScript Required</h1>
82+
<p style="max-width: 600px; line-height: 1.6;">
8183
This website requires JavaScript to function properly. Please enable
8284
JavaScript in your browser and refresh the page.
8385
</p>

0 commit comments

Comments
 (0)