diff --git a/src/pages/db/_components/UseCaseTab.astro b/src/pages/db/_components/UseCaseTab.astro index b9911a0450..8529edad55 100644 --- a/src/pages/db/_components/UseCaseTab.astro +++ b/src/pages/db/_components/UseCaseTab.astro @@ -20,7 +20,7 @@ const { icon, title, active = false } = Astro.props
- + - +
+ style={{backgroundImage: `url(${useCasesBg.src})`}}>
    diff --git a/src/pages/db/_components/features/SQLCommands.astro b/src/pages/db/_components/features/SQLCommands.astro index 069f3e5196..fa15722ae8 100644 --- a/src/pages/db/_components/features/SQLCommands.astro +++ b/src/pages/db/_components/features/SQLCommands.astro @@ -7,23 +7,79 @@ const queries = ["select", "insert", "update", "delete"] const keys = ["primary", "foreign", "unique", "composite", "alternate"] const constraints = ["not null", "check", "index", "default", "unique"] -const a = [...arithmetic, ...data] -const b = [...queries, ...joins, ...operators] -const c = [...keys, ...constraints] +const arithmeticAndData = [...arithmetic, ...data] +const queriesJoinsAndOperators = [...queries, ...joins, ...operators] +const keysAndContraints = [...keys, ...constraints] -const all = [a, b, c] +const allCommands = [ + arithmeticAndData, + queriesJoinsAndOperators, + keysAndContraints, +] --- -
    - { - all.map((group) => ( -
    - {group.map((operator) => ( -
    - {operator} -
    - ))} -
    - )) - } -
    +
    +
    +
      + { + arithmeticAndData.map((operator) => ( +
    • + {operator} +
    • + )) + } +
    + +
      + { + queriesJoinsAndOperators.map((operator) => ( +
    • + {operator} +
    • + )) + } +
    + +
      + { + keysAndContraints.map((operator) => ( +
    • + {operator} +
    • + )) + } +
    +
    +
    + + diff --git a/src/pages/db/_components/use-cases/Feedback.astro b/src/pages/db/_components/use-cases/Feedback.astro index 51811972e0..3040743197 100644 --- a/src/pages/db/_components/use-cases/Feedback.astro +++ b/src/pages/db/_components/use-cases/Feedback.astro @@ -139,7 +139,7 @@ import { Code } from "astro-expressive-code/components" const shownCount = count + (enabled ? 1 : 0) button.innerText = `${emoji} ${shownCount}` button.setAttribute("aria-selected", String(enabled)) - }); + }) } createToggleButton(1121, '🔥', fireReactionButton)