Skip to content

Commit 14ba40b

Browse files
overtruemajinghe
andauthored
feat: add cookie consent controls (#66)
* feat: redesign RustFS website * feat: refine product and download pages * feat: add refined UI motion * feat: refine website content and blog experience * style: polish RustFS website design * style: refine visual hierarchy details * style: polish site audit details * style: tighten frontend design audit details * style: add varied technical card surfaces * style: diversify technical card layouts * style: apply varied motion-inspired interface patterns * feat: refine site design and blog structure * style: polish product pages and localize blog assets * style: align interface rhythm with Vercel design * fix: guard globe initialization * chore: restore June 26 website snapshot * style: refine site around product maturity * fix: preserve original site copy * style: reduce decorative numbering * style: refine observability feature layout * style: simplify pricing tiers * style: lighten latest release panel * fix: use Kubernetes icon on download page * feat: split downloads by product * style: align section headers to the left * style: restore NVIDIA visual weight * style: refine website layouts and download flows * style: unify card and heading layouts * style: refresh product feature pages * style: refine homepage product messaging * fix: repair footer navigation links * style: refine visual diagrams and blog headers * add the latest blog (#61) * style: animate storage ecosystem logos * feat: add privacy policy page * style: refine homepage hierarchy and navigation * style: refine product page calls to action * feat: improve download and pricing journeys * feat: paginate blog archive * feat: expand contact qualification fields * style: replace about partner panel with contact details * feat: add homepage announcement banner * docs: add MinIO trademark disclaimer * style: simplify homepage metrics * style: remove homepage blog numbering * fix: label multi-protocol feature with S3 * style: remove striped button backgrounds * fix: prefer concise server releases * fix: repair local preview runtime * style: reduce announcement badge height * style: align story card headers * fix: update MinIO migration blog cover (#63) * fix: remove footer language link (#64) * chore: rename minio image files to s3 * feat: add cookie consent controls * chore: configure Google Analytics ID --------- Co-authored-by: hector <42570491+majinghe@users.noreply.github.com>
1 parent dd79429 commit 14ba40b

7 files changed

Lines changed: 573 additions & 42 deletions

File tree

‎app/cookie-policy/page.tsx‎

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
import type { Metadata } from 'next'
2+
3+
import { CookieSettingsButton } from '@/components/business/cookie-consent'
4+
5+
export const metadata: Metadata = {
6+
title: 'Cookie Policy | RustFS',
7+
description: 'Learn how RustFS uses cookies and similar technologies on the official website.',
8+
}
9+
10+
const sectionClassName = 'border-t border-border pt-8 first:border-t-0 first:pt-0'
11+
const headingClassName = 'text-2xl font-semibold tracking-tight text-foreground sm:text-3xl'
12+
const subheadingClassName = 'text-lg font-semibold text-foreground'
13+
const paragraphClassName = 'text-base leading-8 text-muted-foreground'
14+
15+
export default function CookiePolicyPage() {
16+
return (
17+
<main className="relative z-10 flex-1 text-foreground">
18+
<section className="mx-auto max-w-7xl px-4 py-20 sm:px-6 lg:px-8 lg:py-28">
19+
<div className="grid gap-8 border-b border-border pb-12 lg:grid-cols-[1fr_auto] lg:items-end">
20+
<div>
21+
<p className="font-mono text-[11px] font-semibold uppercase tracking-[0.2em] text-brand">
22+
Legal
23+
</p>
24+
<h1 className="mt-5 text-4xl font-semibold tracking-[-0.035em] text-foreground sm:text-5xl">
25+
Cookie Policy
26+
</h1>
27+
<p className="mt-6 max-w-3xl text-base leading-8 text-muted-foreground">
28+
How the RustFS official website uses cookies, local storage, scripts, and similar technologies.
29+
</p>
30+
</div>
31+
<p className="border border-border bg-card px-4 py-3 font-mono text-xs font-semibold uppercase tracking-[0.14em] text-muted-foreground">
32+
Effective July 30, 2026
33+
</p>
34+
</div>
35+
36+
<article className="mx-auto mt-12 max-w-4xl space-y-12 border border-border bg-card p-6 sm:p-10 lg:p-12">
37+
<section className={sectionClassName}>
38+
<h2 className={headingClassName}>1. Scope</h2>
39+
<p className={`${paragraphClassName} mt-5`}>
40+
This Cookie Policy explains how RustFS (&quot;we,&quot; &quot;our,&quot; or &quot;us&quot;) uses cookies and similar storage or access technologies on rustfs.com. It should be read together with our{' '}
41+
<a className="font-medium text-brand underline-offset-4 hover:underline" href="/privacy-policy">
42+
Privacy Policy
43+
</a>
44+
. Cookies are small text files, while similar technologies include browser local storage, scripts, tags, and pixels.
45+
</p>
46+
</section>
47+
48+
<section className={sectionClassName}>
49+
<h2 className={headingClassName}>2. How We Use These Technologies</h2>
50+
<div className="mt-5 space-y-7">
51+
<div>
52+
<h3 className={subheadingClassName}>Strictly Necessary and Preference Technologies</h3>
53+
<p className={`${paragraphClassName} mt-3`}>
54+
These technologies remember choices you request, record your privacy preference, and help protect forms from abuse. They are not used for advertising. Where applicable law permits, they operate without optional consent because they are necessary to provide requested features or preserve your privacy choices.
55+
</p>
56+
</div>
57+
<div>
58+
<h3 className={subheadingClassName}>Analytics Technologies</h3>
59+
<p className={`${paragraphClassName} mt-3`}>
60+
With your permission, we use Google Analytics to understand visits, page usage, referring sources, device and browser characteristics, and website performance. Analytics is disabled until you actively accept it and can be disabled again at any time. Google advertising signals and ad personalization are disabled in our configuration.
61+
</p>
62+
</div>
63+
</div>
64+
</section>
65+
66+
<section className={sectionClassName}>
67+
<h2 className={headingClassName}>3. Technology Details</h2>
68+
69+
<div className="mt-6 overflow-x-auto border border-border">
70+
<table className="w-full min-w-[720px] border-collapse text-left text-sm">
71+
<thead className="bg-muted/40 text-foreground">
72+
<tr>
73+
<th className="border-b border-border px-4 py-3 font-semibold">Name or pattern</th>
74+
<th className="border-b border-border px-4 py-3 font-semibold">Provider</th>
75+
<th className="border-b border-border px-4 py-3 font-semibold">Purpose</th>
76+
<th className="border-b border-border px-4 py-3 font-semibold">Category</th>
77+
<th className="border-b border-border px-4 py-3 font-semibold">Duration</th>
78+
</tr>
79+
</thead>
80+
<tbody className="text-muted-foreground">
81+
<tr>
82+
<td className="border-b border-border px-4 py-3 font-mono text-xs text-foreground">rustfs-cookie-consent</td>
83+
<td className="border-b border-border px-4 py-3">RustFS</td>
84+
<td className="border-b border-border px-4 py-3">Stores your analytics choice and the policy version in local storage.</td>
85+
<td className="border-b border-border px-4 py-3">Necessary</td>
86+
<td className="border-b border-border px-4 py-3">Treated as expired after 6 months</td>
87+
</tr>
88+
<tr>
89+
<td className="border-b border-border px-4 py-3 font-mono text-xs text-foreground">theme</td>
90+
<td className="border-b border-border px-4 py-3">RustFS</td>
91+
<td className="border-b border-border px-4 py-3">Remembers the light or dark appearance selected by the user in local storage.</td>
92+
<td className="border-b border-border px-4 py-3">Preference</td>
93+
<td className="border-b border-border px-4 py-3">Until deleted by the user</td>
94+
</tr>
95+
<tr>
96+
<td className="border-b border-border px-4 py-3 font-mono text-xs text-foreground">rustfs-language-banner-dismissed</td>
97+
<td className="border-b border-border px-4 py-3">RustFS</td>
98+
<td className="border-b border-border px-4 py-3">Remembers that the user dismissed the language suggestion.</td>
99+
<td className="border-b border-border px-4 py-3">Preference</td>
100+
<td className="border-b border-border px-4 py-3">Until deleted by the user</td>
101+
</tr>
102+
<tr>
103+
<td className="border-b border-border px-4 py-3 font-mono text-xs text-foreground">hCaptcha security identifiers</td>
104+
<td className="border-b border-border px-4 py-3">Intuition Machines / hCaptcha</td>
105+
<td className="border-b border-border px-4 py-3">Detects automated abuse and enables secure contact-form submission.</td>
106+
<td className="border-b border-border px-4 py-3">Necessary</td>
107+
<td className="border-b border-border px-4 py-3">Session or provider-defined security period</td>
108+
</tr>
109+
<tr>
110+
<td className="border-b border-border px-4 py-3 font-mono text-xs text-foreground">_ga</td>
111+
<td className="border-b border-border px-4 py-3">Google Analytics</td>
112+
<td className="border-b border-border px-4 py-3">Distinguishes visitors for aggregate traffic and usage measurement.</td>
113+
<td className="border-b border-border px-4 py-3">Analytics</td>
114+
<td className="border-b border-border px-4 py-3">Up to 2 years</td>
115+
</tr>
116+
<tr>
117+
<td className="border-b border-border px-4 py-3 font-mono text-xs text-foreground">_ga_&lt;container-id&gt;</td>
118+
<td className="border-b border-border px-4 py-3">Google Analytics</td>
119+
<td className="border-b border-border px-4 py-3">Maintains session state for the configured analytics property.</td>
120+
<td className="border-b border-border px-4 py-3">Analytics</td>
121+
<td className="border-b border-border px-4 py-3">Up to 2 years</td>
122+
</tr>
123+
</tbody>
124+
</table>
125+
</div>
126+
127+
<p className={`${paragraphClassName} mt-5`}>
128+
Third-party technology names and durations can change when providers update their services. We periodically review this list. For more information about Google&apos;s processing, see{' '}
129+
<a
130+
className="font-medium text-brand underline-offset-4 hover:underline"
131+
href="https://policies.google.com/privacy"
132+
rel="noreferrer"
133+
target="_blank"
134+
>
135+
Google&apos;s Privacy Policy
136+
</a>
137+
{' '}and its explanation of{' '}
138+
<a
139+
className="font-medium text-brand underline-offset-4 hover:underline"
140+
href="https://support.google.com/analytics/answer/11593727"
141+
rel="noreferrer"
142+
target="_blank"
143+
>
144+
safeguards for Google Analytics data
145+
</a>
146+
.
147+
</p>
148+
</section>
149+
150+
<section className={sectionClassName}>
151+
<h2 className={headingClassName}>4. Your Choices</h2>
152+
<p className={`${paragraphClassName} mt-5`}>
153+
You may reject analytics on your first visit, change your preference at any time, or use your browser controls to block or delete storage. Withdrawing analytics consent stops future loading of the analytics script and removes accessible Google Analytics cookies from this website. Third-party cookies that we cannot access may need to be removed through your browser settings.
154+
</p>
155+
<CookieSettingsButton className="mt-6 inline-flex h-10 items-center justify-center border border-border bg-background px-4 text-sm font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand" />
156+
</section>
157+
158+
<section className={sectionClassName}>
159+
<h2 className={headingClassName}>5. International Processing</h2>
160+
<p className={`${paragraphClassName} mt-5`}>
161+
Analytics and form-security providers may process technical or usage information outside your country, including in the United States. Where required, we use appropriate safeguards and limit processing to the stated purpose. You can avoid analytics-related transfers by rejecting analytics.
162+
</p>
163+
</section>
164+
165+
<section className={sectionClassName}>
166+
<h2 className={headingClassName}>6. Updates and Contact</h2>
167+
<p className={`${paragraphClassName} mt-5`}>
168+
We may update this policy when our technology or legal obligations change. Questions about this policy or our privacy practices may be sent to{' '}
169+
<a className="font-medium text-brand underline-offset-4 hover:underline" href="mailto:hello@rustfs.com">
170+
hello@rustfs.com
171+
</a>
172+
.
173+
</p>
174+
</section>
175+
</article>
176+
</section>
177+
</main>
178+
)
179+
}

‎app/layout.tsx‎

Lines changed: 18 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { Metadata } from "next";
22
import { ThemeProvider } from "next-themes";
33
import { Geist, Geist_Mono } from "next/font/google";
4-
import Script from "next/script";
54

65
import { SITE_CONFIG, SITE_METADATA } from '@/app.config';
76
import AppFooter from '@/components/business/app-footer';
87
import AppHeader from '@/components/business/app-header';
98
import FixedContactButton from '@/components/business/buttons/fixed-contact-button';
9+
import { CookieConsentProvider } from '@/components/business/cookie-consent';
1010
import FixedLanguageBanner from '@/components/business/fixed-language-banner';
1111
import SkipLink from '@/components/business/skip-link';
1212
import BackgroundGrid from '@/components/ui/background-grid';
@@ -82,38 +82,23 @@ export default async function RootLayout({
8282
<body
8383
className={`${geistSans.variable} ${geistMono.variable} flex h-full flex-col overflow-x-clip antialiased`}
8484
>
85-
<ThemeProvider enableSystem attribute="class">
86-
<SkipLink />
87-
<BackgroundGrid />
88-
<FixedLanguageBanner />
89-
<AppHeader />
90-
<div
91-
id="main-content"
92-
tabIndex={-1}
93-
className="flex min-h-0 flex-1 flex-col outline-none"
94-
>
95-
{children}
96-
</div>
97-
<AppFooter />
98-
<FixedContactButton />
99-
</ThemeProvider>
100-
<Script
101-
src="https://www.googletagmanager.com/gtag/js?id=G-TWW7WMTWL9"
102-
strategy="afterInteractive"
103-
/>
104-
<Script id="google-analytics" strategy="afterInteractive">
105-
{`
106-
window.dataLayer = window.dataLayer || [];
107-
function gtag(){dataLayer.push(arguments);}
108-
gtag('js', new Date());
109-
gtag('config', 'G-TWW7WMTWL9');
110-
`}
111-
</Script>
112-
<Script
113-
id="baidu-analytics"
114-
src="https://hm.baidu.com/hm.js?968e7103a8e28fb30f7d69e42b7c82bc"
115-
strategy="afterInteractive"
116-
/>
85+
<CookieConsentProvider>
86+
<ThemeProvider enableSystem attribute="class">
87+
<SkipLink />
88+
<BackgroundGrid />
89+
<FixedLanguageBanner />
90+
<AppHeader />
91+
<div
92+
id="main-content"
93+
tabIndex={-1}
94+
className="flex min-h-0 flex-1 flex-col outline-none"
95+
>
96+
{children}
97+
</div>
98+
<AppFooter />
99+
<FixedContactButton />
100+
</ThemeProvider>
101+
</CookieConsentProvider>
117102
</body>
118103
</html>
119104
);

0 commit comments

Comments
 (0)