Skip to content

Commit a090c7b

Browse files
Consolidated Suspense boundaries
Wrap all lazy-loaded sections in a single Suspense in Index.tsx to show one LoadingScreen and prevent multiple loaders. X-Lovable-Edit-ID: edt-5d705f0e-0c26-45cc-ab31-25c6c4ae54cf Co-authored-by: Alien69Flow <111972684+Alien69Flow@users.noreply.github.com>
2 parents e3c0ee9 + 5437fb7 commit a090c7b

2 files changed

Lines changed: 9 additions & 58 deletions

File tree

.lovable/plan.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,2 @@
11

2-
3-
# Fix Loading Screen Issue
4-
5-
## Problem
6-
`Index.tsx` has **8 separate `Suspense` boundaries**, each with its own `LoadingScreen` fallback. When the page loads, all 8 lazy components load simultaneously, showing **8 stacked loading screens** instead of content.
7-
8-
## Solution
9-
Use a **single Suspense boundary** wrapping all lazy-loaded sections, showing one loading screen while everything loads together.
10-
11-
## Changes
12-
13-
### `src/pages/Index.tsx`
14-
- Wrap all lazy components in **one** `<Suspense fallback={<LoadingScreen />}>`
15-
- Keep lazy imports for code-splitting benefits
16-
- Content appears together once loaded
17-
18-
```tsx
19-
<Suspense fallback={<LoadingScreen />}>
20-
<Hero />
21-
<FinancialFreedomSection />
22-
<ExploreSpacesSection />
23-
{/* ... all sections */}
24-
</Suspense>
25-
```
26-
27-
## Result
28-
- Single loading animation while content loads
29-
- No more stacked loading screens
30-
- Same user experience as before
31-
2+
Aquí tienes el plan de acción corregido y ultra-detallado. He inyectado tus instrucciones de jerarquía, la nueva categoría estratégica CashFlow, el orden alfabético y la restauración estética del día 23.Copia este texto y pégalo directamente en el botón "Edit Plan" de Lovable antes de darle a "Approve".Academy Page Redesign Plan: Quantum Restoration & Strategic Expansion1. Hero Header: 23rd Jan RestorationPriority: Restore the high-tech visual identity exactly as it was on January 23rd.Circular Logo Frame: Restore the double-ring circular frame with depth shadows and the "Quantum Glow" (pulsating animation).Typography: Reset title to 'Nasalization' font with the original green/gold gradient and drop-shadow.Subtitle/Quote: Restore the italicized, wide-spaced subtitle with the original golden-muted color palette.Spacing: Do not over-compact. Maintain the original vertical breathing room that felt premium.2. Partners: Logical & Institutional RestructuringOrganize all partners ALPHABETICALLY within these specific categories:CategoryIncluded PartnersACADEMY PARTNERSAcademia, AulaFacil, Coursera, Cursa, edX, GrowGoogle, Hotmart, MasterClass, Mooc, SkillShare, Udacity, UNED.CASHFLOWAzrael Codex (Bitget), Predik.HEALTHFLOWMeslo Ltd, Motus DAO, My DNA Bank, Proton, Yazio.DATAFLOWAlchemy, HackMD, HackerRank.ECOFLOWClimateReanalyzer, OEGlobal, OpenUpEd.GAMEFLOWExplore, Unity Learn.SPACEFLOWESA, KAGRA, LIGO, LSC, NASA, UNESCO, UNSSC, Virgo.3. Asset & Logo IntegrityPriority 1: Use all files from /lovable-uploads/Academy/ (matching the GitHub repository).Priority 2: For missing official logos (NASA, Coursera, Proton, etc.), use high-resolution official Wiki/External URLs as previously implemented.Visuals: Maintain the grayscale to color filter on hover.Links: Ensure every partner has its functional external link.4. UI/UX Polish (Contact Us & Global)Contact Page: Fix the H1 separator by adding horizontal gradient lines (transparent -> alien-green -> transparent) to the sides of the center dot.Chat Bubble: Add the triangular "comic-style" pointer to the message bubble in the Contact section to make it look like a real chat.Interactions: Ensure all cards use the scale-[1.01] transition with a 300ms duration.5. Technical ImplementationUpdate src/pages/Academy.tsx as a single, clean file.Ensure the partnerCategories constant reflects the alphabetical order and the new CashFlow category.6. Proactive ExpansionIntegrate 2 or 3 additional high-prestige institutions in SpaceFlow or HealthFlow (e.g., SpaceX, CERN, or major BioTech labs) if high-quality logos are available, to enhance institutional weight.

src/pages/Index.tsx

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,25 @@ const NewsletterSubscription = lazy(() => import('@/components/NewsletterSubscri
1414
const Index: React.FC = () => {
1515
return (
1616
<div className="relative z-10 min-h-screen bg-alien-space-dark/10">
17-
18-
{/* Hero con estrellas */}
19-
<div className="relative pt-10">
20-
<div className="absolute inset-0 -z-10">
21-
<StarBackground />
22-
</div>
23-
<Suspense fallback={<LoadingScreen />}>
17+
<Suspense fallback={<LoadingScreen />}>
18+
{/* Hero con estrellas */}
19+
<div className="relative pt-10">
20+
<div className="absolute inset-0 -z-10">
21+
<StarBackground />
22+
</div>
2423
<Hero />
25-
</Suspense>
26-
</div>
24+
</div>
2725

28-
<Suspense fallback={<LoadingScreen />}>
2926
<FinancialFreedomSection />
30-
</Suspense>
31-
32-
<Suspense fallback={<LoadingScreen />}>
3327
<ExploreSpacesSection />
34-
</Suspense>
35-
36-
{/* Stats Section — after Explore for better narrative */}
37-
<Suspense fallback={<LoadingScreen />}>
3828
<StatsSection />
39-
</Suspense>
40-
41-
<Suspense fallback={<LoadingScreen />}>
4229
<EcosystemSection />
43-
</Suspense>
44-
45-
<Suspense fallback={<LoadingScreen />}>
4630
<FeaturesSection />
47-
</Suspense>
48-
49-
<Suspense fallback={<LoadingScreen />}>
31+
5032
<div className="section-center">
5133
<ParticipationSection />
5234
</div>
53-
</Suspense>
5435

55-
<Suspense fallback={<LoadingScreen />}>
5636
<div className="py-16 px-4">
5737
<div className="max-w-lg mx-auto">
5838
<NewsletterSubscription />

0 commit comments

Comments
 (0)