# zxwyvern/cs7-sc architecture

> Architecture diagram of the GitHub repository zxwyvern/cs7-sc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zxwyvern/cs7-sc
- Repository: https://github.com/zxwyvern/cs7-sc

## Overview

This repository is a static Astro frontend for a class website, with a landing page, shared layouts and UI, and presentation components. The tree identifies landing sections such as features, services, pricing, and FAQ, but the sampled source does not show how the page composes them, so those relationships are omitted. The README documents no backend or data workflow. A small formatting utility is also present; its callers were not shown.

Main entry points: [`src/pages/index.astro`](https://github.com/zxwyvern/cs7-sc/blob/master/src/pages/index.astro) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_landing["Landing sections"]
  node_home["Home page<br/>[index.astro]"]
  node_hero["Hero<br/>[Hero.astro]"]
  node_features["Features<br/>[Features.astro]"]
  node_services["Services<br/>[Services.astro]"]
  node_stats["Stats<br/>[Stats.astro]"]
  node_pricing["Pricing<br/>[Pricing.astro]"]
  node_faq["FAQ<br/>[Faq.astro]"]
  node_cta["Call to action<br/>[Cta.astro]"]
  node_landing_header["Landing header<br/>[Header.astro]"]
  node_landing_footer["Landing footer<br/>[Footer.astro]"]
end

subgraph group_shell["Page shell"]
  node_base_layout["Base layout<br/>[BaseLayout.astro]"]
  node_landing_layout["Landing layout"]
  node_navbar["Navbar<br/>[Navbar.astro]"]
  node_ui_footer["UI footer<br/>[Footer.astro]"]
  node_global_css["Global styles<br/>[global.css]"]
  node_landing_css["Landing styles<br/>[landing.css]"]
end

subgraph group_utility["Utility"]
  node_format["Formatting helpers<br/>[format.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"visits"| node_home

click node_home "https://github.com/zxwyvern/cs7-sc/blob/master/src/pages/index.astro"
click node_hero "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Hero.astro"
click node_features "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Features.astro"
click node_services "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Services.astro"
click node_stats "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Stats.astro"
click node_pricing "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Pricing.astro"
click node_faq "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Faq.astro"
click node_cta "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Cta.astro"
click node_landing_header "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Header.astro"
click node_landing_footer "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Footer.astro"
click node_base_layout "https://github.com/zxwyvern/cs7-sc/blob/master/src/layouts/BaseLayout.astro"
click node_landing_layout "https://github.com/zxwyvern/cs7-sc/blob/master/src/layouts/LandingLayout.astro"
click node_navbar "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/ui/Navbar.astro"
click node_ui_footer "https://github.com/zxwyvern/cs7-sc/blob/master/src/components/ui/Footer.astro"
click node_global_css "https://github.com/zxwyvern/cs7-sc/blob/master/src/styles/global.css"
click node_landing_css "https://github.com/zxwyvern/cs7-sc/blob/master/src/styles/landing.css"
click node_format "https://github.com/zxwyvern/cs7-sc/blob/master/src/lib/format.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_hero,node_features,node_services,node_stats,node_pricing,node_faq,node_cta,node_landing_header,node_landing_footer toneBlue
class node_base_layout,node_landing_layout,node_navbar,node_ui_footer,node_global_css,node_landing_css toneAmber
class node_format toneMint
class node_visitor toneIndigo
```

## Components

### Landing sections

- [Home page](https://github.com/zxwyvern/cs7-sc/blob/master/src/pages/index.astro): `src/pages/index.astro`
- [Hero](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Hero.astro): `src/components/landing/Hero.astro`
- [Features](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Features.astro): `src/components/landing/Features.astro`
- [Services](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Services.astro): `src/components/landing/Services.astro`
- [Stats](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Stats.astro): `src/components/landing/Stats.astro`
- [Pricing](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Pricing.astro): `src/components/landing/Pricing.astro`
- [FAQ](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Faq.astro): `src/components/landing/Faq.astro`
- [Call to action](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Cta.astro): `src/components/landing/Cta.astro`
- [Landing header](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Header.astro): `src/components/landing/Header.astro`
- [Landing footer](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/landing/Footer.astro): `src/components/landing/Footer.astro`

### Page shell

- [Base layout](https://github.com/zxwyvern/cs7-sc/blob/master/src/layouts/BaseLayout.astro): `src/layouts/BaseLayout.astro`
- [Landing layout](https://github.com/zxwyvern/cs7-sc/blob/master/src/layouts/LandingLayout.astro): `src/layouts/LandingLayout.astro`
- [Navbar](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/ui/Navbar.astro): `src/components/ui/Navbar.astro`
- [UI footer](https://github.com/zxwyvern/cs7-sc/blob/master/src/components/ui/Footer.astro): `src/components/ui/Footer.astro`
- [Global styles](https://github.com/zxwyvern/cs7-sc/blob/master/src/styles/global.css): `src/styles/global.css`
- [Landing styles](https://github.com/zxwyvern/cs7-sc/blob/master/src/styles/landing.css): `src/styles/landing.css`

### Utility

- [Formatting helpers](https://github.com/zxwyvern/cs7-sc/blob/master/src/lib/format.ts): `src/lib/format.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Home page: visits (evidence: `README.md`)
