Skip to content

Latest commit

 

History

History
716 lines (358 loc) · 16.3 KB

Day-1-Coding-Basics.md

File metadata and controls

716 lines (358 loc) · 16.3 KB

👩‍💻 Day 1: Coding Basics

WIFI cowork @ lisboa PASSWORD: 1familiainvicta

👩‍💻 Why She Codes?

70,000 BCE

10,000 BCE

18th  century

http://www.sciencemag.org/H6sites/default/files/audio/Magneta-audio.mp3

🤔 What to expect?

⚒ Product Developer

🗂 Product Manager

🎨 Product Designer

👋 Who are you?

☕🍫 Isabel

⚡ Filipa

✈️ Rita

❤ Sofia

🎉 Catarina

🏋️‍♂️ Elina

🐧 Sandra

😸 Maria

💃 Carolina

💟 Ana

📚 Deanna

🕵🏽‍♀️ Andrea

😂 Carla

😃 Anabela

😉 Isabel

😬 Sara

🙃 Lucilia

🙊 Catarina

🤣 Raquel

🤦 Daniela

🤩 Mariana

🤷 Joana

🥦🍻 Lea

🦄 Nathalia

🦊 Maria

👩‍💻 She Codes Team

Beatriz / Everything

Jamie / Everything

Luis / Porto i/o Marketing Lead

Daniela / Operations manager

Luis / Dev assistant

Robbie / Dev assistant

Marissa / Dev assistant

Rado / Dev assistant

Who am I?

🇫🇷 I’m Matt

🐣 Full-stack engineer

Uplabs Founder / CEO

Y Combinator founder

Worked with these companies

Open-source contributor

I have a dream

🙉 Few things before start

🚽 Bathroom

👩‍🚒Fire exit

⏰ On time

🧘‍♂️ Breaks

🇬🇧 English or 🇵🇹 Portuguese only

👩‍💻 Help each other

🏁 Let’s begin !

📅 Workshop program

Day 1

HTTP / HTML / UI / CSS

Day 2

JS

📅 Program of the day

  • Development types
  • Hello World
  • HTTP
  • Front-end vs Back-end
  • HTML
  • UI Design
  • CSS
  • Wine 🍷

Development types

📟 Software development

🖥 Web development

📱 Mobile development

👋 <Hello, World! />

💻 HTTP

HyperText Transfer Protocol

http://www.google.pt/search?q=lisbon

  • scheme: http
  • authority: www.google.pt
  • path: search?q=lisbon

https://www.facebook.com/shecodesio/

  • scheme: https
  • authority: www.facebook.com
  • path: shecodesio

https://www.fb.com

  • scheme: https
  • authority: www.fb.com

📬 Response types

image/gif video/ogg text/html text/css application/javascript application/json

Front-end development

Back-end development

.NET / JAVA / Python / Elixir/ Ruby / JavaScript

HTML 🔥

HTML

  • Headings

    Title

    Title

    Title

    Title

    Title
    Title
  • Paragraphs

    This is a paragraph

  • Text Styling this is italic this is bold

  • Self closing tags


  • List items

    • Paris
    • Lisbon
    • Madrid

🔨 HTML Exercise 1

Go to https://codepen.io, and create this test in HTML:

HTML Attributes

<a href="https://shecodes.io/" target="_blank>
  This is a link
</a>
<img src="http://instagram.com/cat.png" />

🔨 HTML Exercise 2

https://shecodes.io/day1 https://shecodes.io/day2 https://shecodes.io/day3

Link days to https://shecodes.io/ and add a random image

🌐 Browsers

  • Inspect elements
  • Source page

Let’s CODE!

  1. HTML file

  2. HTML elements

    <title>Title of the document</title> The content of the document......

🔨 HTML Exercise 3

Move your Codepen exercise into an HTML file and open it in a browser

👩‍🎨 CSS

Styling

<h1 style="text-decoration: underline"></h1>

🔨 CSS Exercise 1

Underline the heading using inline styles

CSS Selectors

<style>
  h1 {
    text-decoration: underline;
  }
</style>

🔨 CSS Exercise 2

Underline the heading using a CSS selector

CSS Properties

  h1 {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: red;
    text-decoration: underline;
    background-color: green;
  }

🔨 CSS Exercise 3

Style your HTML like so

Style elements using these properties

Colors

  1. Pseudo colors color: red; color: green;
  2. HEX color: #32529f;
  3. RGBA

CSS Exercise 3

Title color #885df1 Sub header color: #272044

Background color: #f6f2fe

color: #885df1;
background-color: #f6f2fe;

HTML Generic Elements

<div></div>
<span></span>

HTML Classes

<ul>
  <li class="europe">
    Paris
  </li>
  <li>
    New York
  </li>
  <li class="europe">
    Lisbon
  </li>
</ul>


a.europe {
  color: blue;
}

CSS Exercise 4

Target each day with CSS classes and apply different styling


📚 Exercise 5

Recreate She Codes header by Tonight midnight!

👭 Let’s work in pairs #slack

students = ['Isabel PC','Filipa','Rita','Sofia','Catarina C','Elina','Sandra','Maria M','Carolina','Ana','Deanna','Andrea','Carla','Anabela','Isabel P','Sara','Lucilia','Catarina B','Raquel','Daniela','Mariana','Joana','Lea','Nathalia','Maria J', 'Matt']
students.shuffle.each_slice(2).each do |student_one, student_two|
  puts "#{student_one} with #{student_two}"
end

💥 Advanced CSS

🕹 Selectors

a.special
a#very-special {}
a:hover {}
a.special.highlighted {}
.special {}
a, .special {}
li .special {}

🔨 Advanced CSS Exercise 1

Change styling on hover https://goo.gl/ax3by1

↕️ Spacing

CSS Spacing

CSS Margin Syntax

CSS Spacing

Border CSS Syntax

🔨 Advanced CSS Exercise 2

https://codepen.io/matthieua/pen/YewoNM

colors:
purple: #885df1
pink: #ef5d98

🔵 Radius

Border Radius

border-radius: 20px;
border-radius: 50% 50% 0 0;

🔨 Advanced CSS Exercise 3

Add rounded corners to the button

❑ Shadow

🔨 Advanced CSS Exercise 4

Add some shadow to the button, on hover as well

💧 Gradient

/* A gradient tilted 45 degrees,
   starting blue and finishing red */
  background: linear-gradient(45deg, blue, red);

🔨 Advanced CSS Exercise 5

Add background gradient to the button from https://webgradients.com/

🚄 Transitions

a {
  transition:  all 200ms ease;
  opacity: 1;
  color: blue;
}
a:hover {
  opacity: 0.7;
  color: red;
}
linear The animation has the same speed from start to end
ease Default value. The animation has a slow start, then fast, before it ends slowly
ease-in The animation has a slow start
ease-out The animation has a slow end
ease-in-out The animation has both a slow start and a slow end
cubic-bezier(n,n,n,n) http://easings.net/

🔨 Advanced CSS Exercise 6

Recreate She Codes section in HTML/CSS

🎨 Frameworks

HTML/CSS Frameworks

Bootstrap

JavaScript Frameworks

Vue.js / Angular.js / React.js

🖥 Back-end frameworks

Sinatra / Laravel / Django / Rails / Node

👩‍💻 Next She Codes class

🗓 Tomorrow

JavaScript Project — 🍷

🎓 Graduation details

🆕 😱 Final project

📅 Graduation: September 15th at 5:30pm,

🍷 Drinks + Certificate

🗺 Letraria Craft Beer Garden Porto