Welcome to the continued development of the Web Studio project! In this part of the project, CSS animations and decorative effects have been added to enhance the visual appeal of the web pages. Also, modal window functionality has been incorporated to handle user interactions. Below are the details of what this portion of the project contains:
- All styles for the project are consolidated in a single CSS file named
styles.css
, located in thecss
folder. - The CSS code is formatted using Prettier, maintaining code consistency and readability.
- All images and textual content are carefully placed within the layout, ensuring they are correctly structured.
- The project utilizes the
modern-normalize
stylesheet to ensure consistent rendering across different browsers. - The CSS code is written following the provided tutorial.
- The script responsible for the modal window functionality is included in a separate file named
modal.js
, and it is linked to the HTML using a script tag. - The modal window and backdrop (dark semi-transparent overlay) are properly marked up and decorated with CSS styles.
- The modal window is vertically and horizontally centered within the backdrop.
- A close button is added to the top-right corner of the modal window for easy dismissal.
- The modal window and backdrop are initially hidden using the class
is-hidden
, which utilizes thevisibility
,opacity
, andpointer-events
properties. - Clicking on the "Order Service" button opens the modal window with a submission form.
- The appearance and disappearance of the modal window are animated using transitions with customizable effects, such as
scale
ortranslate
, along withopacity
.
- Special data attributes are added to relevant HTML tags for the modal window script to locate the corresponding elements:
data-modal-open
- for the button that opens the modal window.data-modal-close
- for the button that closes the modal window.data-modal
- for the backdrop of the modal window.
This part of the Web Studio project introduces exciting animations and decorative effects to the web pages, enhancing the overall user experience. Additionally, the implementation of the modal window provides a seamless way to handle user interactions and display important content, such as a service ordering form.