Skip to content

Commit 658785a

Browse files
committed
Refactor NoteBox component to use a custom element and clean up styling comments
1 parent 0cd5b9a commit 658785a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

web/src/components/NoteBox.astro

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
---
2-
// Componente reutilizável para exibir uma caixa de nota estilizada.
3-
// Ele usa um slot padrão para receber o conteúdo da nota.
42
---
5-
<div class="custom-note-box">
6-
<slot /> {/* O conteúdo da nota será inserido aqui */}
7-
</div>
3+
<NoteBox>
4+
<slot />
5+
</NoteBox>
86

97
<style>
108
.custom-note-box {
11-
background-color: var(--sl-color-blue-low); /* Tema Claro */
9+
background-color: var(--sl-color-blue-low);
1210
border-left: 4px solid var(--sl-color-blue);
1311
border-radius: 8px;
1412
padding: 1rem 1.25rem;
15-
margin-bottom: 1rem; /* Espaço abaixo se houver múltiplas notas */
13+
margin-bottom: 1rem;
1614
color: var(--sl-color-text);
1715
}
1816
html[data-theme="dark"] .custom-note-box {
19-
background-color: var(--sl-color-gray-5); /* Tema Escuro */
17+
background-color: var(--sl-color-gray-5);
2018
}
2119
</style>

0 commit comments

Comments
 (0)