# my-prayers/my-prayers-landing-page architecture

> Architecture diagram of the GitHub repository my-prayers/my-prayers-landing-page, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-08-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/my-prayers/my-prayers-landing-page
- Repository: https://github.com/my-prayers/my-prayers-landing-page

## Overview

##### Project Type and Purpose
- This is a Jekyll-based static site template designed to generate an iOS app landing page and deploy it to GitHub Pages in minutes.
- Key indicators: presence of `_config.yml`, `_layouts`, `_includes`, `_pages`, Sass files, a Gemfile, and a README that walks through forking, setting an App ID, uploading assets, and letting GitHub Pages rebuild automatically.

##### File Structure Analysis
- Top-level files:
- `Gemfile` / `LICENSE` / `README.md` / `.gitignore` / `CNAME`
- `index.html` — entry point (Liquid templating)
- `main.scss` — base SCSS entrypoint
- Directories:
- `_includes/` — reusable partial HTML templates (header, footer, features, etc.)
- `_layouts/` — page wrappers (default.html, page.html)
- `_pages/` — Markdown content pages (Changelog, Privacy Policy)
- `_sass/` — Sass modules (base styles, layout, GitHub Markdown overrides)
- `assets/` — static assets: `screenshot/` and `videos/` for user uploads
- Deployment config: `CNAME` for custom domain, GitHub Pages via repo.

##### README Insights
- Core flow: fork → edit `_config.yml` → add screenshot/video → write Markdown pages → commit → GitHub Pages builds & publishes.
- Tech stack calls out: Jekyll (Ruby), Liquid templates, Sass, Markdown, FontAwesome.

a. Main Components
1. **Developer Git Workflow**: Developer forks the repo and commits changes.
2. **Git Repository**: Stores all source files (_config.yml, Markdown, templates, Sass, assets).
3. **Jekyll Build Engine**: Reads source files, processes Liquid templates & Sass, produces static HTML/CSS/JS.
4. **Static Asset Pipeline**: Sass compiler → CSS, asset folders (images/videos).
5. **Output Static Site**: `_site/` folder (implied), contains final HTML/CSS/assets.
6. **GitHub Pages Hosting**: Automatically triggers build on push and serves the static site.
7. **Custom Domain / CDN**: (via CNAME) optional layer in front of GitHub Pages.

b. Relationships & Data Flow
- Developer → pushes commits → Git repository
- GitHub Pages hook → invokes Jekyll Build Engine
- Build Engine reads: `_config.yml` + `_layouts` + `_includes` + `_pages` + Sass modules + assets → produces static site
- Static site → deployed to GitHub Pages → optional custom domain/CDN → delivered to end users
- User requests → DNS → GitHub Pages → browser

c. Architectural Patterns & Principles
- **Template Inheritance**: `_layouts` wrap pages; `_includes` inject reusable fragments.
- **Asset Pipeline**: Sass partials in `_sass` compiled by Jekyll’s built-in converter.
- **Content-as-Code**: Markdown in `_pages` drives content, separated from layout/design.
- **Convention over Configuration**: standard Jekyll directory structure and naming.

d. Key Technologies & Frameworks
- Ruby + Jekyll (Liquid templating)
- Sass (via Jekyll converter)
- Markdown (Kramdown)
- Git/GitHub Pages
- HTML5/CSS3, FontAwesome

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Development"
        Dev["Developer Workstation"]:::dev
    end
    Repo(("GitHub Repo")):::data
    Dev -->|push code| Repo

    subgraph "Source Files"
        cfg["_config.yml"]:::code
        gem["Gemfile"]:::code
        idx["index.html"]:::code
        scss["main.scss"]:::code
        lay1["_layouts/default.html"]:::code
        lay2["_layouts/page.html"]:::code
        inc1["_includes/head.html"]:::code
        inc2["_includes/header.html"]:::code
        inc3["_includes/footer.html"]:::code
        inc4["_includes/features.html"]:::code
        inc5["_includes/appstoreimages.html"]:::code
        inc6["_includes/screencontent.html"]:::code
        md1["_pages/changelog.md"]:::code
        md2["_pages/privacypolicy.md"]:::code
        sass1["_sass/base.scss"]:::code
        sass2["_sass/layout.scss"]:::code
        sass3["_sass/github-markdown.scss"]:::code
        as1["assets/screenshot/"]:::assets
        as2["assets/videos/"]:::assets
        cnf["CNAME"]:::code
        read["README.md"]:::code
        lic["LICENSE"]:::code
        gi[".gitignore"]:::code
    end

    Repo -->|GitHub Pages hook| Build["Jekyll Build Engine"]:::process

    Build -->|reads| cfg
    Build -->|reads| idx
    Build -->|reads| gem
    Build -->|reads| lay1
    Build -->|reads| lay2
    Build -->|reads| inc1
    Build -->|reads| inc2
    Build -->|reads| inc3
    Build -->|reads| inc4
    Build -->|reads| inc5
    Build -->|reads| inc6
    Build -->|reads| md1
    Build -->|reads| md2
    Build -->|reads| as1
    Build -->|reads| as2

    subgraph "Static Asset Pipeline"
        SassComp["Sass Compiler"]:::process
        sass1 --> SassComp
        sass2 --> SassComp
        sass3 --> SassComp
        SassComp -->|"compiles"| css["CSS Output"]:::assets
    end

    Build -->|"runs"| SassComp
    Build -->|"generates"| Site["_site/"]:::assets
    Site -->|"deploy"| Pages["GitHub Pages Host"]:::cloud
    Pages --> CDN["Custom Domain / CDN"]:::cloud
    Pages --> End["End User Browser"]:::client
    CDN --> End

    click cfg "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_config.yml"
    click gem "https://github.com/my-prayers/my-prayers-landing-page/tree/master/Gemfile"
    click idx "https://github.com/my-prayers/my-prayers-landing-page/blob/master/index.html"
    click scss "https://github.com/my-prayers/my-prayers-landing-page/blob/master/main.scss"
    click lay1 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_layouts/default.html"
    click lay2 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_layouts/page.html"
    click inc1 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_includes/head.html"
    click inc2 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_includes/header.html"
    click inc3 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_includes/footer.html"
    click inc4 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_includes/features.html"
    click inc5 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_includes/appstoreimages.html"
    click inc6 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_includes/screencontent.html"
    click md1 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_pages/changelog.md"
    click md2 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_pages/privacypolicy.md"
    click sass1 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_sass/base.scss"
    click sass2 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_sass/layout.scss"
    click sass3 "https://github.com/my-prayers/my-prayers-landing-page/blob/master/_sass/github-markdown.scss"
    click as1 "https://github.com/my-prayers/my-prayers-landing-page/tree/master/assets/screenshot/"
    click as2 "https://github.com/my-prayers/my-prayers-landing-page/tree/master/assets/videos/"
    click cnf "https://github.com/my-prayers/my-prayers-landing-page/tree/master/CNAME"
    click read "https://github.com/my-prayers/my-prayers-landing-page/blob/master/README.md"
    click lic "https://github.com/my-prayers/my-prayers-landing-page/tree/master/LICENSE"
    click gi "https://github.com/my-prayers/my-prayers-landing-page/blob/master/.gitignore"

    classDef dev fill:#f0f0f0,stroke:#333
    classDef code fill:#cce5ff,stroke:#0366d6
    classDef data fill:#b2f2bb,stroke:#2f9e44
    classDef process fill:#ffe066,stroke:#f08c00
    classDef assets fill:#d0bfff,stroke:#5f3dc4
    classDef cloud fill:#99d6ff,stroke:#339af0
    classDef client fill:#ffdfbf,stroke:#e8590c
```
