Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding new architecture diagrams #889

Merged
merged 4 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions docs/get-started/concepts/architecture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ Linea aims to be a fully decentralized, permissionless network. To support this
Linea is in mainnet status, and the team is fervently working towards full decentralization.
The following is a good representation of the main components of Linea, and how they interact:

<div class="center-container">
<div class="img-large">
<div className="responsive-graphic">
<picture>
<source
srcSet="/img/get_started/concepts/architecture/Linea_architecture_mobile.svg"
media="(max-width: 1499px)"
/>
<source
srcSet="/img/get_started/concepts/architecture/Linea_architecture_desktop.svg"
media="(min-width: 1500px)"
/>
<img
src="/img/get_started/concepts/architecture/Linea_architecture_map.png"
alt="Linea architecture"
src="/img/get_started/concepts/architecture/Linea_architecture_desktop.svg"
alt="Linea architecture diagram"
/>
</div>
</picture>
</div>

## First of all: what _is_ Linea, anyway? What's a zkEVM L2?
Expand Down
27 changes: 27 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -1452,3 +1452,30 @@ div[aria-label="Expand sidebar"] {
.theme-doc-markdown .markdown {
margin-right: 10px !important;
}

/* responsive classes for architecture diagram */
.responsive-graphic {
text-align: center;
}

@media (width <= 1499px) {
.responsive-graphic picture {
display: block;
padding-left: 5vw;
padding-right: 5vw;
}
}

@media (width <= 996px) {
.responsive-graphic picture {
padding-left: 15vw;
padding-right: 15vw;
}
}

@media (width <= 700px) {
.responsive-graphic picture {
padding-left: 6vw;
padding-right: 6vw;
}
}
Loading
Loading