diff --git a/src/app.html b/src/app.html index 2a3de6a..8d94225 100644 --- a/src/app.html +++ b/src/app.html @@ -7,30 +7,26 @@ - - - + + + - - + + diff --git a/src/lib/components/atoms/Banner.svelte b/src/lib/components/atoms/Banner.svelte index 83bf6ea..5e9051c 100644 --- a/src/lib/components/atoms/Banner.svelte +++ b/src/lib/components/atoms/Banner.svelte @@ -14,7 +14,7 @@ diff --git a/src/lib/components/atoms/TableOfContents.svelte b/src/lib/components/atoms/TableOfContents.svelte index a0bc5b3..0cc7e2e 100644 --- a/src/lib/components/atoms/TableOfContents.svelte +++ b/src/lib/components/atoms/TableOfContents.svelte @@ -4,6 +4,7 @@ interface Section { name: string; id: string; + subsections?: Section[]; } export let sections: Section[] = []; @@ -30,6 +31,14 @@ if (sectionElement) { observer.observe(sectionElement); } + if (section.subsections) { + section.subsections.forEach((subsection) => { + const subsectionElement = document.getElementById(subsection.id); + if (subsectionElement) { + observer.observe(subsectionElement); + } + }); + } }); return () => { @@ -43,6 +52,15 @@ {#each sections as section}
  • {section.name} + {#if section.subsections && section.subsections.length > 0} + + {/if}
  • {/each} @@ -53,7 +71,7 @@ .sticky-nav { background: rgba(26, 26, 26, 1); - width: 350px; + width: 300px; padding-inline: 0; position: sticky; top: 40px; @@ -64,18 +82,40 @@ list-style: none; padding: 0; margin: 0; - } - .active { - font-weight: bold; - } + li { + margin-top: 16px; + + a { + color: rgba(245, 245, 245, 0.96); + font-size: 0.875rem; + text-decoration: none; - a { - color: rgba(245, 245, 245, 0.96); - font-size: 0.875rem; + &:hover { + color: rgba(255, 49, 0, 0.96); + } + } - &:hover { - color: rgba(255, 49, 0, 0.96); + &.active a { + font-weight: bold; + color: rgba(255, 49, 0, 0.96); + } + + /* Sublist styling */ + ul.sublist { + margin-left: 20px; + list-style-type: none; + margin-top: 16px; + + li { + margin-top: 8px; + + ul.sublist { + margin-left: 20px; + list-style-type: circle; + } + } + } } } diff --git a/src/lib/components/molecules/Callout.svelte b/src/lib/components/molecules/Callout.svelte index e5e451b..ce6b206 100644 --- a/src/lib/components/molecules/Callout.svelte +++ b/src/lib/components/molecules/Callout.svelte @@ -18,54 +18,38 @@ {/if} {/if} - +
    + +
    diff --git a/src/lib/components/molecules/CodeBlock.svelte b/src/lib/components/molecules/CodeBlock.svelte index bb6d385..3b2397f 100644 --- a/src/lib/components/molecules/CodeBlock.svelte +++ b/src/lib/components/molecules/CodeBlock.svelte @@ -45,7 +45,7 @@ .code-block { display: block; position: relative; - background-color: var(--color--code-background); + background-color: rgba(245, 245, 245, 0.08); color: var(--color--code-text); font-family: var(--font--mono); font-size: 1rem; @@ -77,7 +77,7 @@ position: absolute; right: 0; top: -15px; - background: inherit; + background-color: rgba(36, 36, 36, 1); border-radius: 8px; padding: 5px 10px; z-index: 2; @@ -85,7 +85,7 @@ } .filename { - background: inherit; + background-color: rgba(245, 245, 245, 0.08); border-top-left-radius: 8px; border-top-right-radius: 8px; margin-bottom: -2px; @@ -119,7 +119,7 @@ } .copy-button-gray:hover { - background-color: #2d3748; + background-color: rgba(245, 245, 245, 0.08); } } diff --git a/src/lib/components/organisms/Footer.svelte b/src/lib/components/organisms/Footer.svelte index 0c23f57..d8b126a 100644 --- a/src/lib/components/organisms/Footer.svelte +++ b/src/lib/components/organisms/Footer.svelte @@ -3,12 +3,14 @@ @@ -19,39 +21,47 @@ background-color: rgba(26, 26, 26, 1); color: rgba(245, 245, 245, 0.96); display: flex; - flex-direction: column; justify-content: center; - align-items: center; - padding: 4rem 1.5rem; border-bottom: 16px solid rgba(255, 49, 0, 1); + padding: 2rem 1.5rem; - div { - font-size: 16px; + .footer-wrapper { + display: flex; + flex-direction: column; + align-items: center; + width: 100%; + padding: 1rem; text-align: center; - } - @include for-desktop-up { - padding-inline: 9rem; - } - } + @include for-tablet-portrait-up { + flex-direction: row; + align-items: center; + gap: 24px; + text-align: left; + max-width: 2500px; + } - footer div:nth-of-type(2) p:first-of-type { - margin-top: 1.5rem; - } + @include for-desktop-up { + padding: 0rem; + } - @include for-tablet-portrait-up { - footer { - flex-direction: row; - justify-content: flex-start; - gap: 1.5rem; + div { + font-size: 16px; + } } footer div:nth-of-type(2) p:first-of-type { - margin-top: 0rem; + margin-top: 1.5rem; + } + + @include for-tablet-portrait-up { + footer div:nth-of-type(2) p:first-of-type { + margin-top: 0rem; + } } - p { - text-align: left; + @include for-desktop-up { + padding-inline: 9rem; } } diff --git a/src/lib/components/organisms/Header.svelte b/src/lib/components/organisms/Header.svelte index 1e6fda8..fc07bfa 100644 --- a/src/lib/components/organisms/Header.svelte +++ b/src/lib/components/organisms/Header.svelte @@ -13,53 +13,56 @@
    -
    - - - +
    +
    + + + +
    diff --git a/src/routes/(pages)/+layout.svelte b/src/routes/(pages)/+layout.svelte index 63fb13e..bdcadd9 100644 --- a/src/routes/(pages)/+layout.svelte +++ b/src/routes/(pages)/+layout.svelte @@ -6,10 +6,13 @@