Skip to content

Commit d0c15d6

Browse files
author
Shane Afsar
authored
chore(website) - update text and compress images (#1863)
* chore(website): update language and compress images * ran linter * - update aria text
1 parent 8f48ebb commit d0c15d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+70
-1508
lines changed

packages/website/src/components/ApplyForm.js

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -189,48 +189,55 @@ function ApplyForm() {
189189
required={true}
190190
id="public"
191191
name="public"
192-
aria-label="Confirm my website is publicly available"
192+
aria-label="Confirm my website is a publicly available developer documentation or a technical blog."
193193
type="checkbox"
194194
className="uil-mr-8"
195195
/>
196-
My website is publicly available
196+
My website is a publicly available developer documentation or a
197+
technical blog.
197198
</LabelText>
198199

199200
<LabelText
200201
className="uil-pt-12 apply-text"
201202
tag="label"
202-
htmlFor="opensource"
203-
key="opensource"
203+
htmlFor="owner"
204+
key="owner"
204205
>
205206
<input
206207
required={true}
207-
id="opensource"
208-
name="opensource"
209-
aria-label="Confirm my website is an technical documentation of an open-source project or technical blog"
208+
id="owner"
209+
name="owner"
210+
aria-label="Confirm I am the owner of the website, or otherwise have obtained and
211+
continue to maintain any required consents necessary to use
212+
DocSearch on the requested domain. And I have read the checklist."
210213
type="checkbox"
211214
className="uil-mr-8"
212215
/>
213-
My website is a technical documentation of an open-source project or
214-
a technical blog
216+
I am the owner of the website, or otherwise have obtained and
217+
continue to maintain any required consents necessary to use
218+
DocSearch on the requested domain. And I have{' '}
219+
<InlineLink href={withBaseUrl('docs/who-can-apply')}>
220+
read the checklist.
221+
</InlineLink>
215222
</LabelText>
216223

217224
<LabelText
218225
className="uil-pt-12 apply-text"
219226
tag="label"
220-
htmlFor="owner"
221-
key="owner"
227+
htmlFor="opensource"
228+
key="opensource"
222229
>
223230
<input
224231
required={true}
225-
id="owner"
226-
name="owner"
227-
aria-label="Confirm I am owner of the website"
232+
id="opensource"
233+
name="opensource"
234+
aria-label="Confirm I understand that this is a Free Service as described in Algolia's Terms of Service"
228235
type="checkbox"
229236
className="uil-mr-8"
230237
/>
231-
I'm the owner of the website and I have{' '}
232-
<InlineLink href={withBaseUrl('docs/who-can-apply')}>
233-
read the checklist
238+
I understand that this is a Free Service as described in Algolia's{' '}
239+
<InlineLink href="https://www.algolia.com/policies/terms/">
240+
Terms of Service.
234241
</InlineLink>
235242
</LabelText>
236243

@@ -247,7 +254,7 @@ function ApplyForm() {
247254
</div>
248255

249256
<Text small={true} className="uil-ta-center">
250-
<InlineLink href="https://www.algolia.com/policies/terms">
257+
<InlineLink href="https://www.algolia.com/policies/privacy/">
251258
Refer to Algolia's Privacy Policy for more information on how we use
252259
and protect your data
253260
</InlineLink>

packages/website/src/components/Home.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ function Home() {
2222
return (
2323
<Hero
2424
id="hero"
25-
title={<DocSearchLogo width="100%" />}
25+
title={
26+
<>
27+
<DocSearchLogo width="100%" />
28+
<span className="hero-title text-3xl leading-9 font-extrabold md:text-3xl lg:text-3xl md:leading-10 max-w-xxs inline-block">
29+
Free Algolia Search For Developer Docs
30+
</span>
31+
</>
32+
}
2633
background="curves"
2734
cta={[
2835
<Button
@@ -68,7 +75,7 @@ function Home() {
6875
className="order-2 mt-2 text-lg leading-6 font-medium text-description"
6976
id="item-1"
7077
>
71-
Free
78+
Free Service
7279
</dt>
7380
<dd
7481
className="order-1 text-5xl leading-none font-extrabold text-indigo-600"
@@ -339,7 +346,7 @@ function Home() {
339346
<p className="mt-3 text-lg leading-7 text-description">
340347
Search doesn't have to be painful — when a user searches
341348
through your docs, they'll get a frictionless modal dialog to
342-
work in.
349+
work in. And it's a Free Service!
343350
</p>
344351

345352
<ul className="mt-10">

packages/website/src/css/custom.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@ html[data-theme='dark'] #hero > div:first-child {
128128
opacity: 0.4;
129129
}
130130

131+
/**
132+
* Hero component title overrides to match other heading styles
133+
*/
134+
.hero-title {
135+
color: rgb(28, 30, 33);
136+
font-family: var(--ifm-heading-font-family);
137+
}
138+
139+
html[data-theme='dark'] .hero-title {
140+
color: rgb(227, 227, 227);
141+
}
142+
131143
.docsearch-logo {
132144
color: #21243d;
133145
}
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)