Skip to content

Commit b4e3c33

Browse files
feat(license): update license links and descriptions for clarity and consistency
1 parent 07e9b33 commit b4e3c33

7 files changed

Lines changed: 44 additions & 6 deletions

File tree

‎public/yourselftoscience.pdf‎

0 Bytes
Binary file not shown.

‎src/app/data/page.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ ORDER BY DESC(?count)`;
182182
<p className="text-google-text-secondary mb-4 max-w-2xl mx-auto">
183183
Our dataset is dedicated to the public domain under the{' '}
184184
<a
185-
href="/LICENSE-DATASET"
186-
className="text-google-blue hover:underline"
187-
>
185+
href="/license/dataset"
186+
className="text-google-blue hover:underline"
187+
>
188188
Creative Commons CC0 1.0 Universal Public Domain Dedication (CC0 1.0)
189189
</a>
190190
. You can copy, modify, and distribute the data, even for commercial purposes, without asking permission.

‎src/app/license/code/page.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import CodeLicenseClientPage from './CodeLicenseClientPage';
44

55
export const metadata = {
66
title: 'Code License | Yourself To Science',
7-
description: 'Source code license for yourselftoscience.org. The underlying source code is licensed under the GNU Affero General Public License (AGPL-3.0).',
7+
description: 'Source code license for Yourself To Science. The underlying source code is licensed under the GNU Affero General Public License (AGPL-3.0).',
88
robots: {
99
index: false,
1010
follow: true,

‎src/app/license/content/page.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ContentLicenseClientPage from './ContentLicenseClientPage';
44

55
export const metadata = {
66
title: 'Content License | Yourself To Science',
7-
description: 'Content license for yourselftoscience.org. The content is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).',
7+
description: 'Content license for Yourself To Science. The content is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).',
88
robots: {
99
index: false,
1010
follow: true,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use client';
2+
3+
import { useScroll } from 'framer-motion';
4+
import LicensePage from '../LicensePage';
5+
6+
export default function DatasetLicenseClientPage({ content, sourceUrl }) {
7+
const { scrollY } = useScroll();
8+
9+
return (
10+
<main className="flex-grow pt-16">
11+
<LicensePage title="Dataset License (CC0 1.0)" content={content} sourceUrl={sourceUrl} />
12+
</main>
13+
);
14+
}

‎src/app/license/dataset/page.js‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import fs from 'fs';
2+
import path from 'path';
3+
import DatasetLicenseClientPage from './DatasetLicenseClientPage';
4+
5+
export const metadata = {
6+
title: 'Dataset License | Yourself To Science',
7+
description:
8+
'Dataset license for Yourself To Science. The dataset is dedicated to the public domain under the Creative Commons CC0 1.0 Universal Public Domain Dedication (CC0 1.0).',
9+
robots: {
10+
index: false,
11+
follow: true,
12+
},
13+
};
14+
15+
const DatasetLicensePage = () => {
16+
const filePath = path.join(process.cwd(), 'LICENSE-DATASET');
17+
const content = fs.readFileSync(filePath, 'utf8');
18+
const sourceUrl =
19+
'https://github.com/yourselftoscience/yourselftoscience.org/blob/main/LICENSE-DATASET';
20+
21+
return <DatasetLicenseClientPage content={content} sourceUrl={sourceUrl} />;
22+
};
23+
24+
export default DatasetLicensePage;

‎src/components/Footer.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default function Footer() {
118118
</Link>
119119
, and the dataset is dedicated to the public domain under the{' '}
120120
<Link
121-
href="/LICENSE-DATASET"
121+
href="/license/dataset"
122122
className="underline hover:text-apple-accent transition-colors duration-200 inline-flex items-center"
123123
>
124124
<FaCreativeCommons className="mr-1" />

0 commit comments

Comments
 (0)