How tedy69/jannata-resort works
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.