From 12be376975f55fe1ee118bca6d7ae5f699a881a4 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sat, 16 Mar 2024 21:40:17 +0100 Subject: Add license page --- src/components/landing/sections/Hero.tsx | 2 + .../landing/sections/Publications.module.css | 9 --- src/components/landing/sections/Publications.tsx | 74 +++++++---------- src/components/landing/sections/Research.tsx | 2 + src/components/landing/sections/Resume.module.css | 10 +++ src/components/landing/sections/Resume.tsx | 21 +++-- src/components/licenses.module.css | 30 +++++++ src/components/licenses.tsx | 92 ++++++++++++++++++++++ 8 files changed, 177 insertions(+), 63 deletions(-) create mode 100644 src/components/licenses.module.css create mode 100644 src/components/licenses.tsx (limited to 'src/components') diff --git a/src/components/landing/sections/Hero.tsx b/src/components/landing/sections/Hero.tsx index 4974285..2773b9b 100644 --- a/src/components/landing/sections/Hero.tsx +++ b/src/components/landing/sections/Hero.tsx @@ -2,6 +2,8 @@ * SPDX-FileCopyrightText: 2023-2024 Kristóf Marussy * * SPDX-License-Identifier: MIT AND CC-BY-4.0 + * + * Code in this file is MIT licensed, while content is CC-BY-4.0 licensed. */ import Link from '@docusaurus/Link'; diff --git a/src/components/landing/sections/Publications.module.css b/src/components/landing/sections/Publications.module.css index c9a39ba..9ef368b 100644 --- a/src/components/landing/sections/Publications.module.css +++ b/src/components/landing/sections/Publications.module.css @@ -12,15 +12,6 @@ white-space: nowrap; } -.link--license { - --ifm-link-color: var(--ifm-color-secondary-contrast-foreground); - --ifm-link-hover-color: var(--ifm-link-color); -} - -[data-theme='dark'] .link--license { - --ifm-link-color: var(--ifm-color-emphasis-500); -} - .link--lower { text-transform: lowercase; } diff --git a/src/components/landing/sections/Publications.tsx b/src/components/landing/sections/Publications.tsx index 90c058e..068ec49 100644 --- a/src/components/landing/sections/Publications.tsx +++ b/src/components/landing/sections/Publications.tsx @@ -1,22 +1,16 @@ /* * SPDX-FileCopyrightText: 2023-2024 Kristóf Marussy * - * SPDX-License-Identifier: MIT + * SPDX-License-Identifier: MIT AND CC-BY-4.0 + * + * Code in this file is MIT licensed, while content is CC-BY-4.0 licensed. */ import Link from '@docusaurus/Link'; -import { - ArrowSquareOut, - Certificate, - File, - Lock, - Package, - Play, -} from '@phosphor-icons/react'; +import { ArrowSquareOut, File, Package, Play } from '@phosphor-icons/react'; import clsx from 'clsx'; import { - CreativeCommonsIcon, DBLPIcon, GoogleScholarIcon, MTMTIcon, @@ -26,6 +20,11 @@ import { import Section from '@site/src/components/landing/Section'; import Subtitle from '@site/src/components/landing/Subtitle'; import authorizedLinks from '@site/src/components/landing/sections/authorizedLinks'; +import { + CCLicenseLink, + ClosedAccessLink, + LicenseLink, +} from '@site/src/components/licenses'; import styles from './Publications.module.css'; @@ -101,59 +100,40 @@ function ClosedAccess({ url: string; authorizedURL?: string | undefined; }) { - const label = ( - <> -