diff --git a/src/components/OptionsForm.module.css b/src/components/OptionsForm.module.css index bbf5760f..a7a3c7d5 100644 --- a/src/components/OptionsForm.module.css +++ b/src/components/OptionsForm.module.css @@ -106,6 +106,7 @@ .secondaryOptions { flex-direction: column; gap: 3rem; + margin-top: 1.25rem; } @media screen and (width >= 700px) { @@ -138,3 +139,17 @@ height: 2rem; padding: 0.5rem; } + +.optionsSummary { + align-items: center; + cursor: pointer; + display: flex; + font-style: italic; + gap: 4px; + justify-content: center; + list-style: none; +} + +.optionsDetails[open] .chevronIcon { + transform: rotate(180deg); +} diff --git a/src/components/OptionsForm.tsx b/src/components/OptionsForm.tsx index 26ce9e56..4c75629d 100644 --- a/src/components/OptionsForm.tsx +++ b/src/components/OptionsForm.tsx @@ -1,3 +1,5 @@ +"use client"; + import { PackageOwnership } from "tidelift-me-up"; import { CallToAction } from "./CallToAction"; @@ -16,6 +18,8 @@ export interface OptionsFormProps { export function OptionsForm({ options }: OptionsFormProps) { const ownerships = new Set(options.ownership); + const optionsExpanded = !options.username; + return (
@@ -39,44 +43,62 @@ export function OptionsForm({ options }: OptionsFormProps) {
-

optionally, filter by:

-
-
- - -
- -
- - Relationship to Project - -
- {(["author", "maintainer", "publisher"] as const).map( - (ownershipForm) => ( -
- - -
- ), - )} +
+ + optionally, filter by{" "} + + + + +
+
+ +
-
-
+ +
+ + Relationship to Project + +
+ {(["author", "maintainer", "publisher"] as const).map( + (ownershipForm) => ( +
+ + +
+ ), + )} +
+
+
+
);