147
Slide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL ENGENHARIA ELÉTRICA UNIVERSIDADE FEDERAL DE MINAS GERAIS

Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Slide-aula

2020

PROGRAMA DE EDUCAÇÃO TUTORIAL – ENGENHARIA ELÉTRICA –

UNIVERSIDADE FEDERAL DE MINAS GERAIS

Page 2: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE
Page 3: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Front-end e Back-end 1

Page 4: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Front-end e Back-end 1

DesignHTML/CSS/JSSites estáticos

Segurança/EstruturaPHP

Sites dinâmicos

Page 5: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Um site 1

Um site será simplificado como um diretório em um servidor

Portanto, nosso site será uma pasta local com nossos arquivos

Page 6: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas 1

Page 7: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Objetivos

Page 8: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

ObjetivosApresentar o panorama geral de

funcionamento e de desenvolvimento de umsite;

Ensinar conceitos de ferramentas essenciaispara o Web Design;

Capacitar para criar um site estáticocompleto;

Motivar para no futuro evoluirmos parasites dinâmicos.

1

Page 9: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Desejável

Noções de programação;

Noções de edição de imagem;

Vontade de aprender;

Bom gosto;

Bom humor

1

Page 10: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas

Page 11: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas

Ferramenta principal

Linguagem de marcação de hipertexto

1

HTML – Estrutura básica dos sites

Page 12: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas

Uma das ferramentas principais

Folhas de estilo em cascata

Framework CSS

1

CSS e Bootstrap – Modularização das configurações de estilo

Page 13: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas

Linguagem de Programação

Client-side

Framework JavaScript

1

JavaScript e JQuery – Programação no lado do cliente

Page 14: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas

Linguagem de Programação

Server-side

Framework PHP

1

PHP e Codeigneter – Programação no lado do servidor, sites dinâmicos

Page 15: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas

Programas de edição de imagem

1

Ajustes dos arquivos de imagens

Page 16: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Edição de Imagens 1

Page 17: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Edição de ImagensDiminuir a resolução,

Ajustar a proporção,

Remover/adicionar fundo,

Paleta de cores

1

https://color.adobe.com/pt/create

Page 18: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas

Git

1

Desenvolvimento em conjunto, branches e ramificações

Page 19: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Git 1

git pullgit statusgit add –Agit commit –m “msg”git push

Atualização básica (e perigosa -> sobrescrita)

Page 20: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Git

git pull origin master

1

git checkout –b “branch”

Alterar o repositório

git status

git add -A

git commit –m “msg”

git push origin branch

Compare & Pull Request

Descrever

Create Pull Request

Conferir

Merge Pull Request

Delete Branch

Page 21: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas

Navegadores

1

Interpretar o site

Pedro Alvares Cabral

Page 22: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Navegadores

Inspecionarctrl + shift + I

1

Margens

Código, pode apagar pra

testar

Tamanho celular

Redimensionar

Detalhes

https://matthewrayfield.com/goodies/inspect-this-snake/

Page 23: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Ferramentas 1

Suporte ao desenvolvimento, atalhos, interfaces

Editores de texto

Page 24: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Editores de texto 1

Preze pela IDENTAÇÃO – maior legibilidade

Highlight

Organização

Atalhos

Page 25: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Índice

Page 26: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Acompanhe X

Capítulo da Apostila??

Propaganda do Matlab??

https://exlink.com

Link para mais detalhes

Page 27: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

O que veremos

2 HTML

3 CSS

4 Bootstrap

5 JavaScript

6 JQuery

Page 28: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE
Page 29: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Arquivo principal 2

Qualquertexto

index.html

Page 30: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Tags 2

<tag> CONTEÚDEO </tag>

<tag prop=“valor”>...</tag>

<!-- comentários -->

Page 31: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Tags 2

Estrutura básica

Page 32: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

2

Estruture o index.html

Prática

Page 33: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Tags Principais 2

Page 34: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Tags Principais 2

Body:<img src=“...”>

<hr>

<br>

<div> </div>

Page 35: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Tags Principais 2

Head:<meta charset="UTF-8">

<meta name="author" content="PETEE-UFMG">

<title>CoRA</title>

<link rel="shortcut icon" href="img/icon/icon.png"/>

Page 36: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

2

Adicione no head

<meta charset="UTF-8">

<title>Titulo</title>

Prática

Page 37: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Tags Principais 2

Page 38: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

2

Faça um link para curso/sumario.html

Prática

Page 39: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Tags Principais 2

Page 40: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Estilo 2

Page 41: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Classes e IDs 2

Classe NÃO é uma classe de programação, é apenas uma importação de configurações de estilo.

ID é um identificador, deve ser único.

Page 42: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Incorporar 2

Page 43: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE
Page 44: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Prioridade de estilos 3

1- Declaração inline

2- Declaração em <head><style>

3- Declaração em folha de estilo

Page 45: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

3

Declare sua folha de estilo

Prática

Page 46: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Seletores 3

Tags

#IDs

.Classes

Page 47: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Seletores 3

Page 48: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Hover 3

Page 49: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

3

Configure uma classe de sua escolha

Prática

Page 50: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Principais propriedades 3

https://www.tutorialrepublic.com/css-reference/css3-properties.php

margin

padding

background-color

background-image

color

font-size

font-weight

font-family

height

min-height

width

min-width

Page 51: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE
Page 52: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Pra que serve? 4

Framework CSS

Várias classes definidas

Design Responsivo

Modularidade

Page 53: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Download 4

https://getbootstrap.com/

Page 54: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Declaração 4

Page 55: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Declaração 4

Declarações sem fazer downloads

Page 56: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Copie a declaração de curso/bootstrap_declarado.html em seu index

Prática

Page 57: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Básico

Page 58: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Responsividade 4

Page 59: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Altera com o tamanho da tela

Responsividade

Page 60: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Responsividade

Page 61: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Responsividade

Ajuste automático

Responsividade

Page 62: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Sistema de grades

row 1 1 1 1 1 1 1 1 1 1 1 1

12 col

Primeiro faz-se uma div-row depois quantas col-i quiser, desde que todos os i = 12

Page 63: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Sistema de grades

Page 64: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Sistema de grades

col col-sm col-md col-lg col-xl

576 768 992 1200 Largura

Page 65: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Sistema de grades

Page 66: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Sistema de grades

https://getbootstrap.com/docs/4.0/layout/grid/

Page 67: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Faça uma divisão de colunas

Prática

Page 68: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Tipografia

Page 69: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Tipografia

Page 70: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Tipografia

Page 71: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Tipografia

markdelsinsusmallstrongem

Page 72: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Tipografia

text-center

text-left

text-right

text-justify

https://getbootstrap.com/docs/4.0/content/typography/

Page 73: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Adicione o texto de curso/bootstrap/tipografia.html em uma de suas colunas

Prática

Page 74: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Classes Principais

Page 75: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Cores

bg-color, btn-color, text-color ...

https://getbootstrap.com/docs/4.0/utilities/colors/

Page 76: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Configure os bg-colors e text-colorsdo seu site

Prática

Page 77: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Botões

Classe btn pode ser aplicada a algumas tags

a -> linkbutton -> ação

Page 78: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Botões

Page 79: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Botões

https://getbootstrap.com/docs/4.0/components/buttons/

Page 80: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Personalize seu link para sumario.html

Prática

Page 81: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Imagens

Page 82: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Imagens

https://getbootstrap.com/docs/4.4/content/images/

Page 83: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Adicione uma imagem fluida na coluna que não está o texto

Prática

Page 84: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Bordasimg-thumbnail

border, border-top, border-right, border-bottom, border-left,

border-X border-color

border-0, border-top-0,

border-right-0, border-bottom-0,

border-left-0,

Page 85: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Bordas

rounded-top ...rounded-0 ...

Foi usado apenas para o exemplo

https://getbootstrap.com/docs/4.4/utilities/borders/

Page 86: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Adicione uma borda a sua imagem

Prática

Page 87: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Alertas

https://getbootstrap.com/docs/4.0/components/alerts/

Page 88: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Complete o curso/bootstrap/alertas.html com o alerta que ta faltando

Prática

Page 89: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Cards

https://getbootstrap.com/docs/4.0/components/card/

Page 90: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Navbar

Page 91: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Navbar

Page 92: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Navbar

Page 93: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Navbar

Page 94: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Navbar

Page 95: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Navbar

Adicionar margin, margin-top,padding ou padding-top

Page 96: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Navbar

https://getbootstrap.com/docs/4.0/components/navbar/

Page 97: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Adicione o navbar ao seu index e remova o item desabilitado

Prática

Page 98: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Ícones

https://useiconic.com/open/

https://getbootstrap.com/docs/4.1/extend/icons/

Page 99: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

JavaScript

Page 100: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Modais

Page 101: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Modais

https://getbootstrap.com/docs/4.0/components/modal/

Page 102: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Carrossel

Page 103: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Carrossel

https://getbootstrap.com/docs/4.4/components/carousel/

Page 104: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4

Substitua a foto pelo carrossel de carrossel.html e o complete

Prática

Page 105: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

4Mais?https://getbootstrap.com/docs/4.4/getting-started/introduction/

Page 106: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE
Page 107: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Introdução 5

Linguagem de Programação

Interpretada

Alto nível

Multi-paradigma, principais: funcional, imperativo, scripting e Orientado a Objetos

Tipagem: dinâmica, fraca e implícitahttps://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Guide/Introduction

Page 108: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Declaração 5

Inserir trecho, geralmente, ao final do <body>

Por que ao final?

Page 109: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Declaração 5

Modularizando

Page 110: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Prática 5

Declare seu main.js

Page 111: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Programação Básica

Page 112: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Variáveis 5

Principais tipos:

String

Number

Boolean

Array

Page 113: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Variáveis 5

OBS: Para impressão de acentos

Page 114: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Alert e console.log 5

Page 115: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Prática 5

Faça um alert e um console.log

Page 116: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Operadores Aritméticos 5

Básicos: + - * /

Resto: %

Potenciação: **

Incremento e decremento: ++ --

Page 117: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Operadores Relacionais 5

Básicos: < <= > >=

Igualdade: == !=

Identidade: === !==

Propriedade: in

Page 118: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Operadores Lógicos 5

And: &&

Or: ||

Not: !

Page 119: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Operadores Bit a Bit 5

And: &

Or: |

Not: ~

Xor: ^

Deslocamento: << >>

Page 120: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Estruturas Condicionais 5

OBS: Operador ternário

OBS: Também possui switch

Page 121: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Estruturas de Repetição 5

Desvios incondicionais: break e continue

Page 122: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Estruturas de Repetição 5

OBS: Também possui do-while

Page 123: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Declaração de Funções 5

Page 124: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Modificando HTML

Page 125: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Eventos 5

https://www.w3schools.com/tags/ref_eventattributes.asp

Vários eventos de mouse, teclado, janela, etc

Page 126: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

DOM 5

Page 127: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

DOM 5

Page 128: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

5

Personalize a mensagem de toque.js

Prática

Page 129: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

DOM 5

Page 130: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

DOM 5

background-color backgroundColor

Page 131: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

5

Modifique nome.html e nome.js para mudar o background-color

Prática

Page 132: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE
Page 133: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

O que é? 6

https://jquery.com/

Framework JavaScript

Manipulação HTML mais simples

Versatilidade e extensibilidade

Page 134: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Declaração 6

Declaração idêntica ao do JS, porém precisa ser depois da declaração do jquery.js

jquery.js é a biblioteca

Page 135: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Uso 6

Simplificado a

Métodos executados depois que carregar a página

Page 136: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Uso 6

Page 137: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

6

Adicione um botão em sumiço.html e o configure em sumiço.js para voltar os textos. (.show())

Prática

Page 138: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Uso 6

Page 139: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Prática 6

Faça o botão azul de cor.html mudar o texto para outra cor diferente do botão vermelho

Page 140: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Uso 6

Page 141: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Uso 6

Page 142: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE
Page 143: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

Sites Dinâmicos 7

Conteúdo baseado no usuário

Server-side PL: PHP, Java, etc

Banco de Dados

https://inovalize.com.br/diferencas-entre-site-dinamico-e-estatico/

Page 144: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

FileZilla 7

Programa para fazer o upload para o servidor que contém seu site.

É possível e melhor fazer por CLI?

Page 145: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

FileZilla 7

Logar

Arrastar

Page 146: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

FileZilla 7

Remover o tempo de desconexão por inatividade

https://king.host/wiki/artigo/timeout-filezilla/

Page 147: Apresentação do PowerPointpetee.cpdee.ufmg.br/ref/doc/minicursos_oficinas/web/Slide_Web.pdfSlide-aula 2020 PROGRAMA DE EDUCAÇÃO TUTORIAL –ENGENHARIA ELÉTRICA – UNIVERSIDADE

WEB DESIGNSlide-aula

2020

PROGRAMA DE EDUCAÇÃO TUTORIAL – ENGENHARIA ELÉTRICA –

UNIVERSIDADE FEDERAL DE MINAS GERAIS