diff --git a/intro-css-animation/README.md b/intro-css-animation/README.md deleted file mode 100644 index d13c965..0000000 --- a/intro-css-animation/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# Course Information - -This README file should contain course details, outline, guidelines, tips etc for instructors--essentially what instructors will need to run the course "out of the box". - -
- -_(Course slides are hosted at: https://morganejla.github.io/gdi-intro-css-animation/)_ - -## Course Description - -This course is an Intro to CSS Animations. It's divided into two parts, the first part is breaking down the transition and transform properties, and the second part is intro to Animation and keyframes. There is a section on accessibility media queries that the students can read further on in the course. There is a brief intro to the clip-path at the end of the course. - -## Course Objectives - -The Objectives of this course is to introduce students to the transition and animation properties. There is a lot of hands-on in this course, as well as a lot of repetition, in order to reinforce the properties. The objective is to have the students be comfortable using some animation in their projects. - -## Course Outline - -- Intro to transitions & transforms -- breakdown of each of the properties in codepen.io -- a project where we can put the several of the properties learned, all together. -- Intro to animations & keyframes, -- breakdown of each of the properties in codepen.io -- a project where we can put the properties learned, all together. -- intro to the clip path and a brief exercise. -- overview on resources for after the course. - - -## Suggested Exercises - -- demo of all of the properties. -- in class two review the previous lesson with links to previous codepens for reference. - You can create new a new exercise with links to the previous codepends. -- code along on to a project to use outside of class. - -## Resources -- MDN Web Docs -- CSS Tricks -- Clippy -- Cupcake Ipsum -- codepen.io -- webdev - For Accessibility Demo -- https://webkit.org/blog-files/prefers-reduced-motion/prm.htm - - -## FAQs-Notes-Tips - - diff --git a/intro-css-animation/assets/css/gdi-theme.css b/intro-css-animation/assets/css/gdi-theme.css deleted file mode 100644 index 2d76ce2..0000000 --- a/intro-css-animation/assets/css/gdi-theme.css +++ /dev/null @@ -1,207 +0,0 @@ -@font-face { - font-family: Gotham-Round; - src: local('Gotham-Round'), - url(../fonts/gothamrnd-light-webfont.ttf) format('truetype'); - font-weight: 400; - font-style: normal; -} - -.reveal, -body { - font-family: Gotham-Round, sans-serif; -} - -.reveal h1, -.reveal h2, -.reveal h3, -.reveal h4, -.reveal h5, -.reveal h6 { - font-family: Gotham-Round, sans-serif; - margin: 0 0 20px; - color: #f05b62; - line-height: 1.25em; - text-transform: none; -} - -.reveal h1 { - font-size: 2.33331em; -} -.reveal h2 { - font-size: 1.73332em; -} -.reveal h3 { - font-size: 1.33332em; -} -.reveal h4 { - font-size: 0.99999em; -} -.reveal h5 { - font-size: 0.66666em; -} -.reveal h6 { - font-size: 0.33333em; -} -.reveal p, -.reveal table { - font-size: 0.75em; -} -.reveal p { - margin: 15px 0; -} - -::-moz-selection { - color: #fff; - background: #ff5e99; - text-shadow: none; -} - -::selection { - color: #fff; - background: #ff5e99; - text-shadow: none; -} - -.reveal a:not(.image) { - color: #01a9b4; - text-decoration: none; - transition: color 0.15s ease; -} - -.reveal a:not(.image):hover { - color: #f9b8bb; - text-shadow: none; - border: none; -} - -.reveal .roll span:after { - color: #fff; - background: #01a9b4; -} - -.reveal section img { - box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); - transition: all 0.2s linear; - max-height: 500px; - max-width: 80%; -} - -.reveal a:hover img { - background: hsla(0, 0%, 100%, 0.2); - border-color: #01a9b4; - box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); -} - -.reveal section img.noborder { - border-width: 0; - box-shadow: none; -} - -.reveal .controls { - color: #01a9b4; -} - -.reveal .progress span { - background: #01a9b4; - transition: width 0.8s cubic-bezier(0.26, 0.86, 0.44, 0.985); -} - -.flex { - display: flex; - justify-content: space-around; - flex-wrap: wrap; -} -.flex .cta { - width: 40%; - margin: 10px 0; -} -.reveal .cta { - display: inline-block; - padding: 20px; - color: #d8ae64; - border-radius: 6px; - background-color: #01a9b4; - text-transform: uppercase; - font-size: 0.6em; - letter-spacing: 1px; - font-weight: bold; -} - -.reveal .cta:not(.image) { - color: #fff; - transition: background-color 1s ease; -} - -.reveal .cta:not(.image):hover { - background-color: #2a4758; - color: #fff; -} - -.reveal .cta.inactive { - background: #333; -} -.reveal .inactive { - pointer-events: none; -} - -.reveal footer { - position: fixed; - width: 100%; - bottom: 0; - left: 0; -} - -.reveal footer .copyright { - font-size: 0.75rem; - padding: 0 10px; -} - -.reveal footer .copyright img, -.reveal footer .copyright a img { - margin: 5px 0; -} - -.reveal footer .copyright p { - margin: 0; -} - -.reveal pre { - font-size: 0.5em; - margin: 15px auto; - line-height: 1em; -} - -.reveal small { - font-size: 0.5em; -} - -.reveal .slide-number { - background-color: rgba(0, 0, 0, 0.2); -} - -ol, -ul { - font-size: 0.8em; - line-height: 1.75; -} - -.left-align { - text-align: left; -} - -.flex-container { - display: flex; - justify-content: space-between; -} - -.flex-item { - flex-basis: 48%; -} - -.reveal section > .flex-container img { - max-width: 100%; -} - -.flex-item img { - margin: 0; -} diff --git a/intro-css-animation/assets/fonts/gothamrnd-light-webfont.ttf b/intro-css-animation/assets/fonts/gothamrnd-light-webfont.ttf deleted file mode 100644 index 06f224d..0000000 Binary files a/intro-css-animation/assets/fonts/gothamrnd-light-webfont.ttf and /dev/null differ diff --git a/intro-css-animation/assets/fonts/league-gothic/LICENSE b/intro-css-animation/assets/fonts/league-gothic/LICENSE deleted file mode 100644 index d0cd6b1..0000000 --- a/intro-css-animation/assets/fonts/league-gothic/LICENSE +++ /dev/null @@ -1,2 +0,0 @@ -SIL Open Font License (OFL) -http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL diff --git a/intro-css-animation/assets/fonts/league-gothic/league-gothic.css b/intro-css-animation/assets/fonts/league-gothic/league-gothic.css deleted file mode 100644 index 014f67f..0000000 --- a/intro-css-animation/assets/fonts/league-gothic/league-gothic.css +++ /dev/null @@ -1,10 +0,0 @@ -@font-face { - font-family: 'League Gothic'; - src: url('./league-gothic.eot'); - src: url('./league-gothic.eot?#iefix') format('embedded-opentype'), - url('./league-gothic.woff') format('woff'), - url('./league-gothic.ttf') format('truetype'); - - font-weight: normal; - font-style: normal; -} diff --git a/intro-css-animation/assets/fonts/league-gothic/league-gothic.eot b/intro-css-animation/assets/fonts/league-gothic/league-gothic.eot deleted file mode 100644 index f62619a..0000000 Binary files a/intro-css-animation/assets/fonts/league-gothic/league-gothic.eot and /dev/null differ diff --git a/intro-css-animation/assets/fonts/league-gothic/league-gothic.ttf b/intro-css-animation/assets/fonts/league-gothic/league-gothic.ttf deleted file mode 100644 index baa9a95..0000000 Binary files a/intro-css-animation/assets/fonts/league-gothic/league-gothic.ttf and /dev/null differ diff --git a/intro-css-animation/assets/fonts/league-gothic/league-gothic.woff b/intro-css-animation/assets/fonts/league-gothic/league-gothic.woff deleted file mode 100644 index 8c1227b..0000000 Binary files a/intro-css-animation/assets/fonts/league-gothic/league-gothic.woff and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/LICENSE b/intro-css-animation/assets/fonts/source-sans-pro/LICENSE deleted file mode 100644 index 2fbffae..0000000 --- a/intro-css-animation/assets/fonts/source-sans-pro/LICENSE +++ /dev/null @@ -1,45 +0,0 @@ -SIL Open Font License - -Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. - -This Font Software is licensed under the SIL Open Font License, Version 1.1. -This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL - -—————————————————————————————- -SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 -—————————————————————————————- - -PREAMBLE -The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. - -The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. - -DEFINITIONS -“Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. - -“Reserved Font Name” refers to any names specified as such after the copyright statement(s). - -“Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s). - -“Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. - -“Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. - -PERMISSION & CONDITIONS -Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: - -1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. - -2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. - -3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. - -4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. - -5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. - -TERMINATION -This license becomes null and void if any of the above conditions are not met. - -DISCLAIMER -THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-italic.eot b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-italic.eot deleted file mode 100644 index 32fe466..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-italic.eot and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-italic.ttf b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-italic.ttf deleted file mode 100644 index f9ac13f..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-italic.ttf and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-italic.woff b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-italic.woff deleted file mode 100644 index ceecbf1..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-italic.woff and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-regular.eot b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-regular.eot deleted file mode 100644 index 4d29dda..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-regular.eot and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-regular.ttf b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-regular.ttf deleted file mode 100644 index 00c833c..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-regular.ttf and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-regular.woff b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-regular.woff deleted file mode 100644 index 630754a..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-regular.woff and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibold.eot b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibold.eot deleted file mode 100644 index 1104e07..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibold.eot and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibold.ttf b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibold.ttf deleted file mode 100644 index 6d0253d..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibold.ttf and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibold.woff b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibold.woff deleted file mode 100644 index 8888cf8..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibold.woff and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot deleted file mode 100644 index cdf7334..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf deleted file mode 100644 index 5644299..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff deleted file mode 100644 index 7c2d3c7..0000000 Binary files a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff and /dev/null differ diff --git a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro.css b/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro.css deleted file mode 100644 index a9430d1..0000000 --- a/intro-css-animation/assets/fonts/source-sans-pro/source-sans-pro.css +++ /dev/null @@ -1,39 +0,0 @@ -@font-face { - font-family: 'Source Sans Pro'; - src: url('./source-sans-pro-regular.eot'); - src: url('./source-sans-pro-regular.eot?#iefix') format('embedded-opentype'), - url('./source-sans-pro-regular.woff') format('woff'), - url('./source-sans-pro-regular.ttf') format('truetype'); - font-weight: normal; - font-style: normal; -} - -@font-face { - font-family: 'Source Sans Pro'; - src: url('./source-sans-pro-italic.eot'); - src: url('./source-sans-pro-italic.eot?#iefix') format('embedded-opentype'), - url('./source-sans-pro-italic.woff') format('woff'), - url('./source-sans-pro-italic.ttf') format('truetype'); - font-weight: normal; - font-style: italic; -} - -@font-face { - font-family: 'Source Sans Pro'; - src: url('./source-sans-pro-semibold.eot'); - src: url('./source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'), - url('./source-sans-pro-semibold.woff') format('woff'), - url('./source-sans-pro-semibold.ttf') format('truetype'); - font-weight: 600; - font-style: normal; -} - -@font-face { - font-family: 'Source Sans Pro'; - src: url('./source-sans-pro-semibolditalic.eot'); - src: url('./source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'), - url('./source-sans-pro-semibolditalic.woff') format('woff'), - url('./source-sans-pro-semibolditalic.ttf') format('truetype'); - font-weight: 600; - font-style: italic; -} diff --git a/intro-css-animation/assets/imgs/favicon.ico b/intro-css-animation/assets/imgs/favicon.ico deleted file mode 100644 index 55b43ad..0000000 Binary files a/intro-css-animation/assets/imgs/favicon.ico and /dev/null differ diff --git a/intro-css-animation/assets/imgs/gdi-logos/gdi-circle-logo_peach.png b/intro-css-animation/assets/imgs/gdi-logos/gdi-circle-logo_peach.png deleted file mode 100644 index 5db926a..0000000 Binary files a/intro-css-animation/assets/imgs/gdi-logos/gdi-circle-logo_peach.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/gdi-logos/gdi-circle-logo_raspberry.png b/intro-css-animation/assets/imgs/gdi-logos/gdi-circle-logo_raspberry.png deleted file mode 100644 index f3b4ab4..0000000 Binary files a/intro-css-animation/assets/imgs/gdi-logos/gdi-circle-logo_raspberry.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_black.png b/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_black.png deleted file mode 100644 index ffc6d44..0000000 Binary files a/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_black.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_peach.png b/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_peach.png deleted file mode 100644 index 9c5d0c4..0000000 Binary files a/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_peach.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_raspberry.png b/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_raspberry.png deleted file mode 100644 index e8a4cde..0000000 Binary files a/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_raspberry.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_white.png b/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_white.png deleted file mode 100644 index e86da6a..0000000 Binary files a/intro-css-animation/assets/imgs/gdi-logos/gdi-logo_white.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/gdi-logos/gdi-square-logo_peach.png b/intro-css-animation/assets/imgs/gdi-logos/gdi-square-logo_peach.png deleted file mode 100644 index 56d3295..0000000 Binary files a/intro-css-animation/assets/imgs/gdi-logos/gdi-square-logo_peach.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/gdi-logos/gdi-square-logo_raspberry.png b/intro-css-animation/assets/imgs/gdi-logos/gdi-square-logo_raspberry.png deleted file mode 100644 index af28619..0000000 Binary files a/intro-css-animation/assets/imgs/gdi-logos/gdi-square-logo_raspberry.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/gdi-logos/gdi-wordmark-tagline.png b/intro-css-animation/assets/imgs/gdi-logos/gdi-wordmark-tagline.png deleted file mode 100644 index b9f57e5..0000000 Binary files a/intro-css-animation/assets/imgs/gdi-logos/gdi-wordmark-tagline.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/stock-img/accessibility-scale.png b/intro-css-animation/assets/imgs/stock-img/accessibility-scale.png deleted file mode 100644 index 5f98e1e..0000000 Binary files a/intro-css-animation/assets/imgs/stock-img/accessibility-scale.png and /dev/null differ diff --git a/intro-css-animation/assets/imgs/stock-img/celebration_dayne-topkin-unsplash.jpg b/intro-css-animation/assets/imgs/stock-img/celebration_dayne-topkin-unsplash.jpg deleted file mode 100644 index e3e71e2..0000000 Binary files a/intro-css-animation/assets/imgs/stock-img/celebration_dayne-topkin-unsplash.jpg and /dev/null differ diff --git a/intro-css-animation/assets/imgs/stock-img/celebration_hannah-busing-unsplash.jpg b/intro-css-animation/assets/imgs/stock-img/celebration_hannah-busing-unsplash.jpg deleted file mode 100644 index 30d29af..0000000 Binary files a/intro-css-animation/assets/imgs/stock-img/celebration_hannah-busing-unsplash.jpg and /dev/null differ diff --git a/intro-css-animation/assets/imgs/stock-img/celebration_mircea-flickr.jpg b/intro-css-animation/assets/imgs/stock-img/celebration_mircea-flickr.jpg deleted file mode 100644 index 9290276..0000000 Binary files a/intro-css-animation/assets/imgs/stock-img/celebration_mircea-flickr.jpg and /dev/null differ diff --git a/intro-css-animation/class1.html b/intro-css-animation/class1.html deleted file mode 100644 index 87b1729..0000000 --- a/intro-css-animation/class1.html +++ /dev/null @@ -1,834 +0,0 @@ - - - - - - - - - - - - Intro to CSS Animation - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - -
-

Housekeeping

-
    -
  • Display your preferred name and pronoun.
  • -
  • We are here for you!
  • -
  • Every question is important.
  • -
  • Participate, Experiment, Have Fun!
  • -
-
- - -
-

Intro to CSS Animation

-
- -
-

Stretch - "Bio" Break

-

4:00 PST / 6:00 CST / 7:00 EST

-
- -
-

Introductions

-

Morgan Jones

-

Front End Developer

-
- - -
- -

TA Intro(s)

-

Faraja Thompson

-

Educator

-
-
- -

TA Intro(s)

-

Anne Katzeff

-

Web Designer & Front-End Developer, Artist, Teacher

-
- - - - - - -
-

Workshop Topics

-
    -
  • Transitions & Transforms
  • -
  • Working in 2D & 3D
  • -
  • Accessibility guidelines for animated elements
  • -
  • Animations & Keyframes
  • -
  • Animation & the Clip-path property
  • -
-
- - -
-

Workshop Goals

-
    -
  • Introduce the basics of animating elements
  • -
  • Adding animated elements to your projects
  • -
  • Understand Accessibility guidelines for animation
  • -
  • Exploring more of what you can do with CSS!
  • -
-
- - -
-

AGENDA

-
    -
  • Why Animate?
  • -
  • Environment Setup
  • -
  • Transition & Transforms
  • -
  • Working in 2D & 3D
  • -
-
- - - - - -
-

Why Animate?

-
- -
-

Enhances the user experience

-
    -
  • Conveys Information
  • -
  • Grab The User's Attention
  • -
-
- -
-

Why CSS over JavaScript?

-
    -
  • We use it for simple movement of UI element states
  • -
      -
    • toggle
    • -
    • buttons
    • -
    • menu items
    • -
    -
-
- css-vs-javascript -
-
- -
-
- -
- - -
-

Less is More!

-
-

Too much movement on a page can be distracting.

-
- - prefers-reduced-motion:Sometimes less movement is more - "(web.dev article, Thomas Steiner)" - - -
- -
-

there are media queries we use:

-
-

prefers-reduced-motion - is a CSS feature for users with non-essential motion settings.

- - - mdn webdocs | prefers-reduced-motion - -
- -
-

Setting up our Environment

-
-
    -
  • Codepen
  • -
  • Text Editor
  • -
-
-
- - Codepen.io - - -
- -
-

Codepen setup

-
    -
  • create account on Codepen.io
  • -
  • create a new pen, select gear icon in CSS window
  • -
  • Pen Settings > CSS > Vendor Prefixing > Autoprefixer
  • -
  • for each new exercise we are going to fork their pens
  • - -
-
-
- - -
- -
-

Local Setup in Text Editor

-
    -
  • link your css file to your html file
  • -
  • When writing in CSS you can use Vendor Prefixes
  • - - -
    -						
    -h1 {
    -	-webkit-transition: all 3s ease-out;
    -		transition: all 3s ease-out;
    -}
    -
    -h1{	-webkit-transform: translate(-50%, -50%);
    -	-ms-transform: translate(-50%, -50%);
    -		transform: translate(-50%, -50%);
    -}
    -						
    -					
    -

    These exercises will work without vendor prefixes

    - For information on vendor prefixes - Vendor Prefixes - - -
- - -
-

Transitions

-

transitions enable you to control the transition between two states of an element.

-

Transitions require two sub properties to work:

-
    - Transition-property -
    - Transition-duration -
- -
- -
-

Transition Property

-

We name the property that we want to change.

- - -
-					
-							
-button {
-  background-color: green;
-  transition-property:background-color;
-  transition-duration:300ms;
-}
-button:hover{
-  background-color:orange;
-}
-					
-				
- -
-
- -

Transitions & pseudo-classes

-

a pseudo-class is added to a selector that specifies a special state of the selected element(s)

- - mdn docs | pseudo-classes - -
-						
-/* Any button over which the user's pointer is hovering */
-
-button {
-	background-color: green;
-	transition-property:background-color;
-	transition-duration:300ms;
-}
-
-button:hover{
-	background-color:orange;
-}
-						
-					
-
- - - -
-

Transition-Duration

-

We set the time of the transition in seconds(s) or milliseconds(ms)

- - - -
-						
-							
-button {
-	background-color: green;
-	transition-property:background-color;
-	transition-duration:300ms;
-	}
-
-button:hover{
-	background-color:orange;
-}
-						
-					
- codepen.io | button-hover - -
- - - - - -
-

Additional Properties for Transition

-
-
    - transition-timing-function -
    - transition-delay -
- -
-						
-button{
-	transition-timing-function:ease-in-out;
-	transition-delay:2s;
-}
-						
-					
- - -
- -
- transition-timing-function -

A CSS Property that sets a speed curve, allowing you to change the speed during the transition

- - codepen.io | transition-timing-functions - -
- -
-

Additional Transition Timing Functions

-

cubic-bezier

-

steps

-
-						
-button{
-	transition-timing-function: cubic-bezier(.29, 1.01, 1, -0.68);
-}
-
-button{						
-	transition-timing-function: steps(6, end);
-}
-						
-					
- - mdn docs | cubic bezier & steps - -
-
- transition-delay -
-

specifies the duration to wait before starting the transition of the property.

-
-						
-button{
-	transition-delay: 250ms;
-	transition-property: margin-right;
-}
-
-						
-					
- -
-
-

setting more than one property to be changed

-
-						
-button {
-	width:20px;
-	height:40px;
-	background-color:#da7b93;
-	transition: height 1s, background-color 2s;
- /* we can write the transition-property and duration for each,
- separated by a comma. */
-
-}
-
-button:hover{
-	height:50px;
-	background-color:#da8735;
-
-}
-						
-					
- -

- codepen.io | shorthand transitions - multiple properties -

-
-
- -
-

Shorthand keyword: all

-
-						
-button {
-	width:20px;
-	height:40px;
-	background-color:#da7b93;
-	transition: all 2s;
-
-}
-
-button:hover{
-	width:50px;
-	background-color:#da8735;
-
-}
-
-
-
- - codepen.io | shorthand practice - -
- - - - -
-

Transitions Do Not Work on

-
-
    -
  • background-images
  • -
  • border-style
  • -
  • font-family
  • -
-

General rule: We can use transition on properties expressed by numbers (width, height, color)

- - mdn docs | CSS Animated Properties - - -
- - -
-

Are we just changing timing and color? What if I want to change the shape?

-
-

transition works with a partner...

- - -
-
-

Transform

-
-
-

transform is a property that moves or changes an element's appearance.

-
    -
  • Size
  • -
  • Position
  • -
  • Shape
  • -
-
-
- - mdn docs | transform - -
- -
-

How it Works

-

The transform property uses function values:

-
    -
  • scale()
  • -
  • translate()
  • -
  • rotate()
  • -
  • skew()
  • -
- - -
- -
-

Transforms & Accessibility

-
- accesibility-screenshot-mdn docs -
- - - mdn docs | transform-accessibility-concerns - -
- - -
-

transform relies on the (x,y) axis for 2D animation.

-
- - - CSS-tricks | transform - -
- - codepen.io | transform demo - -
-
- -
-

scale()

-

defines a transformation that resizes an element on the 2D plane

- -
-						
-div {
-	width:100px;
-	height:100px;
-	transform: scale(0);
-/*When the scale is zero, we don't see the element at all.*/
-}
-
-div {
-	width:100px;
-	height:100px;
- 	transform: scale(1);
-/* When the scale is one, the element stays in place. */
-
-}
-div{
-	width:100px;
-	height:100px;
-	transform:scale(2);
-/* When the scale is 2 the element doubles in size. */
-/* it is now 200px wide and tall */
-}
-						
-					
- mdn docs | transform-function : scale() -
- - codepen.io | transform demo - -
-
-

translate

-

repositions an element in horizontal or vertical directions.

- values are in length or percentage - -
-						
-div {
- transform: translate(42px, 35px);
-}
-						
-					
- mdn docs | transform-function : translate() -
- - codepen.io | transform demo - -
-
-

rotate()

-

rotates an element on a fixed point.

-

values are set in degrees

- - Other values used are turns and radians. we will be focusing on degrees. - - -
-						
-div {
- transform: rotate(90deg);
-}
-						
-					
- mdn docs | transform-function : rotate() -
- - codepen.io | transform demo - -
-
-

skew()

-

skews an element on the 2D plane.

- -
-						
-div {
- transform: skew(90deg);
-}
-					
-					
- mdn docs | transform-function : skew() -
- - codepen.io | transform demo - -
- -
-

transform-origin

-
    -
  • transform-origin: separate from the transform property.
  • -
  • specifies the origin point of the transform.
  • -
  • apply it to the parent element.
  • -
  • default for rotating is the center.
  • -
- - codepen.io | transform demo - - - -
-
-

Practice

-

Put Transition & Transform together

- - - codepen.io | transition & transform together -
-
-

Something to remember with transform

-
    -
  • positive values move elements right and down.
  • -
  • negative values move elements left and up.
  • - -
- -
-
-

pseudo-classes vs. pseudo-elements

-

Remember a pseudo-class we use by adding to a selector that specifies the state of the element.

-
-
-

pseudo-classes vs. pseudo-elements

-

pseudo-elements let you style a part of a selected element. -

-							
-a::before{
-	content:'';
-	position:absolute;
-	left:0;
-	top:0;
-	background-color:#fe6437;
-	height:100%;
-	width:100%;
-	z-index:-1;
-	transform-origin:top left; 
-	transform:rotate(-90deg);
-	transition:transform 1s;
-	}
-								  
-							
-						
- - mdn docs | pseudo-elements - -
-
-

Common pseudo-elements

-
    -
  • ::before
  • -
  • ::after
  • - -
-
- -

Using :: helps us differentiate between elements & classes.

-
-
-

Z-index

-

property used to set the order of a positioned element.

-

elements with a larger z-index overlap and cover those with a smaller one.

-
-
- -

Let's Develop It!

-

let's add the pseudo-elements a button.

- codepen.io | project button code-along -
-
-

perspective & the Z axis

-

working in 3D

-

-
-

the Z axis

-
    -
  • the Z axis is perpendicular to the x & y axis.
  • -
-
-
-

the Z axis

-
    -
  • uses the perspective: property which is the distance between the viewer and the screen.

  • -
-
-						
-body{
-	perspective:500px;
-}
-
-div{
-	height:150px;
-	width:150px;
-	background-color:#e58064;
-	position:absolute;
-	top:50%;
-	left:50%;
-	transition:transform 2s;
-}
-div:hover{
-	transform: translateZ(300px);
-}
-						
-					
- - -
-
-

translateZ() is to be less than the perspective.

-
-
-

Practice

-
- translateZ() & perspective -
-
-

Let's Develop It!

- - codepen.io | rotating a card code-along - -
- - -
-

end of day one!

-
- -
- - -
- - - - - - - - - diff --git a/intro-css-animation/class2.html b/intro-css-animation/class2.html deleted file mode 100644 index 23cd4cf..0000000 --- a/intro-css-animation/class2.html +++ /dev/null @@ -1,538 +0,0 @@ - - - - - - - - - - - - Intro to CSS Animation - - - - - - - - - - - - - - - -
- -
- - - - - - - -
- -
-

AGENDA

-
    -
  • Review of Transition & Transforms
  • -
  • Accessibility-media queries
  • -
  • Animations & Keyframes
  • -
  • Clip Path
  • -
  • Resources & next steps
  • -
-
- -
-
-

Questions about Transitions & Transforms?

-

Let's review...& practice!

-

- practicing transitions -

-
-
- - reference-codepen: examples of properties we can transition - - - -
-
-

Questions about Transitions & Transforms?

-

Let's review...& practice!

-
-
- -
-
-

Questions about Transitions & Transforms?

-

Let's review...& practice!

-
-
- -
-
-

Intro to Animation & Keyframes

-
-
-

Animation vs Transitions

-

How is the animation property different from the transition property?

-
    -
  • can run automatically, as well as be triggered by a user
  • -
  • can loop infinitely
  • -
  • for more complex movements
  • -
  • we can change more than just the start & finished states.
  • -
- - mdn docs | CSS Animations - - - - -
- -
-

Accessibility

-

we want everyone to have access to what we create for the web.

- - -
-
-

Accessibility

-

prefers-reduced-motion is a media query used to detect if the user has settings that minimize non-essential motion.

- - mdn docs | prefers-reduced-motion. - -
-
-

Accessibility

-

prefers-reduce-motion example

-
-					
-.animation{
-
-	animation:pulse 1s linear infinite both;
-
-}
-
-@media(prefers-reduce-motion){
-	.animation{
-		animation-name:none;
-
-/*here is where you write the styling that you want to
- replace the animation with*/
-	}
-}
-		
-
-					
-				
- - mdn docs | prefers-reduced-motion - -
- - CSS Tricks | Introduction to reduced motion media query - -
- - -
-

prefers reduce motion in action

- webkit.org -
- - codepen.io | prefers-reduced-motion-demo - -
-
-

Animation has three required components - -

    -
  • animation-name
  • -
  • animation-duration
  • -
  • keyframes
  • -
-
-							
-div{
-	width:150px;
-	height:150px;
-	background-color: #fe6437;
-	animation-name:whatever;
-	animation-duration:3s;
-}
-							
-						
- animation-demo | codepen.io - -
-
-

@keyframes

-

defines the start and finish of the animation

-

...and the steps in between

- - mdn docs | @keyframes - - -
-
-

@keyframe keywords

-

keywords we use to determine the steps in the @keyframe

-
    -
  • from & to
  • -
  • percentages
  • -
  • px
  • - -
-
-							
-@keyframes whatever{
-	0% { transform: translateX(0);}
-	10%{transform:translateX(100px);}
-	100% {transform: translate(500px, 400px);}
-	}
-							
-						
-
-
-

Practice

-

Let's see the different ways we can write @keyframes

- - codepen.io | keyframes in action - - -
-
- -

Let's Develop It!

-

changing a background animation

- codepen.io | changing background colors - -
-
-

additional animation properties

-
    -
  • animation-timing-function
  • -
  • animation-delay
  • -
  • animation-iteration-count
  • -
  • animation-direction
  • -
  • animation-fill-mode
  • -
  • animation-play-state
  • -
-
-
- - mdn docs | animation properties - - -
-
- - - -

animation-timing-function

-

sets how an animation progresses through the duration of each cycle.

- -
-						
-
-animation-timing-function:ease-in;
-
-						
-					
- mdn docs | animation-timing-function -
- - Animation-timing-function | Codepen.io - -
-
- -

animation-delay

-

sets the amount of time to wait before applying the animation to the element.

- -
-					
-
-animation-delay:2s;
-
-					
-				
- mdn docs | animation-delay -
- - Animation-delay | Codepen.io - -
-
- -

animation-iteration-count

-

sets how an animation progresses through the duration of each cycle.

-

basically you can control the function from going back to its start.

- -
-					
-
-animation-fill-mode: forwards;
-
-
-					
-				
- mdn docs | animation-fill-mode -
- - Animation-timing-function | Codepen.io - -
- -
- -

animation-direction

-

declares whether an animation should play forwards, backwards, or alternate back & and forth.

- -
-				
-
-animation-direction:alternate;
-
-
-		
-	
- mdn docs | animation-direction -
- - animation-direction | Codepen.io - -
- - - -
-

animation-play-state

-

sets whether an animation is running or paused.

- -
-			
-
-animation-play-state:paused;
-
-
-			
-		
- mdn docs | animation-play-state - -
-
-

animation shorthand

-
-			
-div {
-animation: |animation-name|animation-duration| animation-timing-function| animation-delay| animation-iteration-count | animation-direction | animation-fill-mode| animation-play-state;
-}
-
-			
-		
- - animation-shorthand | codepen.io - -
-
-

Let's Develop It!

- -

- codepen.io | animation code along -

- -
- - -
-

Clip-path

-

clip-path is a property that lets us decide what parts of an element should be shown

-

we do this with shapes we create out of points on our page.

- - mdn docs | clip-path - -
- - - - - - - - -
-

Clip-path

-

we don't have to figure out the coordinates ourselves

-

we have Clippy

-
-					
-.element {
-	transition:all 0.5s;
- 	clip-path: circle(9.4% at 81% 16%); 
-}
-					
-				
- -
-
-

Clip-path-practice

-

here is a short exercise to get you started with the clip-path

- - codepen.io | clip-path code along - -
- -

a source I like to use for lorem ipsum

- cupcakeipsum -
- -
- -
-

Further Research

-

here are some of my favorite sources for CSS Animations

- -
-
-

Resources for projects

- - -
-
-

What's next?

- - - -
- -
-

You did it!

- People celebrating -

- Photo credit: - Hannah Busing - cc - -

- -
- - -
-

(Optional Slide)

-

Share What You've Built!

-
- - - -
-

-

Give Us Your Feedback

-

Survey Link

-
- - -
-

Q&A

-
- - - - -
- -

New GDI Courses

- -
- - - - -
- GDI Logo -
-

Thank You!

-
-
- - -
- - - - - - - - - diff --git a/intro-css-animation/demo-gdi-slides.html b/intro-css-animation/demo-gdi-slides.html deleted file mode 100644 index 929397b..0000000 --- a/intro-css-animation/demo-gdi-slides.html +++ /dev/null @@ -1,321 +0,0 @@ - - - - - - - - - - - GDI Demo Slides Template - - - - - - - - - - - - - - - - - -
- -
- - -
- GDI Logo -
- - -
-

GDI Demo HTML Presentation Slides

-

Based on Reveal.js

- -
- - -
-

Intro

-
    -
  • Reveal.js is a framework for easily creating beautiful, animated HTML slide presentations.
  • -
  • The following slides illustrate how to present GDI content with reveal.js.
  • -
  • Copy code snippets from this demo file as needed to create GDI HTML slides.
  • -
-
- - -
-

Heading h1

-

Heading h2

-

Heading h3

-

Heading h4

-
- - -
-

Nested Content

-

Content

-

More content...

-

Even more content...

-

Content yet again...

-

And we're done.

-
- - -
-

Fragments

-
-

Reveal contents in...

-
-
-

fragments:

-
- One - at - a - time. -
- - -
-

Want to Lean Left?

-

Enough centered text!

-
- - -
-

Marvelous Unordered List

-
    -
  • No order here
  • -
  • Or here
  • -
  • Or here
  • -
-
- - -
-

Fantastic Ordered List

-
    -
  1. One is smaller than...
  2. -
  3. Two is smaller than...
  4. -
  5. Three!
  6. -
-
- - -
-

Images

- -

Remember to give credit.

-

- Photo credit: - Dayne Topkin - cc - -

-
- - -
-

Image and Text

-
-
- -
-
-

Some content to the left...

-

Or to reverse order, just switch the code snippets.

-
-
-
- - -
-

Add a background Image

-
- - -
-

Change Background Colors

-

Use GDI Brand Colors.

-
- - -
-

Animated Images/GIFs

- -
- - -
-

Embed Video

- -

The next slide shows adding video as a background.

-
- - -
-
- - -
-

Tables

- - - - - - - - - - - - - - - - - - - - - - - - - -
Data typeExample values
Integers2 44 -3
Floats3.14 4.5 -2.0
BooleansTrue False
Strings'¡hola!' 'its python time!'
-
- - -
-

Slides with Code: Python

-
-						
-def add_numbers_between(start, end):
-  sum = 0
-  for n in range(start, end):
-	  sum += n
-	return n
-
-add_numbers_between(5, 10)
-						
-					
-

Tip: Click the document icon in the upper right of the code box to copy the code.

-
- - -
-

Slides with Code: HTML

-
-            
-

Hello World.

-
-
-
- - -
-

Slides with Code: CSS

-
-						
-body {
-  background-color: #ffffff;
-}
-						
-					
-
- - -
-

Slides with Code: JavaScript

-
-            
-function helloWorld(){
-  let name = 'GDI';
-  alert("Hi, " + name)
-}
-            
-          
-
- - -
-

Editable Slides with Code

-

Try editing the code!

-
-            
-function helloWorld(){
-  let name = 'GDI';
-  alert("Hi, " + name);
-} 
-            
-          
-
- - -
-

These are the common use cases of reveal.js features for GDI slide content.

-

Interested in more ways to use reveal.js? Visit the framework's website for a full demo.

-
- -
- - - -
- - - - - - - - - - diff --git a/intro-css-animation/index.html b/intro-css-animation/index.html deleted file mode 100644 index ffa0de8..0000000 --- a/intro-css-animation/index.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - Intro to CSS Animation - - - - - - - - - - - - - - - -
- -
- - -
- GDI Logo -
-

Intro to CSS Animation

-
- -
-

Intro to CSS Animation

-

Class Slides

-
- Class 1 - Class 2 - - -
-
-
- - -
- - - - - - - - - diff --git a/intro-html-css/index-ask.html b/intro-html-css/index-ask.html new file mode 100644 index 0000000..78141b3 --- /dev/null +++ b/intro-html-css/index-ask.html @@ -0,0 +1,1109 @@ + + + + + + + + + + + + GDI: Intro to HTML & CSS + + + + + + + + + + + + + + + +
+ +
+ + +
+ GDI Logo +
+

Welcome to Girl Develop It

+
+ + +
+ GDI Logo +
+

We create welcoming, supportive and accessible environments for women and non-binary adults to learn software development.

+
+ + +
+

We are dedicated to providing a welcoming and comfortable environment for all to learn coding and every attendee is expected to uphold our Code of Conduct:

+

girldevelopit.com/codeofconduct/

+

bit.ly/gdi-incident-report

+
+ + +
+

What Does
Girl Develop It
Teach?

+
+ +
+

Web Development

+

Data Science

+

UX Design & Research

+

Workforce Classes

+

Career-Building Events & Conferences

+
+ + +
+ GDI Logo +
+

Find All Our Classes & Events:

+

www.girldevelopit.com

+
+ + +
+ GDI Logo +
+

Upcoming Class:

+

Web Design Essentials 1

+
+ + + +
+

Housekeeping

+
    +
  • Display your preferred name and pronoun.
  • +
  • We are here for you!
  • +
  • Every question is important.
  • +
  • Participate, Experiment, Have Fun!
  • +
+
+ + +
+

Intro to HTML & CSS

+
+ + +
+

Instructor Intro

+

Anne S. Katzeff

+

Web Designer, Artist, Teacher
+ ASK Design

+
    +
  • 20+ years in print design
  • +
  • 10+ years in web design
  • +
  • 15+ years teaching
  • +
  • 15+ years painting
  • +
  • Webmaestro: 20+ websites
  • +
  • ASK Design specializes in designing custom websites for creative folks, small businesses, and nonprofits.
  • +
+ +
+ + +
+ +

TA Intro

+

Kimberly J. Suares

+

Full Stack Developer

+
+ + + + +
+

Welcome!

+
+

Tell us about yourself:

+
    +
  • Name?
  • +
  • Location?
  • +
+
+
+ +
+

Welcome!

+
+

Rate your experience with HTML & CSS:

+
    +
  1. - Absolute beginner
  2. +
  3. - Minimal experience (a few tutorials)
  4. +
  5. - Some experience (familiar with the basics)
  6. +
+
+
+ +
+

Welcome!

+

What do you hope to get out of this class?

+
+ +
+

Welcome!

+

Current favorite or binge TV show?

+
+ + +
+

Agenda

+

HTML

+

CSS

+

Q & A

+
+ + +
+

Course Goals

+
+
    +
  • Build a simple site using HTML and CSS.
  • +
  • Work with images, lists, links and basic styling.
  • +
  • Get resources, information about next steps.
  • +
+
+
+ + + + + +
+

HTML

+
+ + +
+

What is HTML?

+

HTML stands for Hyper Text Markup Language.

+
+ +
+

What is HTML?

+

HTML is the language that allows us to build websites.

+ Screenshot of the Girl Develop It Homepage +
+ +
+

A Very, Very Quick History of HTML

+
    +
  • Invented by Tim Berners-Lee
  • +
  • Created "hypertext" to share scientific papers
  • +
  • First web page built: August 6, 1991
  • +
  • Standardized by w3 Consortium
  • +
+
+ +
+

What is HTML?

+

HTML is composed of HTML tags that together provide a blueprint for a webpage.

+ Screenshot of the Girl Develop It Homepage +
+ +
+

What is HTML?

+

"Under the hood" of a website:

+ Screenshot of the Girl Develop It page source code +
+ + +
+

Anatomy of a website

+
+

Content (Text + Media)

+

+ HTML(Structure + Semantics)

+

+ CSS (Presentation + Design)

+

+ JavaScript (Interactivity)

+

= Website

+
+
+ +
+

Anatomy of a website

+
    +
  • A paragraph is your content.
  • +
  • Putting your content into an HTML tag to make it look like a paragraph is structure. +
    <p>A paragraph is your content</p>
    +
    +
  • +
+
+ +
+

Anatomy of a website

+
    +
  • Making the font of your paragraph green and smaller is presentation. +

    This paragraph has been styled with CSS.

    +
  • +
+
+ + +
+

Basic Tools

+

Browsers:

+
    +
  • Chrome
  • +
  • FireFox
  • +
  • Safari
  • +
+
+ +
+

Basic Tools

+

Code or Text Editors:

+
    +
  • Visual Studio Code
  • +
  • Atom
  • +
  • Sublime Text
  • +
+
+ +
+

Basic Tools

+

Online Code Editors:

+
    +
  • REPL.it
  • +
  • Codepen.io
  • +
  • Codesandbox.io
  • +
+
+ + +
+

Let's Develop It!

+
+ + +
+

Get Started: REPL.it

+
    +
  • Create a free account on REPL.it.
  • +
  • Or an online editor of your choice.
  • +
+
+ + +
+

REPL.it Demo

+
+ + +
+

Anatomy of an HTML element

+

HTML pages are made up of elements.

+

Element

+
    +
  • An individual component of HTML.
  • +
  • Paragraph, heading, table, list, div, link, image, etc.
  • +
+
<p>This is a sample paragraph.</p>
+
+ +
+

Anatomy of an HTML element

+

Tag

+
    +
  • Marks the beginning & end of an element.
  • +
  • Tags contain characters that indicate the tag's purpose.
  • +
+
<tagname>Content</tagname>
+
<p>This is a sample paragraph.</p>
+
+ + +
+

Tag Breakdown

+ Tag breakdown
+
+

List of HTML Elements (MDN)

+
+ + +
+

Doctype

+

The first thing on an HTML page is the doctype, which tells the browser which version of the markup language the page is using.

+
 <!DOCTYPE html> 
+

* The doctype is case-insensitive.

DOCtype, doctype, DocType and DoCtYpe are all valid.

+
+ + +
+

HTML Tag

+

After <doctype>, the page content must be contained between <html> tags.

+
<!DOCTYPE html>
+<html>
+
+</html>
+
+
+ + +
+

Head and Body Tags

+

head: Information about the page, such as its title.

+
<!DOCTYPE html>
+  <html>
+   <head>
+    <title>The title of the page</title>
+   </head>
+  </html>
+  
+
+ + +
+

Head and Body Tags

+

body: The actual content of the page, what shows up in the browser window.

+
<!DOCTYPE html>
+  <html>
+   <head>
+    <title>The title of the page</title>
+   </head>
+   <body>
+    The exciting content.
+   </body>
+  </html>
+  
+
+ + +
+

Meta Tags

+

It's best practice to include meta tags that tell the browser the charset (character encoding) and
+ viewport (visible area of web page).

+
<!DOCTYPE html>
+<html>
+ <head>
+  <meta charset="utf-8"/>
+  <meta name="viewport" content="width=device-width, initial-scale=1"/>
+  <title>Title of the page </title>
+ </head>
+</html>
+
+
+ + +
+

Nesting & Indentation

+

Elements "nest" inside the tag that contains them.

+

What elements are nested here?

+
<html>
+ <head>
+  <title>Title of the page</title>
+ </head>
+ <body>
+  <p>A paragraph inside the body tag</p>
+ </body>
+</html>
+
+

Notice: Whichever element opens first, closes last.

+
+ + +
+

Headings

+ Example of headings +
+ +
+

Element: Heading

+
+
+
+
<h1>Heading 1</h1>
+<h2>Heading 2</h2>
+<h3>Heading 3</h3>
+<h4>Heading 4</h4>
+<h5>Heading 5</h5>
+<h6>Heading 6</h6>
+
+
+

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
+
+
+

* Heading number indicates hierarchy, not size.
Think of outlines from high school papers.

+
+ + +
+

Let's Develop It!

+

A basic page about your favorite television show.

+
    +
  1. Include an h1 header.
  2. +
  3. Add additional headings for potential sections of your page.
  4. +
+

*IMPORTANT: A page can contain only ONE h1 tag.

+
+ + +
+

Paragraphs

+

Paragraphs allow you to format your content in a readable fashion.

+ Example of Paragraphs in the wild +

* You can edit how paragraphs are displayed with CSS.

+
+ +
+

Element: Paragraph

+
+
+
<p>Paragraph 1</p>
+<p>Paragraph 2</p>
+<p>Paragraph 3</p>
+
+
<p>Paragraph 1</p> <p>Paragraph 2</p>
+
+
<p>Paragraph 1</p>
+
+<p>Paragraph 2</p>
+<p>Paragraph 3</p>
+
+
+
+

Paragraph 1

+

Paragraph 2

+

Paragraph 3

+
+

* White space in your editor is only for humans. You can write your code with any spacing. But it's better to write code in a formatted structure or use a linter to clean up formatting issues.

+
+
+
+ + +
+

Formatted Text

+
+
<p>This paragraph has <em>emphasized</em> text 
+and <strong>important</strong> text.</p>
+
+

This paragraph has emphasized text and important text.

+
+

* em and strong are meant to indicate meaning through style. If you want to have italicized for appearance and not to communicate meaning, you should use CSS.

+
+ + +
+

Let's Develop It!

+

Add on to the page for your favorite television show.

+
    +
  1. Text! You can either copy and paste from a Wikipedia article, or generate text from an Ipsum like Hipster Ipsum.
  2. +
  3. Add paragraph tags to break up your text into at least 2 paragraphs.
  4. +
  5. Add formatting tags to emphasize "important" words.
  6. +
+
+ + +
+

Element: Line Break

+
+
+
<p>
+Imagine there's no Heaven<br/>It's
+easy if you try <br/>No hell below
+us <br/>Above us only sky
+</p>
+
+
+
+

Imagine there's no Heaven
It's easy if you try
No hell below us
Above us only sky

+
+
+
+ + +
+

Self Closing Tags

+ These elements don't need a closing tag:
+
<br/>
+<hr/>
+<img/>
+<link/>
+<input/>
+
+
+ + +
+

Let's Develop It!

+

Add a break tag or a horizontal rule to your code.

+
+ + +
+

Lists

+

Lists can be used to organize any list of items.

+ +

You'd be surprised how often lists are used in web design.

+
+ +
+

Unordered and ordered lists

+
+
+
<ul>
+ <li>List Item</li>
+ <li>Another List Item</li>
+</ul>
+
+
+
+
    +
  • List Item
  • +
  • Another List Item
  • +
+
+
+ +
+
+
<ol>
+ <li>List Item</li>
+ <li>Another List Item</li>
+</ol>
+
+
+
+
    +
  1. List Item
  2. +
  3. Another List Item
  4. +
+
+
+
+ + +
+

Let's Develop It!

+
    +
  1. Add an unordered list of characters from your favorite show to your code.
  2. +
  3. Add an ordered list of seasons or episodes to your code.
  4. +
  5. EXTRA CHALLENGE: +
      +
    • Nest an ordered list in an unordered list
    • +
    +
  6. +
+
+ + +
+

Element Details: Attributes

+
    +
  • Attributes describe additional characteristics of an HTML element
  • +
  • An attribute has 2 parts: Name & Value.
  • +
+
+
<tagname name="value">content</tagname>
+

*Values should be contained inside quotation marks.

+
+ + +
+

Images

+

To make an image, you need 3 parts:

+
    +
  • An image tag: <img />
  • +
  • A src attribute: the location and name of the image file
  • +
  • An alt attribute: a brief description of the image content
  • +
+
+ +
+

Images

+
+
+
<img src="img/example-gdi-logo.png"
+alt="Girl Develop It logo"/>
+
+
+
+ Girl Develop It logo +
+
+ +
+
+
<img src="img/blinkylights.gif"
+alt=""/>
+
+
+
+ +
+
+
+ + +
+

Let's Develop It!

+
    +
  1. Using the img tag, add an image of your TV show to your page. +
      +
    • Tip: Do an online search; copy an image link from the web.
    • +
    +
  2. +
  3. Include an ALT attribute in the img tag.
  4. +
+
+ + +
+

Links

+

To make a link, you need 3 parts:

+
    +
  • An anchor tag: <a></a>
  • +
  • An href attribute: the web address to where the link points
  • +
  • content: text or images between the tags that become the clickable link.
  • +
+
<a href="http://www.girldevelopit.com">Girl Develop It</a>
+
+

produces:
+ Girl Develop It +

+
+ + + +
+

Link Targets

+

An optional target attribute tells the browser to open the link in a new tab.

+
<a href="http://www.girldevelopit.com" target="_blank">Girl Develop It</a>
+

Opens the GDI site in a new tab:
+ Girl Develop It +

+
+ + +
+

Let's Develop It!

+

Add 2 or more links about your show that open up in a new tab.

+
+
+ + +
+

Comments

+

You can add comments to your code that will not be displayed by the browser, but only visible when viewing the code.

+
<!-- Comment goes here -->
+
+
+ +
+

Comments

+

Comments can be used to organize your code into sections so you (or someone else) can easily understand your code. It can also be used to 'comment out' large chunks of code to hide it from the browser.

+
<!-- Beginning of header -->
+<div id="header">Header Content</div>
+<!-- End of header -->
+
+<!--
+<ol>
+<li>List Item</li>
+<li>Another List Item</li>
+</ol>
+-->
+
+
+ + +
+

Break - 10 Minutes

+
+ + +
+

CSS

+
+ +
+

CSS: What is it?

+

CSS = Cascading Style Sheets

+

CSS is a "style sheet language" that lets you style the elements on your page.

+

CSS is works in conjunction with HTML, but is not HTML itself.

+
+ +
+

CSS: What can it do?

+

All colored text, position, and size

+ Screenshot of homepage +
+ + +
+

Anatomy of CSS

+

CSS consists of style rules.

+

Each style rule consists of a selector and declarations of property-value pairs: +

+
selector {
+  property: value;
+  property: value;
+}
+
+ +
+

Syntax

+
selector {
+  property: value;
+  property: value;
+}
+

Example:

+
body {
+  color: yellow;
+  background-color: black;
+}
+
+ + +
+

Connecting CSS to HTML

+

3 Ways:

+

Inline

+

Embedded

+

External

+
+ + +
+

Connecting CSS to HTML: Inline


+
<p style="color:red">Some text.</p>
+
+
    +
  • Uses the HTML style attribute.
  • +
  • Only applies to one element at a time.
  • +
  • Not preferred.
  • +
+
+ + +
+

Connecting CSS to HTML: Embedded

+
<head>
+  <style>
+    p {
+      color: blue;
+      font-size: 12px;
+    }
+  </style>
+</head>
+
+
    +
  • Inside <head> element.
  • +
  • Uses <style> tag.
  • +
  • Only applies to that page.
  • +
+
+ + +
+

Connecting CSS to HTML: External

+
<head>
+  <link rel="stylesheet" href="style.css">
+</head>
+

+
    +
  • Can be referenced from multiple pages.
  • +
  • Reduced file size & bandwidth.
  • +
  • Easier to maintain in larger projects.
  • +
  • This is the best practice!
  • +
+
+ + +
+

Let's Develop It!

+

Embedded CSS:

+
    +
  1. In the head tag of your index.html file, beneath the title tag, add an opening and closing style tag.
  2. +
  3. Add / nest the CSS rule below in the style tag:
  4. + +
    body {
    +  background-color: turquoise;
    +}
    +
    +
  5. Check your page and see what happens.
  6. +
+
+ + +
+

CSS: The Selector

+
selector {
+  property: value;
+  property: value;
+}
+

+ The selector is used to select which elements in the HTML page will be given the styles inside the curly braces. +

+
+ +
+

Types of Selectors: Element

+
p {
+property: value;
+}
+
+

Selects all paragraph elements.


+
img {
+property: value;
+}
+
+

Selects all image elements.

+
+ + +
+

CSS Properties

+
    +
  • 200? 300? 500?
  • +
  • You're not expected to know them all!
  • +
  • Focus on the commonly used ones
  • +
  • Be okay looking things up!
  • +
  • Note: CSS properties are case-sensitive
  • +
+
+

Common CSS properties (MDN)

+

All standard CSS properties (MDN)

+
+ + +
+

Property: color

+

The color property changes the color of the text.

+
p {
+  color: red;
+}
+
+
+ + +
+

Property: background-color

+

The background-color property changes the color of the background.

+
body {
+  background-color: hotpink;
+}
+
+
+ + +
+

CSS Color Values

+

Your browser can accept colors in many different ways:

+ + + + + + + + + + + + + + +
Color name: red
Hexadecimal value: #FF0000
RGB value: rgb(255, 0, 0)
+
+

W3Schools Color Picker

+

CSS Color Names

+
+ + +
+

Let's Develop It!

+

Colors!

+
    +
  1. Change the background color of your site. Use a color name, hexcode or RGB value
  2. +
  3. Change the font color of one or all of your heading.
  4. +
+ + +
+

Property: font-size

+

The font-size property specifies the size of font.

+
body {
+  font-size: 12px;
+  font-size: 1.5em;
+  font-size: 100%;
+}
+
+
+ +
+

Font-size units:

+
    +
  • Pixels - "px"
  • +
  • "rem" or "em"
  • +
  • Percentage - %
  • +
  • xx-small, medium, large, x-large, etc
  • +
+
+

font-size property (MDN)

+
+ + +
+

Property: font-family

+

The font-family property defines which font is used.

+
p {
+  font-family: "Times New Roman"; /* Specific font name */
+  /* or */
+  font-family: serif; /* Generic name */
+  /* or */
+  font-family: "Arial", sans-serif; /* Comma-separated list */
+}
+
+

*When listing multiple fonts, always list a generic name last.

+

Web Safe Fonts (W3 School)

+

Google Fonts

+
+ + +
+

Let's Develop It!

+

Typography

+
    +
  1. Change the font-size of your h1 element. Use the px unit.
  2. +
  3. Change the font-size of other elements on your page (headings or paragraphs).
  4. +
  5. Give your headings and/or paragraphs a different font type.
  6. +
+
+ + +
+

Let's Develop It!: Extra Tips

+
    +
  • Centering your entire page
  • +
  • (Re)Sizing your images
  • +
  • Checking for responsiveness (Using Dev Tools)
  • +
+
+ + +
+

You did it!

+ Happy woman jumping +

+ Photo credit: + Hannah Busing + cc + +

+
+ + +
+

Share What You've Built!

+
+ + + +
+

Give Us Your Feedback

+

Survey Link

+
+ + +
+

Q&A

+
+ + +
+

External Resources

+

Free Code Camp

+

Codecademy

+

CSS Tricks

+

Udemy

+
+ + + + + + +
+

Keep in Touch

+

Instructor: LinkedIn, Github

+

TAs: LinkedIn, Github

+
+ + +
+ GDI Logo +
+

Thank You!

+
+
+ + +
+ + + + + + + + + diff --git a/web-design-1/.DS_Store b/web-design-1/.DS_Store index ffd52cd..9186627 100644 Binary files a/web-design-1/.DS_Store and b/web-design-1/.DS_Store differ diff --git a/web-design-1/README.md b/web-design-1/README.md new file mode 100644 index 0000000..3916f51 --- /dev/null +++ b/web-design-1/README.md @@ -0,0 +1,28 @@ +# gdi-html-css / web-design-1 + +

Course Information

+

This README file should contain course details, outline, guidelines, tips etc for instructors--essentially what instructors will need to run the course "out of the box".

+ +

(Course slides are hosted at: https://askdesign.github.io/gdi-html-css/web-design-1/)

+ +

Course Description

+

tk

+ +

Course Objectives

+

tk

+ +

Course Outline

+
  • tk
  • + +

    Suggested Exercises

    +
  • demo of all of the properties.
  • +
  • review the previous lesson.
  • +
  • code along on to a project to use outside of class.
  • + +

    Resources

    +
  • MDN Web Docs
  • +
  • CSS Tricks
  • +
  • Cupcake Ipsum
  • +
  • replit
  • + +

    FAQs-Notes-Tips

    diff --git a/web-design-1/assets/.DS_Store b/web-design-1/assets/.DS_Store index 8ed76d0..7f569dd 100644 Binary files a/web-design-1/assets/.DS_Store and b/web-design-1/assets/.DS_Store differ diff --git a/web-design-1/class3.html b/web-design-1/class3.html index b6762a4..3f1bcc0 100644 --- a/web-design-1/class3.html +++ b/web-design-1/class3.html @@ -90,7 +90,7 @@

    Download and Install

    Code Editor Demo

    Project Folder Setup

    -

    VS Code Extenstions

    +

    VS Code Extensions

    @@ -181,7 +181,7 @@

    Class Selector

    background-color: yellow; } -
    <p class="product-text product-bground">Some product detail.</p>
    +
    <p class="product-text product-container">Some product detail.</p>
     
    diff --git a/web-design-1/index.html b/web-design-1/index.html index 08a305a..6be9268 100644 --- a/web-design-1/index.html +++ b/web-design-1/index.html @@ -37,7 +37,7 @@

    Girl Develop It

    Web Design Essentials 1

    Class Slides

    Class 1 diff --git a/web-design-1/intro-ask.html b/web-design-1/intro-ask.html new file mode 100644 index 0000000..b3ef4c2 --- /dev/null +++ b/web-design-1/intro-ask.html @@ -0,0 +1,167 @@ + + + + + + + + + + + + + GDI - Web Design Essentials 1, Class 1 + + + + + + + + + + + + + + + + +
    + +
    + + +
    + GDI Logo +
    +

    Welcome to Girl Develop It

    +
    + + +
    +

    Web Design Essentials 1

    +
    + + +
    +

    Instructor Introductions!

    +

    Anne Katzeff

    +

    Web Designer / Front-End Developer

    +
      +
    • 20+ years in print design
    • +
    • 10+ years in web design
    • +
    • 15+ years teaching
    • +
    • 15+ years painting
    • +
    • Webmaestro: 20+ websites
    • +
    • ASK Design specializes in designing custom websites for creative folks, small businesses, and nonprofits.
    • +
    + +
    + + +
    +

    TA Introductions!

    +

    Tinuola "Tinu" Awopetu

    +

    Software Engineer

    +
    + + +
    +

    Introductions!

    +
      +
    • Name?
    • +
    • Attending from?
    • +
    • Current favorite or binge TV show?
    • +
    +
    + + +
    +

    Introductions!

    +

    What are your goals?

    +

    Why are you interested in Web Design?

    +

    What do you hope to get out of this series?

    +
    + + +
    +

    Introductions!

    +

    Rate your level of experience with HTML & CSS

    +
      +
    • 1 - Absolute beginner
    • +
    • 2 - Minimal experience (a tutorial here and there)
    • +
    • 3 - Some experience (familiar with the basics)
    • +
    +
    + + +
    +

    Cohort Goals

    +
      +
    • Foundational HTML and CSS
    • +
    • Basics of responsive web design
    • +
    • Web design best practices
    • +
    • CODING! Build simple static web pages
    • +
    +
    + + +
    +

    As We Go Along ...

    +
      +
    • Display your preferred name and pronoun
    • +
    • I am / We are here for you!
    • +
    • Every question is important
    • +
    • It's okay to be a little or very 'lost'
    • +
    • Participate. Try things. Have Fun!
    • +
    +
    +
    + +
    + + +
    +
    + + + + + + + + + \ No newline at end of file diff --git a/web-design-2/.DS_Store b/web-design-2/.DS_Store index 98cc1a8..959ee42 100644 Binary files a/web-design-2/.DS_Store and b/web-design-2/.DS_Store differ diff --git a/web-design-2/assets/.DS_Store b/web-design-2/assets/.DS_Store index 6301553..a12ea2e 100644 Binary files a/web-design-2/assets/.DS_Store and b/web-design-2/assets/.DS_Store differ