|
| 1 | +# Application Configuration System |
| 2 | + |
| 3 | +This system allows you to easily control whether applications are open or closed across the entire website by changing just one setting. |
| 4 | + |
| 5 | +## How to Use |
| 6 | + |
| 7 | +### To Open Applications: |
| 8 | +1. Open `src/config/applicationConfig.ts` |
| 9 | +2. Set `googleFormUrl` to your Google Form URL: |
| 10 | + ```typescript |
| 11 | + googleFormUrl: "https://forms.google.com/your-form-id", |
| 12 | + ``` |
| 13 | + |
| 14 | +### To Close Applications: |
| 15 | +1. Open `src/config/applicationConfig.ts` |
| 16 | +2. Set `googleFormUrl` to `null` or empty string: |
| 17 | + ```typescript |
| 18 | + googleFormUrl: null, |
| 19 | + // or |
| 20 | + googleFormUrl: "", |
| 21 | + ``` |
| 22 | + |
| 23 | +## What Happens |
| 24 | + |
| 25 | +- **When applications are OPEN**: All "Join Us" buttons will link to your Google Form and open in a new tab |
| 26 | +- **When applications are CLOSED**: All "Join Us" buttons will link to the "Application Period Closed" page |
| 27 | + |
| 28 | +## Affected Components |
| 29 | + |
| 30 | +The following components automatically use this configuration: |
| 31 | +- Desktop Navigation |
| 32 | +- Mobile Navigation |
| 33 | +- Hero Section |
| 34 | +- Footer |
| 35 | +- Contact Page |
| 36 | +- Team Member cards (for open positions) |
| 37 | +- Project cards (for recruiting projects) |
| 38 | + |
| 39 | +## File Location |
| 40 | + |
| 41 | +The configuration is located at: |
| 42 | +``` |
| 43 | +src/config/applicationConfig.ts |
| 44 | +``` |
| 45 | + |
| 46 | +## Example Configuration |
| 47 | + |
| 48 | +```typescript |
| 49 | +export const APPLICATION_CONFIG = { |
| 50 | + // Set this to your Google Form URL when applications are open |
| 51 | + googleFormUrl: "https://forms.google.com/your-actual-form-id", |
| 52 | + |
| 53 | + // The system automatically detects if applications are open |
| 54 | + // and routes to the appropriate destination |
| 55 | +}; |
| 56 | +``` |
| 57 | + |
| 58 | +## Benefits |
| 59 | + |
| 60 | +- ✅ **Single source of truth** - Change one setting, affects entire site |
| 61 | +- ✅ **Automatic routing** - No need to update multiple files |
| 62 | +- ✅ **Professional fallback** - Shows proper "Application Closed" page when needed |
| 63 | +- ✅ **Easy maintenance** - No need to remember all the places to update |
| 64 | +- ✅ **Consistent behavior** - All application links behave the same way |
0 commit comments