Skip to content

A mock nature tour webpage built while learning advanced css concepts.

Notifications You must be signed in to change notification settings

electro75/Natours

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Natours

This is a mock web page built while learning advanced CSS concepts from this wonderful course

Here is the Page!

The project can be run cloning this repo and opening the index.html file

Concepts :

Clip Path :

  • Attribute used to clip the element to which it is applied. eg:
clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);

Animation :

  • Everything related to the animation property. (effect, delay, duration, timming function etc)
animation: moveInRight 1s ease-out;

REM :

  • Using lenghts and font-sizes in rem helps in writing highly responsive web pages as all sizes will be relative to root.

BEM Principle :

  • BEM stands for Block Element Modifier. This is one of the techniques that is used to name CSS classes.

7 in 1 Architecture :

  • Type of css architecture has been used for the project. The sass files are divided into the following folders :
    • Base : includes the low level basic styling eg reset, body, html.
    • Abstracts: includes code that does not output any css. eg : variables, mixins etc.
    • Components: contains styling for individual component.
    • Layout: contains the layout of the page. eg :header, footer.
    • Pages: contains styling for individual pages. -Themes: contains the theme styling. (not in this project) -Vendors: contains 3rd party css styles. (not in this project)

the files inside thes folders are called partials and have names tha start with an underscore(_),

Float Layout :

  • Float layout is used to build the webpage as it is supported accross all modern browsers.

Shape Outside :

  • This property is used to define how the elements align themselves outside of the specified element.

HTML Video Element :

<video class="bg-video__content" autoplay muted loop>
    <source src="img/video.mp4" type="video/mp4" >
    <source src="img/video.webm" type="video/webm" >
        Your Browser is not supported :(
</video>

Sibbling Selectors :

  • ~ selects a general sibbling.
  • + selects an adjacent sibbling

Cubic Bezier Functions :

Pure CSS Popups :

  • These can be built by using the :target psuedo class that is applied to an element which is targettef by an anchor tag.

Responsive Strategy :

  • Desktop first strategy is used where in a Media Query Manager is implemented using @mixins

Tool to test responsiveness on devices :

About

A mock nature tour webpage built while learning advanced css concepts.

Topics

Resources

Stars

Watchers

Forks