App Front Page
/app-homeContent for the front page (Library) of the Sharh mobile app. The Sharh team authors blocks of HTML and CSS; clients fetch the ones that are live and draw them on the Library page. Creating and managing blocks is restricted to administrators and is not part of the public API.
Get the front-page blocks that are live now
Returns every block that is published and inside its optional time window (`startsAt` has passed or is unset, `endsAt` is in the future or unset), ordered by `order` ascending and then by creation time. `baseCss` is the style sheet every block starts from (theme colours as CSS variables with light and dark values, and helper classes); a client renders a block by applying `baseCss`, then the block's own `css`, to its `html`. `placement` is `hero` (in place of the built-in opening section), `afterHero` (under it) or `bottom`; `section` is `translations`, `vision` or `both`, naming the half of the Library that shows the block. Scripts and inline event handlers are removed when a block is saved, and the Sharh app renders blocks with JavaScript disabled. Links may use the `sharh://` scheme for in-app destinations (for example `sharh://book/<slug>`). The response is cacheable for 60 seconds.
Errors
500JSON `{ "message": "Error fetching app home content" }`.
curl -X GET "https://app.ummahspot.com/app-home"{
"baseCss": ":root { --paper: #FFF9F2; --ink: #2A0E12; --red: #D92B25; ... }",
"blocks": [
{
"id": "6afdfbce570470421a9c71fd",
"html": "<div class=\"card\"><h3>New in the library</h3><p><a href=\"sharh://book/al-sullam-al-munawraq\">Start reading</a></p></div>",
"css": "h3 { color: var(--red); }",
"placement": "afterHero",
"section": "translations",
"order": 0,
"updatedAt": "2026-11-18T19:26:06.379Z"
}
]
}