Skip to content

MoSaqr88/landing-page-project-udacity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Landing Page Project

This project is a part of Udacity Front End Developer Nanodegree program. The code in this repository is meant to satisfy the project #1 rubric of the Front End Web Developer nano degree. A landing page is the conversion of a static page to a page that allows some sort of interaction. The dynamicity is achieved through javascript. and to show how javascript can improve the usability of an otherwise static site.

This is my first project, and I hope to be successful in using the tools that I learned to implement what is required of me in this project.

Open and view the Project using the .zip file provided or at my Github Repository.

The project is also hosted on Github.

Table of Contents

Languages used

  1. HTML
  2. CSS
  3. JAVASCRIPT

Gettiing Started

The starter project can be downloaded from here.

The project will be evaluated by a Udacity code reviewer according to the Landing Page project rubric

Tools Required

text-editor Visual Studio Code

Development

  • First challenge is to build the navbar dynamically based on the sections of the page. This can be achieved by using the below mentioned methods of javascript

    document.getElementById or querySelectorAll
    for or forEach loop
    document.createElement
    Link.innerHTML
    appendChild

  • Next step would be to add functionality to distinguish the section in view. This can be achieved by using the .getBoundingClientRect() method of javascript. Active states have to be added to the sections as well as the corresponding nav links.

  • Last part is to add the functionality to scroll to sections. This can be achieved by using the below mentioned methods of javascript

    scrollIntoView().

Features

  • Active State change for sections and nav links as user scrolls the viewport
  • Smooth scrolling using scrollIntoView when a nav link is clicked
  • A class called active_nav has been added to the CSS file to enable the active color navbar.

Running the App

  • Open the project through the .zip file provided and extract the files.

    Open index.html in the browser of your choice.

References

sources i used