Giter Club home page Giter Club logo

bottega-flex-hamburger's Introduction

Module 1 - Flexbox Capstone Project

A flexbox capstone project.

Responsive layout hamburger menu. This is a multi-function project created to practice skills in using flexbox, incorporating fonts and using scss.

Function #1 Create a responsive navigation menu using Flexbox

Used Flexbox to create the layout for the menu. The html is divided into two segments- the stationary menu which contains the logo and hamburger button, and the menu links which are either displayed horizontally when the screen is computer- size and hidden in a dropdown when the screen is mobile sized. I used a media query and changed the flex-direction of the links to column in the mobile size screen. There is also a short javascript file which opens the dropdown menu when the hamburger button is pressed.

Full-Screen Navbar Full-Sized Menu

Mobile Screen Navbar with Dropdown Mobile Menu

Function #2 Add custom fonts using Google Fonts

Used Google fonts and added a link tag to the head section of the html file which contained the font-families which would be referenced

Function #3 Create a style guide using scss and incorporate into project

Created a style guide using scss and created variables for each of the colors used in the project. A new scss file was added to the project with the variables copied to the top and the altered css file to the bottom. The original css file was emptied out. Sass was installed in the terminal(MacOs) via:

sudo npm -g install node-sass

A script was called in the terminal to watch the scss file in the project - styles.scss and output the info into the empty css file styles.css.

The script was as follows:

sass --watch styles.scss: styles.css.

It will watch for changes in the scss file and generate output into the css file so the browser can interpret it in real time during live server from visual studio code. Used https://youtu.be/Oj2kxX1MxEs as a reference.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.