Skip to content

Commit

Permalink
exercicio 05
Browse files Browse the repository at this point in the history
  • Loading branch information
robertotcestari committed Feb 6, 2025
1 parent 2560604 commit ac1dc4f
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Antes de mais nada, vamos apresentar este workshop.

- Variantes e Estado
- Pseudo-classes
- Exercício

### Layouts Responsivos

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ O mesmo exercício que o anterior, só que dessa vez vamos usar `margin` e `padd
#### Código Inicial

```html
<!-- exercicios/03a-inicio -->
<!-- exercicios/03a-inicio.html -->
<!doctype html>
<html lang="en">
<head>
Expand All @@ -52,7 +52,7 @@ O mesmo exercício que o anterior, só que dessa vez vamos usar `margin` e `padd
#### Resolução do Exercício 03a

```html
<!-- exercicios/03a-final -->
<!-- exercicios/03a-final.html -->
<!doctype html>
<html lang="en">
<head>
Expand Down Expand Up @@ -89,7 +89,7 @@ Dessa vez o código vai ser mais simples, sem os formulários e os botões, apen
#### Código inicial do Exercício 03b

```html
<!-- exercicios/03b-inicio -->
<!-- exercicios/03b-inicio.html -->
<!doctype html>
<html lang="en">
<head>
Expand All @@ -108,7 +108,7 @@ Dessa vez o código vai ser mais simples, sem os formulários e os botões, apen
#### Resolução do Exercício 03b

```html
<!-- exercicios/03b-final -->
<!-- exercicios/03b-final.html -->
<!doctype html>
<html lang="en">
<head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,60 @@ Vamos fazer agora, do zero, um Card de Depoimento, que é um componente bastante
Você pode também abrir diretamente no Figma para inspecionar cores e fontes.

[Link do Figma](https://www.figma.com/design/eZhlJehlg7pQNTb2ghaKmt/TailwindCSS---Exerc%C3%ADcios?node-id=3-27&m=dev&t=kDraca2deIecUPoQ-1)

### Código Inicial

Comece com esse código abaixo:

```html
<!-- exercicios/04-inicio.html -->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Exercício 04</title>
<link href="../tailwind.css" rel="stylesheet" />
</head>
<body class="flex min-h-screen items-center justify-center">
Exercício 04 - Card de Depoimento
</body>
</html>
```

#### Resolução

A resolução proposta está abaixo:

```html
<!-- exercicios/04-final.html -->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Exercício 04</title>
<link href="../tailwind.css" rel="stylesheet" />
</head>
<body class="flex min-h-screen items-center justify-center bg-gray-100">
<div class="font-display1 max-w-sm rounded-2xl bg-white p-10 shadow-2xl">
<h3 class="text-xl font-medium text-gray-800">
"O Codante mudou minha vida"
</h3>
<p class="mt-4 text-gray-500">
Codante me deu as ferramentas para finalmente realizar meu sonho de
abrir a Doggo Academy. Agora, posso usar a tecnologia para ajudar ainda
mais cães a encontrar seus lares perfeitos!
</p>
<footer class="mt-10 flex gap-4">
<img src="./avatar.png" alt="" />
<div>
<p class="font-medium text-gray-800">Dingo Cestari</p>
<p class="text-gray-500">CEO na Doggo Academy</p>
</div>
</footer>
</div>
</body>
</html>

```

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,94 @@
---
title: Exercício 07 - Webpage Responsiva
title: Exercício 05 - Card de Depoimento Responsivo
---

-

O mesmo card que tínhamos, vamos mudar para fazê-lo diferente dependendo do viewport (diferentes exibições para desktop e mobile.)

Vamos então iniciar esse exercício com o código final do exercício passado. A ideia é fazermos, para o mesmo card a versão desktop e versão mobile como na figura abaixo:

![template design](image.png)

Para um breakpoint maior que **md**, utilize o *template desktop*. Para um breakpoint menor que **md** utilize o card versão *mobile*

Você pode também abrir diretamente no Figma para inspecionar cores e fontes.

[Link do Figma](https://www.figma.com/design/eZhlJehlg7pQNTb2ghaKmt/TailwindCSS---Exerc%C3%ADcios?node-id=3-27&m=dev&t=kDraca2deIecUPoQ-1)

### Código Inicial

O código inicial é o código final do exercício anterior

```html
<!-- exercicios/05-inicial.html -->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Exercício 04</title>
<link href="../tailwind.css" rel="stylesheet" />
</head>
<body class="flex min-h-screen items-center justify-center bg-gray-100">
<div class="font-display1 max-w-sm rounded-2xl bg-white p-10 shadow-2xl">
<h3 class="text-xl font-medium text-gray-800">
"O Codante mudou minha vida"
</h3>
<p class="mt-4 text-gray-500">
Codante me deu as ferramentas para finalmente realizar meu sonho de
abrir a Doggo Academy. Agora, posso usar a tecnologia para ajudar ainda
mais cães a encontrar seus lares perfeitos!
</p>
<footer class="mt-10 flex gap-4">
<img src="./avatar.png" alt="" />
<div>
<p class="font-medium text-gray-800">Dingo Cestari</p>
<p class="text-gray-500">CEO na Doggo Academy</p>
</div>
</footer>
</div>
</body>
</html>

```

#### Resolução

A resolução proposta está abaixo:

```html
<!-- exercicios/05-final.html -->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Exercício 05</title>
<link href="../tailwind.css" rel="stylesheet" />
</head>
<body
class="flex min-h-screen items-center justify-center bg-gray-100 text-center md:text-left"
>
<div
class="font-display1 flex max-w-sm flex-col-reverse rounded-2xl bg-white p-10 shadow-2xl md:flex-col"
>
<h3 class="mt-10 text-xl font-medium text-gray-800 md:mt-0">
"O Codante mudou minha vida"
</h3>
<p class="mt-4 text-gray-500">
Codante me deu as ferramentas para finalmente realizar meu sonho de
abrir a Doggo Academy. Agora, posso usar a tecnologia para ajudar ainda
mais cães a encontrar seus lares perfeitos!
</p>
<footer class="flex flex-col gap-4 md:mt-10 md:flex-row">
<img src="./avatar.png" alt="" class="mx-auto w-36 md:mx-0 md:w-12" />
<div>
<p class="font-medium text-gray-800">Dingo Cestari</p>
<p class="text-gray-500">CEO na Doggo Academy</p>
</div>
</footer>
</div>
</body>
</html>
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ac1dc4f

Please sign in to comment.