# tedy69/jannata-resort architecture

> Architecture diagram of the GitHub repository tedy69/jannata-resort, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tedy69/jannata-resort
- Repository: https://github.com/tedy69/jannata-resort

## Overview

##### Overall Architecture & Main Layers
- Frontend/Presentation Layer: Since Nuxt.js is used, this layer is built with Vue.js components.
- Routing & Page Management: The pages directory (with index.vue) implies automatic Vue Router setup.
- Layouts: The layouts directory (with default.vue) sets the overall page structure, global menus, headers/footers, etc.
- Global State Management: The store directory shows that Vuex is activated, maintaining global application state.
- Asset & Styling Organization: The assets (fonts, images) and styles directories provide the raw resources and CSS/SCSS styles.
- Plugins & Utilities: The plugins (anime.js, jarallax.js) and utils (button.js) directories indicate additional client-side functionality and helper scripts.
- Build & Configuration: The nuxt.config.js, package.json, and related configuration files signal project configuration, dependencies, and build instructions.

a. Client/Browser: Users access the resort website.
b. Nuxt Application: Acts as the central orchestrator.
c. Core Components:
- Pages (e.g., pages/index.vue) that map to website routes.
- Layout (layouts/default.vue) that wraps all pages.
- Vue Components (in the components directory):
- Accomodation, Banner, Dinner, Relaxing, Navigation, Testimonial, etc., representing modular sections of the website.
- Specific utility components like IconLink.vue and Logo.vue.
- Store (store/store.js) for centralized state management.
- Plugins (plugins/anime.js and plugins/jarallax.js) that enhance interactions/animations.
- Assets & Styles: The assets directory (fonts, images) and styles directory (global and normalize styles) are used throughout the UI.
- Utils: Additional helper functions support predictable behavior (e.g., utils/button.js).

- “Pages & Routing” – include pages/index.vue showing that it’s the main entry point.
- “Store (Vuex)” – illustrate this as a shared data management layer, connecting to components that require global state.
- “Plugins” – show plugins (anime.js, jarallax.js) influencing UI components for enhanced behaviors.
- “Assets & Styling” – group assets and styles, highlighting that these resources (fonts, images, SCSS files) are injected into the Vue components.
- “Utilities” – include helper/utility functions for additional logic.
- From User to Nuxt Application.
- From Pages to Layouts and relevant Components.
- Between Components and the Store, highlighting data flow.
- Plugins affecting Components for animations/enhancements.

## Diagram (Mermaid)

```mermaid
graph TD
    Client["Client/Browser"]:::client
    NuxtApp["Nuxt Application"]:::nuxt
    Client -->|"access"| NuxtApp

    subgraph "Nuxt Application Architecture"
        P["Pages: pages/index.vue"]:::page
        L["Layout: layouts/default.vue"]:::layout
        S["Store (Vuex): store/store.js"]:::store
        U["Utilities: utils/button.js"]:::utility

        subgraph "Components"
            Comp1["Accomodation"]:::component
            Comp2["Banner"]:::component
            Comp3["Dinner"]:::component
            Comp4["Relaxing"]:::component
            Comp5["Navigation"]:::component
            Comp6["Testimonial"]:::component
            Comp7["IconLink"]:::component
            Comp8["Logo"]:::component
            Comp9["Card"]:::component
        end

        subgraph "Plugins"
            PL1["anime.js (plugin)"]:::plugin
            PL2["jarallax.js (plugin)"]:::plugin
        end

        subgraph "Assets & Styling"
            AS["Assets Directory"]:::assets
            ST1["styles/_normalize.scss"]:::assets
            ST2["styles/global.scss"]:::assets
            ST3["styles/gsap.scss"]:::assets
        end

        subgraph "Build & Config"
            BC1["nuxt.config.js"]:::config
            BC2["package.json"]:::config
        end
    end

    NuxtApp --> P
    NuxtApp --> L
    NuxtApp --> S
    NuxtApp --> U
    NuxtApp --> PL1
    NuxtApp --> PL2
    NuxtApp --> AS
    NuxtApp --> ST1
    NuxtApp --> ST2
    NuxtApp --> ST3
    NuxtApp --> BC1
    NuxtApp --> BC2

    P -->|"wrapped_by"| L
    L -->|"incorporates"| Comp1
    L --> Comp2
    L --> Comp3
    L --> Comp4
    L --> Comp5
    L --> Comp6
    L --> Comp7
    L --> Comp8
    L --> Comp9

    Comp1 -->|"uses_state"| S
    Comp2 --> S
    Comp3 --> S
    Comp4 --> S
    Comp5 --> S
    Comp6 --> S
    Comp7 --> S
    Comp8 --> S
    Comp9 --> S

    Comp1 -->|"animated_by"| PL1
    Comp1 --> PL2
    Comp2 -->|"animated_by"| PL1
    Comp2 --> PL2
    Comp3 -->|"animated_by"| PL1
    Comp3 --> PL2
    Comp4 -->|"animated_by"| PL1
    Comp4 --> PL2
    Comp5 -->|"animated_by"| PL1
    Comp5 --> PL2
    Comp6 -->|"animated_by"| PL1
    Comp6 --> PL2
    Comp7 -->|"animated_by"| PL1
    Comp7 --> PL2
    Comp8 -->|"animated_by"| PL1
    Comp8 --> PL2
    Comp9 -->|"animated_by"| PL1
    Comp9 --> PL2

    Comp1 -->|"utilizes"| U
    Comp2 --> U
    Comp3 --> U
    Comp4 --> U
    Comp5 --> U
    Comp6 --> U
    Comp7 --> U
    Comp8 --> U
    Comp9 --> U

    AS -->|"provides_resources"| L
    AS -->|"provides_resources"| Comp1
    AS --> Comp2
    AS --> Comp3
    AS --> Comp4
    AS --> Comp5
    AS --> Comp6
    AS --> Comp7
    AS --> Comp8
    AS --> Comp9

    ST1 -->|"styles"| L
    ST2 --> L
    ST3 --> L
    ST1 --> Comp1
    ST2 --> Comp1
    ST3 --> Comp1

    BC1 -->|"configures"| NuxtApp
    BC2 --> NuxtApp

    click Comp1 "https://github.com/tedy69/jannata-resort/tree/master/components/Accomodation"
    click Comp2 "https://github.com/tedy69/jannata-resort/tree/master/components/Banner"
    click Comp3 "https://github.com/tedy69/jannata-resort/tree/master/components/Dinner"
    click Comp4 "https://github.com/tedy69/jannata-resort/tree/master/components/Relaxing"
    click Comp5 "https://github.com/tedy69/jannata-resort/tree/master/components/Navigation"
    click Comp6 "https://github.com/tedy69/jannata-resort/tree/master/components/Testimonial"
    click Comp7 "https://github.com/tedy69/jannata-resort/blob/master/components/IconLink.vue"
    click Comp8 "https://github.com/tedy69/jannata-resort/blob/master/components/Logo.vue"
    click Comp9 "https://github.com/tedy69/jannata-resort/tree/master/components/Card"
    click P "https://github.com/tedy69/jannata-resort/blob/master/pages/index.vue"
    click L "https://github.com/tedy69/jannata-resort/blob/master/layouts/default.vue"
    click S "https://github.com/tedy69/jannata-resort/blob/master/store/store.js"
    click PL1 "https://github.com/tedy69/jannata-resort/blob/master/plugins/anime.js"
    click PL2 "https://github.com/tedy69/jannata-resort/blob/master/plugins/jarallax.js"
    click U "https://github.com/tedy69/jannata-resort/blob/master/utils/button.js"
    click AS "https://github.com/tedy69/jannata-resort/tree/master/assets"
    click ST1 "https://github.com/tedy69/jannata-resort/blob/master/styles/_normalize.scss"
    click ST2 "https://github.com/tedy69/jannata-resort/blob/master/styles/global.scss"
    click ST3 "https://github.com/tedy69/jannata-resort/blob/master/styles/gsap.scss"
    click BC1 "https://github.com/tedy69/jannata-resort/blob/master/nuxt.config.js"
    click BC2 "https://github.com/tedy69/jannata-resort/blob/master/package.json"

    classDef client fill:#f9f,stroke:#333,stroke-width:2px;
    classDef nuxt fill:#ccf,stroke:#333,stroke-width:2px;
    classDef page fill:#cfc,stroke:#333,stroke-width:2px;
    classDef layout fill:#fcf,stroke:#333,stroke-width:2px;
    classDef component fill:#cff,stroke:#333,stroke-width:2px;
    classDef componentGroup fill:#eee,stroke:#333,stroke-width:2px;
    classDef store fill:#ffc,stroke:#333,stroke-width:2px;
    classDef plugin fill:#fcc,stroke:#333,stroke-width:2px;
    classDef utility fill:#cc9,stroke:#333,stroke-width:2px;
    classDef assets fill:#9cf,stroke:#333,stroke-width:2px;
    classDef config fill:#fc9,stroke:#333,stroke-width:2px;
```
