Skip to content

Commit bc85b73

Browse files
authored
Merge branch 'main' into rrees-apps-openess
2 parents d0e8de9 + c6ec5a8 commit bc85b73

File tree

7 files changed

+99
-347
lines changed

7 files changed

+99
-347
lines changed

components/SelectMenu.tsx

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { Listbox } from "@headlessui/react"
1+
import {
2+
Listbox,
3+
ListboxButton,
4+
ListboxOption,
5+
ListboxOptions,
6+
} from "@headlessui/react"
27
import classNames from "classnames"
38
import DisclosureArrow from "../public/ui/disclosure-arrow.svg?inline"
49

@@ -27,29 +32,29 @@ export const SelectMenu = ({
2732
return (
2833
<Listbox value={value} onChange={onChange}>
2934
<div className="b3 inline-flex w-full sm:w-auto">
30-
<div className="relative w-full sm:w-auto">
31-
<Listbox.Button className="relative w-full cursor-pointer rounded-md border border-gray-3 py-4 pl-4 pr-10 text-left focus:outline-none focus:ring-1 focus:ring-blurple-500 sm:w-auto">
35+
<div className="w-full relative">
36+
<ListboxButton className="flex w-full items-center gap-2 cursor-pointer rounded-md border border-gray-3 p-4 text-left focus:outline-none focus:ring-1 focus:ring-blurple-500 sm:w-auto">
3237
<span className="block truncate text-gray-1">
3338
<span className="font-medium">{label}: </span>
3439
<span className="font-bold">{selectedLabel}</span>
3540
</span>
3641

37-
<span className="end-3 pointer-events-none absolute block-start-5">
42+
<span className="pointer-events-none">
3843
<DisclosureArrow
3944
className="h-4 w-4 text-gray-2"
4045
fill="currentColor"
4146
/>
4247
</span>
43-
</Listbox.Button>
48+
</ListboxButton>
4449

45-
<Listbox.Options className="absolute z-10 mt-1 max-h-56 w-full min-w-max overflow-auto rounded-md bg-white py-1 shadow-lg ring-1 ring-gray-3 focus:outline-none">
50+
<ListboxOptions className="absolute z-10 mt-1 max-h-56 w-full min-w-max overflow-auto rounded-md bg-white py-1 shadow-lg ring-1 ring-gray-3 focus:outline-none">
4651
{options.map(({ label: optionLabel, value: optionValue }) => (
47-
<Listbox.Option
52+
<ListboxOption
4853
key={optionValue}
4954
value={optionValue}
50-
className={({ active }) =>
55+
className={({ focus }) =>
5156
classNames(
52-
active ? "bg-blurple-500 text-white" : "text-gray-1",
57+
focus ? "bg-blurple-500 text-white" : "text-gray-1",
5358
"relative cursor-pointer select-none py-3 px-4 font-medium text-gray-1"
5459
)
5560
}
@@ -61,9 +66,9 @@ export const SelectMenu = ({
6166
</span>
6267
</>
6368
)}
64-
</Listbox.Option>
69+
</ListboxOption>
6570
))}
66-
</Listbox.Options>
71+
</ListboxOptions>
6772
</div>
6873
</div>
6974
</Listbox>

locales/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"home.features.self_expression.title": "Unparalleled creativity",
4040
"home.features.timeline.body": "You know best what you want to see on your home feed. No algorithms or ads to waste your time. Follow anyone across any Mastodon server from a single account and receive their posts in chronological order, and make your corner of the internet a little more like you.",
4141
"home.features.timeline.title": "Stay in control of your own timeline",
42-
"home.get_the_app": "Get the app",
42+
"home.get_the_app": "Get an app",
4343
"home.hero.body": "Your home feed should be filled with what matters to you most, not what a corporation thinks you should see. Radically different social media, back in the hands of the people.",
4444
"home.hero.headline": "Social networking that's not for sale.",
4545
"home.join_now": "Join {domain}",
@@ -59,7 +59,7 @@
5959
"home.why.opensource.copy": "Mastodon is free and open-source software. We believe in your right to use, copy, study and change Mastodon as you see fit, and we benefit from contributions from the community.",
6060
"home.why.opensource.title": "Open Source",
6161
"home.why.title": "Why Mastodon?",
62-
"ios_and_android.download": "Download the apps",
62+
"ios_and_android.download": "Official apps",
6363
"nav.about_us.description": "Read about our story, the team, and recent media coverage",
6464
"nav.about_us.title": "About us",
6565
"nav.apps.title": "Apps",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"dependencies": {
2222
"@headlessui/react": "^2.1.2",
23-
"@linear/sdk": "^38.0.0",
23+
"@linear/sdk": "^39.0.0",
2424
"@tanstack/react-query": "^5.72.1",
2525
"blurhash": "^2.0.5",
2626
"classnames": "^2.5.1",
@@ -58,5 +58,5 @@
5858
"tailwindcss-logical": "^3.0.1",
5959
"typescript": "^5.8.3"
6060
},
61-
"packageManager": "yarn@4.8.1"
61+
"packageManager": "yarn@4.9.1"
6262
}

pages/apps.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const AppsPage = () => {
3737
<p className="sh1">
3838
<FormattedMessage
3939
id="apps.lead"
40-
defaultMessage="The best way to get started with Mastodon is through our official apps for iOS and Android, but many third-party apps are also available below."
40+
defaultMessage="The best way to get started with Mastodon is through our official iOS and Android apps, but many third-party apps are also available below."
4141
/>
4242
</p>
4343
</div>
@@ -48,10 +48,10 @@ const AppsPage = () => {
4848

4949
<div className="grid justify-center gap-x-gutter gap-y-16 pt-10 pb-8 text-center md:grid-cols-12 md:text-start">
5050
<div className="md:col-span-6 lg:col-span-5 xl:col-span-4 xl:col-start-2">
51-
<h2 className="h4 mb-4">
51+
<h2 className="h4 text-center mb-4">
5252
<FormattedMessage
5353
id="ios_and_android.download"
54-
defaultMessage="Download the apps"
54+
defaultMessage="Official apps"
5555
/>
5656
</h2>
5757

pages/servers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ const Servers = () => {
244244
<div className="grid gap-20 pb-40">
245245
<GettingStartedCards />
246246
<div className="grid grid-cols-4 gap-gutter md:grid-cols-12">
247-
<div className="col-span-full mb-4 flex flex-wrap gap-gutter md:mb-2 md:justify-end">
247+
<div className="col-span-full mb-4 flex flex-col sm:flex-row gap-gutter md:mb-2 md:justify-end">
248248
<SelectMenu
249249
label={
250250
<FormattedMessage

pages/verification.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const Verification = () => {
6464
<LinkButton size="large" href="/apps">
6565
<FormattedMessage
6666
id="home.get_the_app"
67-
defaultMessage="Get the app"
67+
defaultMessage="Get an app"
6868
/>
6969
</LinkButton>
7070

0 commit comments

Comments
 (0)