INTERACTIVE DESIGN - PROJECT 02


3/6/2023-26/6/2023 (Week 06 - 11)

Chan Suet Yee 0358427

Bachelor of Design (Honours) in Creative Media

Interactive Design | GCD60904 | Sec 04

Project 02



 LIST 

TABLE OF CONTENTS:

1.1 LECTURES

1.2 INSTRUCTIONS

1.3 PROJECT 02

1.4 FEEDBACK

1.5 REFLECTION



 LECTURES 

WEEK 07 - CSS SELECTORS
  • CSS selectors target and style HTML elements on a web page
  • They define which elements receive specific styles (e.g., colours, fonts, spacing)
  • Selectors are crucial for controlling web page presentation and layout

 Universal Selector 
  • Selects all elements on the page
  • Represented by an asterisk (*)
  • Should be used with caution to avoid inefficient CSS
  • Example :
        *{
        padding :0;
        margin:0;
        }

 Element Selector 
  • Targets HTML elements by their tag name
  • Example :
    • 'p' selector targets all '<p> (paragraph) element
        p {
        text-align:left;
        }

 ID Selector 
  • Targets an element with a specific 'id' attribute
  • IDs must be unique within an HTML document
  • Use '#' followed by the ID name to select an element 
  • Example :
        #my-element {
        display : inline;
        }

 Class Selector 
  • Targets element with a specific class attribute
  • Multiple elements can share the same class
  • Syntax: ',className'
  • Example :
        .my-class {
        margin : auto;
        }

 Descendent Selector 
  • Selects elements that are descendants of another element 
  • Specify a hierarchy of elements to target
  • Example : Style all '<a>' elements inside a '<div>' with class "container"
        .container a {
        colour: red;
        text-decoration: none;
        }

 Attribute Selector 
  • Selects elements with a specific attribute value, used for styling elements based on their attributes.
  • Syntax : '[attribute=value]'
  • Example :
        input[type="text"] {
        border :1px solid blue;
        }     

 Child Selector 
  • Selects elements that are direct children of another element 
  • Example : 
        ul > li {
        list-style: none;
        }
  • Applies the style ( 'list-style: none;') only to '<li>' elements that are direct children of '<ul>' elements 
  • This selector ensures that only immediate child '<li>' elements within '<ul>' are affected, ignoring nested '<li>' elements within deeper levels of hierarchy.
 Pseudo-class Selector 
  • Selects elements based on their state or position in relation to other elements
  • Common pseudo-class include :
    • :hover
    • :active
    • :visited
    • :link
    • :focus
    • :nth-child(n)
  • Example :
        a:hover { 
        color:red;
        }

 Pseudo-element Selector 
  • Targets part of an element, not the element itself
  • Common pseudo-elements include '::before' and '::after'
  • Example :
        p::first-line {
        font-weight: bold;
        }

 Adjacent Sibling Selector 
  • Used to select an element that immediately follows another specific element. 
  • Syntax : 'element1 +element2'
  • Example :
        h1 + p {
        margin-top: 0;
        }

 General Sibling Selector 
  • Syntax : element~sibling
  • Selects all elements that are siblings of a specific element
  • Styling all sibling elements that follow a specific element
  • Example :
        h1 ~ p {
        color : blue;
        }


Fig 1.0 Week 7 Lecture PDF



       INSTRUCTIONS 






       PROJECT 02 

      INSTRUCTIONS

      In this assignment, we need to transform a static prototype from project 01 into a fully functional and interactive web page using HTML and CSS. We have to analyse the layout, typography, colour scheme, and imagery of your static prototype. We were require to use HTML and CSS to translate the design elements into code, ensuring accuracy to the original prototype. 

       Process 

      I began by analyzing the prototype I created in the previous task, extracting visual elements such as layout structure, text content, color schemes, and images. Using Adobe Dreamweaver, I then translated the content from the Figma mockup into HTML, creating an index.html file and a css.style file.

      Fig 1.1 Process of Project 02



      Fig 1.2 Process of Project 02



      Fig 1.3 Process of Project 02


      I then started writing the code for the style.css file to add design to my webpage.

       Global Styles ('body') 

      • Set margins and padding to 0 for the entire document
      • Background color is dark (#1C1C1A)
      • Font is 'Lexend Deca' for the entire document
      • Text colour is (#F5F5F5)
      • Text alignment is right-aligned
       Hero Section (.'hero') 
      • Occupies full width for responsiveness ('width: 100%')
      • Fixed height of 950px
      • Positioned relatively to its container
      • Background colour matches the body (#1C1C1A)

       Text Content ('.text-content') 

      • Positioned absolutely within '.hero'
      • Top-aligned at 150px from the top
      • Right-aligned with a margin of 20 px from the right
      • Width set to 40% of '.hero' width
      • Font size is 20px with 'Lexend Deca' font family.
      • Text alignment is left-aligned
       Hero Image (.'hero-image') 
      • Positioned absolutely within .'hero'
      • Top aligned at 480px from the top
      • Right-aligned with a margin of 40px from the right
      • Height set to 700px and width to 550px
      • Uses 'object-fit: cover' to ensure it covers the entire container without distortion

       Vertical Text ('.vertical-text') 

      • Positioned absolutely within '.hero'
      • Top-aligned at 150px from the top
      • Left-aligned at 270px from the left
      • Uses vertical writing mode ('vertical-rl') and rotates 180 degrees for vertical orientation

       Text Styling ('.chan', '.suetyee', '.uiux-designer') 

      • Specific styles for different headings and text within the hero section, adjusting font family, size, and alignment.

       Content Column ('.content-column') 

      • Background color is light (#F5F5F5)
      • Full width with padding of 40px and box-sizing set to 'border-box' for content box model
      • Font family is 'Lexend Deca' with dark text colour (#1C1C1A)

       Content Rows ('.content-row') 

      • Flex container with items spaced evenly
      • Margin-bottom of 40px between rows

       Section Headings ('h2', 'h3') 

      • Font family 'Lexend Deca' with varying weights and sizes for hierarchy
      • Text alignment is left-aligned

       Paragraphs and Body Text ('p', 'body-text-1') 

      • Font family 'Lexend Deca' with varying weights and sizes for readability
      • Left-aligned text

       Image Column ('.image-column') 

      • Background colour matches the body (#1C1C1A)
      • Flex container centered both horizontally and vertically

       Additional Image ('.additional-image') 

      • Responsive styling with maximum width and height for images.


      Fig 1.4 Process of Project 02



      Fig 1.5 Process of Project 02



      Fig 1.6 Process of Project 02



       Final Outcome 

      Link to Netlify


      Fig 1.7 Final Outcome of Project 02




       FEEDBACK 

      No feedback from tutor 




       REFLECTION 

      This assignment was a valuable learning experience that enhanced my web development skills and deepened my understanding of the complexities involved in creating functional and interactive web pages from static prototypes. The knowledge and skills gained will undoubtedly be beneficial in future projects, both academically and professionally. Overall, the assignment was a testament to the importance of precision, responsiveness, and attention to detail in web development, laying a solid foundation for further growth and development in this field.


      Comments

      Popular posts from this blog

      GAMES DEVELOPEMNT - TASKS

      APPLICATION DESIGN 2 - TASK 2

      ADVANCED INTERACTIVE DESIGN - TASK 02