Fix: HTML valide et styles expertise
All checks were successful
Deploy / Deploy to Production (push) Successful in 16s
All checks were successful
Deploy / Deploy to Production (push) Successful in 16s
- Expertise: items en <div> au lieu de <p> (évite les <p> imbriqués) - Expertise: espacement entre les paragraphes internes via :global - fonts.css: classe utilitaire .green Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3618137657
commit
85b2145bb0
2 changed files with 10 additions and 2 deletions
|
|
@ -58,3 +58,7 @@
|
||||||
.font-face-danzza-bold {
|
.font-face-danzza-bold {
|
||||||
font-family: "Danzza Bold";
|
font-family: "Danzza Bold";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.green {
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -281,13 +281,13 @@
|
||||||
style="transform: translateY({offsetY}px)"
|
style="transform: translateY({offsetY}px)"
|
||||||
>
|
>
|
||||||
{#each items as item, i}
|
{#each items as item, i}
|
||||||
<p
|
<div
|
||||||
class="expertise-item"
|
class="expertise-item"
|
||||||
class:active={i === currentItem}
|
class:active={i === currentItem}
|
||||||
bind:this={itemEls[i]}
|
bind:this={itemEls[i]}
|
||||||
>
|
>
|
||||||
{@html item.text}
|
{@html item.text}
|
||||||
</p>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -298,6 +298,10 @@
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:global(.expertise-item p) {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
/* Full-grid video background */
|
/* Full-grid video background */
|
||||||
.expertise-bg {
|
.expertise-bg {
|
||||||
grid-area: 1/1 / span 20 / span 20;
|
grid-area: 1/1 / span 20 / span 20;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue