Giter Site home page Giter Site logo

sassflag's Introduction

Sass Flag

Recreate Old Glory using Sass!

Installation

  1. Fork this repo.
  2. Clone it.
$ cd sassflag
$ npm install
$ npm run serve
# Open localhost:8080

Part 1: Sass

Fill in the blanks in ./src/main.scss to make the American flag appear!

How do you convert your SCSS to CSS?

  1. Go to sass.js.org
  2. Copy and paste your SASS into the left side (deleting anything already there)
  3. Press "Convert"
  4. Copy and paste the stuff on the right to ./dist/main.css. Don't get dist and src mixed up!

Sass

  • You will not need to change index.html.
  • You will not need to change the "no touchy" line.
  • The only place you'll need to add new lines of code is the part where you make the stripes red. Do this last! Everything else is just finishing the lines that have already been written.

The result will look like this:

Flag

Part 1.5 (BONUS): Deploy to GitHub Pages

  1. Add, commit, and push the changes you've made so far.
  2. In GitHub, click on the 'Settings' tab of your repo.
  3. Scroll down to the 'GitHub Pages' section.
  4. Under 'Source', select 'master branch'.
  5. Wait 10 seconds.
  6. Go to https://yourGitHubUsername.github.io/sassflag. Easy peasy!
  7. To deploy changes, just add, commit, and push again, then wait another 10 seconds for GitHub to catch up.

Part 2: Gulp

  1. Ctrl-C to stop npm run serve.

  2. Create a new file called gulpfile.js.

  3. Make it look like this:

    Gulp

  4. Fill in the rest such that when you run npm start, then make changes to main.scss, you see those changes automatically show up on the page localhost:8080.

sassflag's People

Contributors

robertakarobin avatar

Watchers

 avatar

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.