Code Monkey home page Code Monkey logo

webtech2's Introduction

webtech2

This is a repository of Kim Janssens for the course Webtech 2 from Interactive Multimedia Design at the Thomas More college in Mechelen. Here you will find all the projects of this years course.

## GIT to work GitHub is a web-based hosting service for software development projects that use the Git revision control system. GitHub offers both paid plans for private repositories, and free accounts for open source projects.
We had to make a group and create a simple html/css page with a cooking recipe. We each had to do something in the proces and contribute it to a repository on Github.

Link to project

Notes

Function GIT command Description
Status git status Show what files are ready to be committed or what changes are pending.
Clone git clone example-url.git Copy a repository to your local development system, usually done when setting up a project.
Add git add README.md First you have to add the files that need to be updated
Commit git commit -m "text doc updated" Next you can commit the added files with a message
Pull git pull alias branch Pulling will fetch+merge latest changes from a repository.
Push git push Push your commits to the repository at alias origin and to the branch master
Removing git rm -r filename Romoving a file will delete the selected file from your repository
Branching - git checkout -b branchname Is used to work on your current project without compromising your old version.

An overview of all the steps you need when branching

  • git pull
  • git checkout -b branchname
  • git checkout branchname
  • git add
  • git commit -m "commit info"
  • git checkout master
  • git merge branchname
  • git push

If you want to contribute to a project you can't just let anyone commit changes. By forking you offer a contribution to someones project.

  • Fork
  • git fetch upstream
  • git merge upstream/master

## CSS animations & transitions #### Assignment
After our workshop it was time for a practical approach. We were shows 2 web pages with animations and transitions and had to make them as close as possible to the original.

Link to project

Notes

2D transforms

With CSS3 transform, we can move, scale, turn, spin, and stretch elements. A transformation is an effect that lets an element change shape, size and position.

  • translate()
  • rotate()
  • scale()
  • skew()
  • matrix()
3D transforms

CSS3 allows you to format your elements using 3D transforms.

  • rotateX()
  • rotateY()
animations

An animation lets an element gradually change from one style to another. You can change as many properties you want, as many times you want.

You can specify when the change will happen in percent, or you can use the keywords "from" and "to" (which represents 0% and 100%). 0% represents the start of the animation, 100% is when the animation is complete.

transitions

CSS3 transitions are effects that let an element gradually change from one style to another. To do this, you must specify two things:

  • the CSS property you want to add an effect to
  • the duration of the effect

Related articles


## Advanced JS Here I got a better view of how jQuery works. I made a dateplanner by creating an own framwork with advanced javascript concepts.
## Prototype App This is a weather app I created with the API from forecast.io. Functions I used to make this project:
  • forecast API
  • localStarage
  • AJAX
  • HTML5 geolocation
  • JSONP

## Terrapke Here I took what I learned from the prototype app and animations and used it to make an app for [WeAreIMD](http://www.weareimd.be/). The goal is to invite people to come grab a drink when the weather is nice.
## Node.js

Link to project

####Notes 1 Installation First I had to download and install node js from the website here, after that I opened my command prompt to set up my project.

2 Setup First get express by writing "npm install -g express-generator", "-g" stands for installing express globaly. Now that express is downloaded I use it to generate my app, so I go "express appname" and let the magic work.

Now in my package.json there is a list of modules waiting to be installed, to do this in the command prompt I type "npm install" and all listed modules will be installed. To view my project I type "npm start" and now I can view it on my localhost on port 3000.


## SASS Sass is the most mature, stable, and powerful professional grade CSS extension language in the world.

1 Installation First I had to download Ruby, I did this here. After installing it I opened the command prompt and installed ruby like so "gem install sass".

2 Setup Now I create a SCSS file instead of the normal CSS file, after that I go to my command prompt and make sure I am in my css map where my stylesheet is and say "sass --watch style.scss:style.css".

3 Methods ######Variables Think of variables as a way to store information that you want to reuse throughout your stylesheet. You can store things like colors, font stacks, or any CSS value you think you'll want to reuse. Sass uses the $ symbol to make something a variable.

$font-stack:    Helvetica, sans-serif;
$primary-color: #333;

body {
	font: 100% $font-stack;
	color: $primary-color;
}

######Nesting When you write HTML you've probably noticed that it has a fairly clear nested, visual hierarchy. CSS, on the other hand, isn't. Sass will let you nest your CSS selectors in a way that follows the same visual hierarchy of your HTML.

nav {
	ul {
		margin: 0;
		padding: 0;
		list-style: none;
		li { 
			display: inline-block; 
		}
	}
}

######Import CSS has an import option that lets you split your CSS into smaller, more maintainable portions. The only drawback is that each time you use @import in CSS it creates another HTTP request. Sass builds on top of the current CSS @import but instead of requiring an HTTP request, Sass will take the file that you want to import and combine it with the file you're importing into so you can serve a single CSS file to the web browser.

// _reset.scss

html,
body,
ul,
ol {
	margin: 0;
	padding: 0;
}

/* style.scss */

@import 'reset';

body {
	font-size: 100% Helvetica, sans-serif;
	background-color: #efefef;
}

######Mixins Some things in CSS are a bit tedious to write, especially with CSS3 and the many vendor prefixes that exist. A mixin lets you make groups of CSS declarations that you want to reuse throughout your site. You can even pass in values to make your mixin more flexible. A good use of a mixin is for vendor prefixes. Here's an example for border-radius.

@mixin border-radius($radius) {
	-webkit-border-radius: $radius;
 	-moz-border-radius: $radius;
  	-ms-border-radius: $radius;
    border-radius: $radius;
}

.box { 
	@include border-radius(10px);
}

######Extend/Inheritance This is one of the most useful features of Sass. Using @extend lets you share a set of CSS properties from one selector to another. It helps keep your Sass very DRY. In our example we're going to create a simple series of messaging for errors, warnings and successes.

.message {
	border: 1px solid #ccc;
	padding: 10px;
	color: #333;
}

.success {
	@extend .message;
	border-color: green;
}

######Operators Doing math in your CSS is very helpful. Sass has a handful of standard math operators like +, -, *, /, and %. In our example we're going to do some simple math to calculate widths for an aside & article.

article {
	float: left;
	width: 600px / 960px * 100%;
}

Related articles

webtech2's People

Contributors

kimjanssens avatar iamgoodbytes avatar mattiasdelang avatar firepin avatar mahammedzkhan avatar dietermeys avatar antonwijns avatar liesbethvanaerschot avatar maiteh avatar thomasdbock avatar ziggyv avatar l-ve avatar christofvanoppen avatar arcly avatar brentstappaerts avatar carobaten avatar glennvanhaute avatar jannes22 avatar jensivens avatar moussa112 avatar ritchiejacobs avatar jurgb avatar kimberlygs avatar larspeeters avatar mdsmt 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.