Skip to content

Commit 287b634

Browse files
authored
Merge pull request #433 from danilolmc/update-style-and-classes
Styles and classes
2 parents b0e590c + d9ed66d commit 287b634

File tree

4 files changed

+122
-126
lines changed

4 files changed

+122
-126
lines changed

Diff for: 2-ui/1-document/08-styles-and-classes/2-create-notification/solution.view/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<body>
88

9-
<h2>Notification is on the right</h2>
9+
<h2>A notificação está à direita</h2>
1010

1111
<p>
1212
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum aspernatur quam ex eaque inventore quod voluptatem adipisci omnis nemo nulla fugit iste numquam ducimus cumque minima porro ea quidem maxime necessitatibus beatae labore soluta voluptatum
@@ -32,14 +32,14 @@ <h2>Notification is on the right</h2>
3232
setTimeout(() => notification.remove(), 1500);
3333
}
3434

35-
// test it
35+
// teste-a
3636
let i = 1;
3737
setInterval(() => {
3838
showNotification({
3939
top: 10,
4040
right: 10,
41-
html: 'Hello ' + i++,
42-
className: "welcome"
41+
html: 'Olá ' + i++,
42+
className: "bem-vindo"
4343
});
4444
}, 2000);
4545
</script>

Diff for: 2-ui/1-document/08-styles-and-classes/2-create-notification/source.view/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<body>
88

9-
<h2>Notification is on the right</h2>
9+
<h2>A notificação está è direita</h2>
1010

1111
<p>
1212
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum aspernatur quam ex eaque inventore quod voluptatem adipisci omnis nemo nulla fugit iste numquam ducimus cumque minima porro ea quidem maxime necessitatibus beatae labore soluta voluptatum
@@ -16,17 +16,17 @@ <h2>Notification is on the right</h2>
1616

1717
<script>
1818
function showNotification({top = 0, right = 0, className, html}) {
19-
/* your code */
19+
/* seu código*/
2020
}
2121

22-
// test it
22+
// teste-a
2323
let i = 1;
2424
setInterval(() => {
2525
showNotification({
2626
top: 10,
2727
right: 10,
28-
html: 'Hello ' + i++,
29-
className: "welcome"
28+
html: 'Olá ' + i++,
29+
className: "bem-vindo"
3030
});
3131
}, 2000);
3232
</script>

Diff for: 2-ui/1-document/08-styles-and-classes/2-create-notification/task.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@ importance: 5
22

33
---
44

5-
# Create a notification
5+
# Crie uma notificação
66

7-
Write a function `showNotification(options)` that creates a notification: `<div class="notification">` with the given content. The notification should automatically disappear after 1.5 seconds.
7+
Escreva uma função `showNotification(options)` que cria uma notificação: `<div class="notification">` com o conteúdo especificado. A notificação deve desaparecer automaticamente depois de 1.5 segundos.
88

9-
The options are:
9+
As opções são:
1010

1111
```js
12-
// shows an element with the text "Hello" near the right-top of the window
12+
// mostra um elemento com o texto "Olá" próximo ao canto superior direito da janela
1313
showNotification({
14-
top: 10, // 10px from the top of the window (by default 0px)
15-
right: 10, // 10px from the right edge of the window (by default 0px)
16-
html: "Hello!", // the HTML of notification
17-
className: "welcome" // an additional class for the div (optional)
14+
top: 10, // 10px a partir do topo da janela (por padrão 0px)
15+
right: 10, // 10px a partir da borda a direita da janela (por padrão 0px)
16+
html: "Olá!", // o HTML da notificação
17+
className: "bem-vindo" // uma classe adicional para a div (opcional)
1818
});
1919
```
2020

2121
[demo src="solution"]
2222

23-
24-
Use CSS positioning to show the element at given top/right coordinates. The source document has the necessary styles.
23+
Utilize posicionamento com CSS para mostrar o elemento nas coordenadas superiores/direitas especificadas. O documento fonte possui os estilos necessários.

0 commit comments

Comments
 (0)