Interaction Design: Final Project - Website Redesign and Development
SUN YU (0378222)
Interactive Design | BISD | Taylor's University
Final Project: Website Redesign and Development
Development Process Challenge
Interactive elements
Demonstration video / test
Final submission draft
Netlify hosting website link:https://comforting-basbousa-ba0a77.netlify.app/ ( final Xiangha Network)
Final project file :My drive contains HTML, CSS, images and video files.(File Name: Sunyu 0378222 Interactive Design Final Project: Xiangha Network)
Development process:
Initially, I created 6 HTML files with custom CSS styles. I also developed 6 main pages, including the About Us page, Personal Profile page, Home page, Product page, Recipe page, and Food Details page.
I used the website shared by our teacher: https://getbootstrap.com/docs/5.3/components/modal/
The original website of Xiangha network:https://www.xiangha.com
Framework and style are unified.
The CDN of Bootstrap and DaisyUI was introduced to simplify the layout:
The Bootstrap class "col-10" was used to uniformly set the width and margin for all sections, making the white space and spacing of the entire website look more harmonious;
When customizing the style, either more specific CSS class names should be used, such as uniformly setting the color tone for buttons and cards on different pages.
- Enclosing: use <div class="container"> to wrap the whole page and <header> to define the header area
- Make Logo: use <div class=" lolo-container "> as the container, add <div class="logo"> and fill in the brand name "Xiangha"
- Do the main navigation:
- Wrap the navigation with <div class="nav-container">
- Use <nav class="main-nav"> to install navigation links, each link with <a> tag, write the function name (such as About Us), add href link corresponding to the page, and the current page with the active class identity
- The "My Favorites" link uses an inline <span class="heart-icon">♡</span> as the heart icon
- Add user functionality: Wrap it in <div class="user-actions"> with an Account link, <div class="avatar-placeholder">, and a Personal link
- Make a search box: wrap <div class="search-container"> with <input type="text"> and <span class="search-icon">🔍</span>
- Enclose the form with <div class="form-section meta-info">
- Split: Use <div class="form-row"> to make a single line for multiple selections side by side
- Let's set up a selection container: Each selection is wrapped in <div class="form-group col-3">, and col-3 gives all three options an equal row width
- label: Specify the type of option (Time/Difficulty/People) in each container with <label>.
- Make a drop-down box: Use the <select> tag to create a drop-down selection function
- Optional: Use <option> in <select> to list the optional values (e.g. 15 min/30 min, Easy/Medium, etc.)
Question 1: Style duplication and redundancy, difficult to modify
Troubles encountered:
The same components such as buttons and titles are repeatedly styled on different pages. For example, the color and size of the function buttons and titles on multiple pages are each set separately. When adjusting the theme color or style later, one needs to search and modify each one individually, which is time-consuming and prone to errors.
Solution:
Extract common style classes (such as button and title classes), and directly reuse them for all pages
Use CSS variables to unify the theme color, and only need to modify one place when changing
Divide the code into "global → common components → page-specific → responsive" sections, add comments for distinction
Question 2: Conflicts between dark footer and sub-element styles
Troubles encountered:
On a dark footer background, the text and border color of the subscription form have low contrast with the background, making it difficult to read; social icons and copyright text are not adapted to the dark background and appear out of place.
Solution:
Use descendant selectors to precisely set the styles of sub-elements within the dark footer
Adjust the input box text to white, the border to semi-transparent white, and optimize the button and icon styles
Check the contrast to ensure it meets accessibility standards
Question 3: Grid layout cards' responsive arrangement is disordered
Troubles encountered:
The Grid layout on the PC end displays normally, but the cards are arranged out of order on tablet and mobile devices, and the spacing between different sections is inconsistent, resulting in visual imbalance.
Solution:
Use "repeat(auto-fit, minmax)" to achieve adaptive column numbers
Unify the basic spacing of Grid, and adjust the spacing size slightly at different breakpoints
Add multiple breakpoint media queries to test critical dimensions to ensure uniform arrangement
Question 4: Form element styles are not unified, and there is no focus feedback
Troubles encountered:
The styles of text boxes, dropdown boxes, and text areas vary greatly, and the original native styles are retained for dropdown boxes; there is no obvious feedback when the form elements are focused, resulting in poor user experience.
Solution:
Use "appearance: none" to reset the original form styles
Unify the borders, rounded corners, and padding of all form elements
Add focus state styles (theme color border + shadow) for form elements, and optimize the adaptation of text boxes and dropdown boxes
Question 5: Navigation bar and image display are abnormal on mobile devices
Troubles encountered:
The navigation bar options on mobile devices are crowded together and the text overlaps; the search box is too wide; the image container maintains a fixed width, causing the layout to collapse or display incompletely.
Solution:
Change the navigation bar to be distributed vertically on mobile devices, set the search box to 100% width
Change the image container to use percentage width, reduce the spacing to save space
Hide non-essential elements on mobile devices and use browser device simulation to test the dimensions of mainstream mobile phones
Mobile pages are viewport appropriate (via viewport meta tags) and the layout resizes with device size (e.g., the navigation bar wraps on mobile)
The indicator (dot) of the carouseling area is implemented with pure <span>, without semantic tags (such as <nav> or <button>), which is not easy to access.
Insufficient mobile compatibility details: Some pages have a mobile layout that only relies on viewport Settings, without HTML structures (e.g., reactive container classes) to enforce the compatibility logic.
Different models of responses
Comments
Post a Comment