How tux3er-isma/viho-oblegutide works
Purpose and runtime
This is a static Astro site, structured as a single landing page rather than an application with backend services or APIs. Astro provides the development server and production build pipeline; the default output is a deployable static site. Primary route: src/pages/index.astro.
Composition entry points
src/pages/index.astro is the route-level entry point. It should assemble the shared document shell from src/layouts/Layout.astro and page regions from:
• src/components/Header/Header.astro
• src/components/Main/Main.astro
• src/components/Footer/Footer.astro
The layout is the document-level boundary for page metadata, global styling/font setup, and shared <html>/<head>/<body> structure.
Header and navigation
The header is a reusable site-chrome component:
• src/components/Header/Header.astro
• src/components/Header/Nav.astro
Nav.astro isolates navigation markup from the header container, allowing navigation links and responsive presentation to evolve without changing the page shell.
Main-page orchestration
src/components/Main/Main.astro is the primary content coordinator. It composes eight ordered landing-page sections, representing the site’s main information flow:
• src/components/Main/Section1/Section1.astro
• src/components/Main/Section2/Section2.astro
• src/components/Main/Section3/Section3.astro
• src/components/Main/Section4/Section4.astro
• src/components/Main/Section5/Section5.astro
• src/components/Main/Section6/Section6.astro
• src/components/Main/Section7/Section7.astro
• src/components/Main/Section8/Section8.astro
This keeps route composition shallow while each section owns its internal content and layout.
Repeated content primitives
Several sections separate repeated visual/content units into local subcomponents:
• Card patterns: src/components/Main/Section1/Card.astro, src/components/Main/Section2/Card.astro, src/components/Main/Section3/Card.astro
• Supporting patterns: src/components/Main/Section2/Badge.astro, src/components/Main/Section4/Badge.astro, src/components/Main/Section5/Entry.astro
• Content-specific units: src/components/Main/Section6/FAQ.astro, src/components/Main/Section7/Marks.astro, src/components/Main/Section8/Article.astro
The boundary is intentionally section-local: shared abstractions are not centralized across unrelated sections.
Styling and assets
The repository contains a local display font at src/assets/Fonts/brasika-display-trial.otf. Shared Sass utilities are located in src/styles/_mixins.scss. Public, directly served assets belong under public/. Styling and asset imports are expected to be resolved during Astro’s build rather than supplied by an external CMS or asset service.
Infrastructure boundaries
There is no evidence of server-side persistence, authentication, external APIs, client-state management, or third-party service integrations. The material infrastructure is Node/npm plus Astro configuration in astro.config.mjs; builds produce static output for deployment to a static hosting platform.
Main entry points: Main.astro Main coordinator · index.astro Home route · Layout.astro Document layout · Header.astro Header
Components 20
Landing page
- Home route · Primary landing-page entry point.
src/pages/index.astro - Document layout · Owns document structure, metadata, and global setup.
src/layouts/Layout.astro - Header
src/components/Header/Header.astro - Navigation
src/components/Header/Nav.astro - Main coordinator · Composes the ordered landing-page sections.
src/components/Main/Main.astro - Footer
src/components/Footer/Footer.astro - Section 1 · Uses a local Card pattern.
src/components/Main/Section1/Section1.astro - Section 2 · Uses local Card and Badge patterns.
src/components/Main/Section2/Section2.astro - Section 3 · Uses a local Card pattern.
src/components/Main/Section3/Section3.astro - Section 4 · Uses a local Badge pattern.
src/components/Main/Section4/Section4.astro - Section 5 · Uses a local Entry pattern.
src/components/Main/Section5/Section5.astro - Section 6 · Uses a local FAQ unit.
src/components/Main/Section6/Section6.astro - Section 7 · Uses a local Marks unit.
src/components/Main/Section7/Section7.astro - Section 8 · Uses a local Article unit.
src/components/Main/Section8/Section8.astro - Shared Sass utilities
src/styles/_mixins.scss - Display font
src/assets/Fonts/brasika-display-trial.otf
Static build
- Astro configuration
astro.config.mjs - Astro build · Resolves components, styles, and local assets into static output.
- Static site output
- Static hosting
Connections 19
- Home route → Document layout: uses
- Home route → Header: composes
- Home route → Main coordinator: composes
- Home route → Footer: composes
- Header → Navigation: contains
- Main coordinator → Section 1: first
- Main coordinator → Section 2: then
- Main coordinator → Section 3: then
- Main coordinator → Section 4: then
- Main coordinator → Section 5: then
- Main coordinator → Section 6: then
- Main coordinator → Section 7: then
- Main coordinator → Section 8: last
- Document layout → Shared Sass utilities: uses
- Document layout → Display font: loads
- Astro configuration → Astro build: configures
- Home route → Astro build: built by
- Astro build → Static site output: generates
- Static site output → Static hosting: deploys to