Skip to content

Commit

Permalink
Merge pull request #101 from ScilifelabDataCentre/license-update
Browse files Browse the repository at this point in the history
Adding license page
  • Loading branch information
JanProgrammierung authored Jan 31, 2025
2 parents b7280dc + 70280be commit 5b2bfad
Show file tree
Hide file tree
Showing 4 changed files with 222 additions and 21 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

59 changes: 59 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
## Website content

Unless specified otherwise, the content (text and images) of this website is
licensed [Creative Commons Attribution 4.0 International
License](https://creativecommons.org/licenses/by/4.0/). This is a human-readable
summary of (and not a substitute for) [the
license](https://creativecommons.org/licenses/by/4.0/legalcode).

### You are free to:

- **Share** — copy and redistribute the material in any medium or format
- **Adapt** — remix, transform, and build upon the material for any purpose,
even commercially.

The licensor cannot revoke these freedoms as long as you follow the license terms.

### Under the following terms:

- **Attribution** — You must give appropriate credit, provide a link to the
license, and indicate if changes were made. You may do so in any reasonable
manner, but not in any way that suggests the licensor endorses you or your
use.
- **No additional restrictions** — You may not apply legal terms or
technological measures that legally restrict others from doing anything the
license permits.

### Notices:

You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.

No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.

## Software

Except where otherwise noted, any software in this repository are made available under the [OSI](https://opensource.org/)-approved [MIT license](https://opensource.org/licenses/mit-license.html).

### For the rest of the code

Copyright (c) 2025 SciLifeLab Data Centre

### The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
162 changes: 162 additions & 0 deletions next-app/src/app/license/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
"use client";

import { ReactElement } from "react";
import Link from "next/link";
import { ILink } from "@/interfaces/types";

import { LastUpdated } from "@/components/common/last-updated";
import { TrackPageViewIfEnabled } from "@/util/cookiesHandling";
import Title from "@/components/common/title";

export default function AboutPage(): ReactElement {
TrackPageViewIfEnabled();

const breadcrumbs: { [id: string]: ILink } = {
l1: { text: "Home", classes: "", link: "/" },
l2: { text: "License", classes: "", link: "" },
};

return (
<div className="container mx-auto px-4 py-8">
<div className="text-sm breadcrumbs">
<ul>
{Object.keys(breadcrumbs).map((key) => (
<li key={key}>
{breadcrumbs[key].link ? (
<Link href={breadcrumbs[key].link}>
{breadcrumbs[key].text}
</Link>
) : (
<>{breadcrumbs[key].text}</>
)}
</li>
))}
</ul>
</div>
<div className="flex flex-col gap-y-4">
<Title level={1}>License</Title>
<Title level={2} className="mt-4">
Website content
</Title>

<p>
Unless specified otherwise, the content (text and images) of this
website is licensed{" "}
<a
href="https://creativecommons.org/licenses/by/4.0/"
target="_blank"
className="text-primary hover:text-black underline"
>
Creative Commons Attribution 4.0 International License
</a>
. This is a human-readable summary of (and not a substitute for){" "}
<a
href="https://creativecommons.org/licenses/by/4.0/legalcode"
target="_blank"
className="text-primary hover:text-black underline"
>
the license
</a>
.
</p>

<Title level={3}>You are free to:</Title>
<ul className="list-disc pl-4">
<li>
<strong>Share</strong> — copy and redistribute the material in any
medium or format
</li>
<li>
<strong>Adapt</strong> — remix, transform, and build upon the
material for any purpose, even commercially.
</li>
</ul>
<p>
The licensor cannot revoke these freedoms as long as you follow the
license terms.
</p>

<Title level={3}>Under the following terms:</Title>
<ul className="list-disc pl-4">
<li>
<strong>Attribution</strong> — You must give appropriate credit,
provide a link to the license, and indicate if changes were made.
You may do so in any reasonable manner, but not in any way that
suggests the licensor endorses you or your use.
</li>
<li>
<strong>No additional restrictions</strong> — You may not apply
legal terms or technological measures that legally restrict others
from doing anything the license permits.
</li>
</ul>

<Title level={3}>Notices:</Title>
<p>
You do not have to comply with the license for elements of the
material in the public domain or where your use is permitted by an
applicable exception or limitation.
</p>
<p>
No warranties are given. The license may not give you all of the
permissions necessary for your intended use. For example, other rights
such as publicity, privacy, or moral rights may limit how you use the
material.
</p>

<Title level={2} className="mt-4">
Software
</Title>
<p>
Except where otherwise noted, any software in this repository are made
available under the{" "}
<a
href="https://opensource.org/"
target="_blank"
className="text-primary hover:text-black underline"
>
OSI
</a>
-approved{" "}
<a
href="https://opensource.org/licenses/mit-license.html"
target="_blank"
className="text-primary hover:text-black underline"
>
MIT license
</a>
.
</p>

<Title level={3}>For the rest of the code</Title>
<p>Copyright (c) 2025 SciLifeLab Data Centre</p>

<Title level={3}>The MIT License (MIT)</Title>
<p>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
</p>
<p>
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
</p>
<p>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</p>

<LastUpdated date="30-01-2025" />
</div>
</div>
);
}
1 change: 1 addition & 0 deletions next-app/src/components/FooterComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default function FooterComponent(): ReactElement {
l5: { text: "About us", classes: LINK_CLASSES, link: "/about/product" },
l6: { text: "Contact", classes: LINK_CLASSES, link: "/contact" },
l7: { text: "Privacy policy", classes: LINK_CLASSES, link: "/privacy" },
l8: { text: "License", classes: LINK_CLASSES, link: "/license" },
};

const svgs: { [id: string]: ISVG } = {
Expand Down

0 comments on commit 5b2bfad

Please sign in to comment.