- Explain what Material Design is.
- Explain what the Materialize framework is.
- Explain why Material Design and the Materialize framework are useful.
- Use the Materialize framework to implement Material Design.
Turn to your neighbor and explain what Material Design is.
Turn to your neighbor and explain what Materialize CSS does. Be sure to talk about how it's used, and what code Materialize uses to accomplish it's goals.
After looking at Materialize and some of it's peers (boostrap, tachyons) come up with your own definition for a CSS framework
Turn and compare notes with your neighbor and discuss why a framework like Materialize is important.
Galvanize Serves (Ice Cream)! Your goal is to design a simple website with Materialze CSS to resemble like the following image:
-
Create a folder called
materialize-exampleand touchindex.html&style.cssinside it. -
Start with by copying this html to
index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Galvanize Serves</title>
</head>
<body>
<header>
<h1>Galvanize Serves <br>(Ice Cream)</h1>
<a>Eat Up!</a>
</header>
<main>
<h4>Tasts great!</h4>
<h4>Many Flavors!</h4>
<h4>Biggest Scoups!</h4>
<h4>Contains 0% Lead!</h4>
</main>
</body>
</html>-
Go to Getting Started & copy the links to the Materialize CSS & JS files.
-
The Materialize JS file requires jQuery so we need to include this as well (above the
materialze.js):<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> -
Create a
style.cssfile and link to it in the html Add meta tag to fix mobile sizing:<meta name="viewport" content="width=device-width, initial-scale=1.0"/> -
Add a background image to the header tag using this url:
http://content.mycutegraphics.com/backgrounds/birthday/happy-birthday-ice-cream-cone-background.gif. Give the header some height and explore thebackground-sizeproperty. -
Take 5 minutes to read through Materialize helpers and attempt to center the title & button using the framework.
-
Clean up the
h1tag
- make text white
- apply text-transform uppercase
- remove margins
- make font bold
-
Use the materialize raised button component to style the
atag. -
Use materialize grid classes to create a 4x4 grid of rectangles containing the
h4elements. Start by making themaincomponent acontainerand then create and style divs using therow,colands_properties. -
Style each box in grid
- set background to
indigo - set text white
- give each box
300pxheight - center
h4tag on both axis
- To add grid gutters wrap each
h4in a div with classboxand apply styles from step 10 to.boxinstead.

