Skip to content

Commit fc6418e

Browse files
ArthurCarrenhorafaelrdealmeida
authored andcommitted
fix tamanho icones
1 parent 211d917 commit fc6418e

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

src/components/BlocoSection.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ const { blocos } = Astro.props;
2222
<TextoComCheck texto={bloco.texto} />
2323

2424
{bloco.departamentos && (
25-
<ul class="list-none mt-6 space-y-4 pl-8">
26-
{bloco.departamentos.map((item) => (
25+
<ul class="list-none mt-6 space-y-4 pl-8"> {bloco.departamentos.map((item) => (
2726
<div class="flex items-start gap-2">
28-
<CheckIcon size={24} class="mt-1 flex-shrink-0" />
27+
<CheckIcon size={24} class="mt-1" />
2928
<span class="paragrafo">{item}</span>
3029
</div>
3130
))}

src/components/SectionPadrao.astro

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,23 @@ const { titulo, texto, imagem, departamentos = null, reverse = false } = Astro.p
1414
class="rounded-xl w-full max-w-md mx-auto transition duration-300 ease-in-out"
1515
loading="lazy"
1616
/>
17-
</div>
18-
19-
<div>
17+
</div> <div>
2018
<h2 class="text-4xl font-extrabold mb-6">{titulo}</h2>
2119
<TextoComCheck texto={texto} />
2220

2321
{departamentos && (
2422
<ul class="list-none mt-6 space-y-4 pl-8">
2523
{departamentos.map((item) => (
2624
<div class="flex items-start gap-2">
27-
<CheckIcon size={24} class="mt-1 flex-shrink-0" />
25+
<CheckIcon size={24} class="mt-1" />
2826
<span class="paragrafo">{item}</span>
2927
</div>
3028
))}
3129
</ul>
3230
)}
3331
</div>
3432
</>
35-
) : (
36-
<>
33+
) : ( <>
3734
<div>
3835
<h2 class="text-4xl font-extrabold mb-6">{titulo}</h2>
3936
<TextoComCheck texto={texto} />
@@ -42,7 +39,7 @@ const { titulo, texto, imagem, departamentos = null, reverse = false } = Astro.p
4239
<ul class="list-none mt-6 space-y-4 pl-8">
4340
{departamentos.map((item) => (
4441
<div class="flex items-start gap-2">
45-
<CheckIcon size={24} class="mt-1 flex-shrink-0" />
42+
<CheckIcon size={24} class="mt-1" />
4643
<span class="paragrafo">{item}</span>
4744
</div>
4845
))}

src/components/TextoComCheck.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ const { texto } = Astro.props;
99
{texto.map((par, idx) => (
1010
<div class="flex items-start mb-4" key={idx}>
1111
{par.check ? (
12-
<div class="mr-3">
12+
<div class="mt-1 mr-3">
1313
<CheckIcon size={24} color="#22c55e" class="flex-shrink-0" />
1414
</div>
1515
) : (
16-
<div class="w-[24px] mr-3"></div> <!-- reserva o espaço vazio do ícone -->
16+
<div class="w-[24px] mr-3 flex-shrink-0"></div> <!-- reserva o espaço vazio do ícone -->
1717
)}
1818
<div
1919
class="paragrafo text-justify hyphens-auto"

src/icons/CheckIcon.astro

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
const { size = 24, color = "#22c55e" } = Astro.props;
2+
const { size = 24, color = "#22c55e", class: className = "" } = Astro.props;
33
---
44

55
<svg
@@ -8,11 +8,8 @@ const { size = 24, color = "#22c55e" } = Astro.props;
88
viewBox="0 0 24 24"
99
stroke-width="4.0"
1010
stroke={color}
11-
width={size}
12-
height={size}
13-
class="inline-block mt-2"
14-
15-
11+
class={`flex-shrink-0 ${className}`}
12+
style={`width: ${size}px; height: ${size}px; min-width: ${size}px; min-height: ${size}px;`}
1613
>
1714
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2l4 -4M12 2a10 10 0 110 20 10 10 0 010-20z" />
1815
</svg>

0 commit comments

Comments
 (0)