11"use client" ;
22
33import { type JSX } from "react" ;
4- import Image from "next/image" ;
54import { DocContent } from "../../components/doc-content/doc-content.js" ;
65
76export const ArchitectureOverviewScreen = ( ) : JSX . Element => (
@@ -21,13 +20,10 @@ export const ArchitectureOverviewScreen = (): JSX.Element => (
2120 depend on repositories.
2221 </ p >
2322
24- < Image
25- src = " /images/architecture-layers.svg"
23+ < img
24+ src = { ` ${ process . env . NEXT_PUBLIC_BASE_PATH ?? "" } /images/architecture-layers.svg` }
2625 alt = "ReCA Architecture Layers: Component → Store → Service → Repository"
27- width = { 720 }
28- height = { 400 }
29- style = { { width : "100%" , height : "auto" , display : "block" , margin : "24px auto" } }
30- unoptimized
26+ style = { { width : "100%" , maxWidth : 600 , display : "block" , margin : "24px auto" } }
3127 />
3228
3329 < h2 > The Four Layers</ h2 >
@@ -65,13 +61,10 @@ export const ArchitectureOverviewScreen = (): JSX.Element => (
6561 When a user interacts with the UI, the request flows through all layers and back:
6662 </ p >
6763
68- < Image
69- src = " /images/request-lifecycle.svg"
64+ < img
65+ src = { ` ${ process . env . NEXT_PUBLIC_BASE_PATH ?? "" } /images/request-lifecycle.svg` }
7066 alt = "Request lifecycle flowing from User through Component, Store, Service, Repository to Server and back"
71- width = { 720 }
72- height = { 220 }
73- style = { { width : "100%" , height : "auto" , display : "block" , margin : "24px auto" } }
74- unoptimized
67+ style = { { width : "100%" , maxWidth : 700 , display : "block" , margin : "24px auto" } }
7568 />
7669
7770 < ol >
@@ -102,13 +95,10 @@ export const ArchitectureOverviewScreen = (): JSX.Element => (
10295 diagram below shows the difference in how they trigger re-renders:
10396 </ p >
10497
105- < Image
106- src = " /images/store-flow.svg"
98+ < img
99+ src = { ` ${ process . env . NEXT_PUBLIC_BASE_PATH ?? "" } /images/store-flow.svg` }
107100 alt = "AutoStore (automatic proxy-based) vs Store (manual emitChange) flow comparison"
108- width = { 720 }
109- height = { 320 }
110- style = { { width : "100%" , height : "auto" , display : "block" , margin : "24px auto" } }
111- unoptimized
101+ style = { { width : "100%" , maxWidth : 700 , display : "block" , margin : "24px auto" } }
112102 />
113103
114104 < h2 > Store as a Modern Controller</ h2 >
0 commit comments