How diedaricode/proyectoweb works
Main Components
• Frontend Content: Displayed via HTML files. You have a main page (index.html) and additional pages (found in the html folder like contacto.html, nosotros.html, productos.html, and even a Politicas page).
• Presentation Layer: CSS files (css/styles.css, css/contacto.css, etc.) that determine the look and feel of the website.
• Behavior/Interaction: JavaScript files (js/main.js, js/contacto.js, js/nosotros.js) which add interactivity and dynamic content manipulation.
• Version Control: Git-related files and the Git workflow instructions provided in the README emphasize the importance of branch management and collaboration.
Relationships and Interactions
• The HTML files reference and load the CSS and JavaScript files. For example, index.html and other pages will include links to the central styles.css as well as page-specific CSS files.
• The JavaScript in the js folder manipulates the HTML DOM and handles user events—linking directly to their corresponding pages (e.g., contacto.html loads contacto.js to manage form interactions or validations).
• CSS is applied to both the global styles (styles.css) and to page-specific behavior (contacto.css, nosotros.css, producto.css), ensuring separation of concerns between structure, presentation, and behavior.
• Image files are likely embedded within the HTML and styled via CSS to provide visual context and branding.
Architectural Patterns and Design Principles
• Separation of Concerns: The project clearly distinguishes between content (HTML), presentation (CSS), and behavior (JavaScript).
• Static Site Structure: Using separate directories for each type of resource reinforces a modular design and will help in future maintainability or when adding enhancements.
• Simplicity and Clarity: The design is straightforward, optimizing for clarity over complexity—ideal for an academic project.
Relevant Technologies and Frameworks
• The project uses plain HTML, CSS, and JavaScript with no visible frameworks mentioned (like React, Angular, etc.), so focus on native web technologies.