11"use client" ;
22
33import { type JSX } from "react" ;
4+ import Image from "next/image" ;
45import { DocContent } from "../../components/doc-content/doc-content.js" ;
56
67export const ArchitectureOverviewScreen = ( ) : JSX . Element => (
@@ -20,10 +21,13 @@ export const ArchitectureOverviewScreen = (): JSX.Element => (
2021 depend on repositories.
2122 </ p >
2223
23- < img
24+ < Image
2425 src = "/images/architecture-layers.svg"
2526 alt = "ReCA Architecture Layers: Component → Store → Service → Repository"
26- style = { { width : "100%" , maxWidth : 600 , display : "block" , margin : "24px auto" } }
27+ width = { 720 }
28+ height = { 400 }
29+ style = { { width : "100%" , height : "auto" , display : "block" , margin : "24px auto" } }
30+ unoptimized
2731 />
2832
2933 < h2 > The Four Layers</ h2 >
@@ -61,10 +65,13 @@ export const ArchitectureOverviewScreen = (): JSX.Element => (
6165 When a user interacts with the UI, the request flows through all layers and back:
6266 </ p >
6367
64- < img
68+ < Image
6569 src = "/images/request-lifecycle.svg"
6670 alt = "Request lifecycle flowing from User through Component, Store, Service, Repository to Server and back"
67- style = { { width : "100%" , maxWidth : 700 , display : "block" , margin : "24px auto" } }
71+ width = { 720 }
72+ height = { 220 }
73+ style = { { width : "100%" , height : "auto" , display : "block" , margin : "24px auto" } }
74+ unoptimized
6875 />
6976
7077 < ol >
@@ -95,10 +102,13 @@ export const ArchitectureOverviewScreen = (): JSX.Element => (
95102 diagram below shows the difference in how they trigger re-renders:
96103 </ p >
97104
98- < img
105+ < Image
99106 src = "/images/store-flow.svg"
100107 alt = "AutoStore (automatic proxy-based) vs Store (manual emitChange) flow comparison"
101- style = { { width : "100%" , maxWidth : 700 , display : "block" , margin : "24px auto" } }
108+ width = { 720 }
109+ height = { 320 }
110+ style = { { width : "100%" , height : "auto" , display : "block" , margin : "24px auto" } }
111+ unoptimized
102112 />
103113
104114 < h2 > Store as a Modern Controller</ h2 >
0 commit comments