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 = (
- <>
-
- Closed Access:
- {publisher}
- >
- );
- if (authorizedURL !== undefined) {
- // Must allow referrer for the ACM Author-Izer to work.
- return (
-
- {label}
-
- );
- }
return (
-
- {label}
-
+ {publisher}
+
);
}
function OpenAccess({ license }: { license: string }) {
const url = `https://creativecommons.org/licenses/${license}/4.0/`;
return (
-
-
- Open Access:
+
CC-{license.toUpperCase()}-4.0
-
+
);
}
function ArtifactLicense({ license, url }: { license: string; url: string }) {
return (
-
-
- Artifact license:
+
{license}
-
+
);
}
diff --git a/src/components/landing/sections/Research.tsx b/src/components/landing/sections/Research.tsx
index ea6f076..a295419 100644
--- a/src/components/landing/sections/Research.tsx
+++ b/src/components/landing/sections/Research.tsx
@@ -2,6 +2,8 @@
* SPDX-FileCopyrightText: 2023 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 clsx from 'clsx';
diff --git a/src/components/landing/sections/Resume.module.css b/src/components/landing/sections/Resume.module.css
index fb576a1..3293add 100644
--- a/src/components/landing/sections/Resume.module.css
+++ b/src/components/landing/sections/Resume.module.css
@@ -129,6 +129,16 @@
color: var(--ifm-color-emphasis-500);
}
+.cv__muted-link {
+ white-space: nowrap;
+ --ifm-link-color: var(--ifm-color-secondary-contrast-foreground);
+ --ifm-link-hover-color: var(--ifm-link-color);
+}
+
+[data-theme='dark'] .cv__muted-link {
+ --ifm-link-color: var(--ifm-color-emphasis-500);
+}
+
.cv__activities {
margin: 1em 0;
}
diff --git a/src/components/landing/sections/Resume.tsx b/src/components/landing/sections/Resume.tsx
index 6e2bc69..bac2bde 100644
--- a/src/components/landing/sections/Resume.tsx
+++ b/src/components/landing/sections/Resume.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';
@@ -40,13 +42,18 @@ function Education() {
-
- Some poritions may be exclusively licensed to their original
- publishers
+
+
+ Some poritions may be exclusively licensed to their original
+ publishers
+