aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/landing/sections/Resume.tsx5
-rw-r--r--src/css/custom.css6
-rw-r--r--src/theme/Blog/Components/Author.tsx (renamed from src/theme/BlogPostItem/Header/Author.tsx)7
-rw-r--r--src/theme/Blog/Components/Author/Socials.tsx13
-rw-r--r--src/theme/BlogPostItem/Header/Title.tsx4
-rw-r--r--src/theme/BlogSidebar/Desktop.module.css7
-rw-r--r--src/theme/BlogSidebar/Desktop.tsx49
7 files changed, 59 insertions, 32 deletions
diff --git a/src/components/landing/sections/Resume.tsx b/src/components/landing/sections/Resume.tsx
index 44c4c72..66ea541 100644
--- a/src/components/landing/sections/Resume.tsx
+++ b/src/components/landing/sections/Resume.tsx
@@ -182,7 +182,9 @@ function Experience() {
182 <Link to="https://semmelweis.hu/genomikai-medicina/en/"> 182 <Link to="https://semmelweis.hu/genomikai-medicina/en/">
183 Institute of Genomic Medicine and Rare Disorders, 183 Institute of Genomic Medicine and Rare Disorders,
184 </Link>{' '} 184 </Link>{' '}
185 <Link to="https://semmelweis.hu/english/">Semmelweis University,</Link>{' '} 185 <Link to="https://semmelweis.hu/english/">
186 Semmelweis University,
187 </Link>{' '}
186 Budapest, Hungary 188 Budapest, Hungary
187 </i> 189 </i>
188 </p> 190 </p>
@@ -460,7 +462,6 @@ function Service() {
460 to="https://link.springer.com/journal/10664" 462 to="https://link.springer.com/journal/10664"
461 rel="nofollow noopener noreferrer" 463 rel="nofollow noopener noreferrer"
462 > 464 >
463
464 EMSE 465 EMSE
465 </Link> 466 </Link>
466 </span> 467 </span>
diff --git a/src/css/custom.css b/src/css/custom.css
index e97111e..29a89b5 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -95,13 +95,15 @@ h2,
95} 95}
96 96
97h3, 97h3,
98.markdown > h4 { 98.markdown > h4,
99.avatar__name {
99 --casl: var(--marussy-slightly-casl); 100 --casl: var(--marussy-slightly-casl);
100} 101}
101 102
102h1, 103h1,
103h2, 104h2,
104h3 { 105h3,
106.avatar__name {
105 letter-spacing: var(--marussy-heading-tracking); 107 letter-spacing: var(--marussy-heading-tracking);
106} 108}
107 109
diff --git a/src/theme/BlogPostItem/Header/Author.tsx b/src/theme/Blog/Components/Author.tsx
index 7710a98..61f7dc7 100644
--- a/src/theme/BlogPostItem/Header/Author.tsx
+++ b/src/theme/Blog/Components/Author.tsx
@@ -4,13 +4,10 @@
4 * SPDX-License-Identifier: MIT 4 * SPDX-License-Identifier: MIT
5 */ 5 */
6 6
7import Author from '@theme-original/BlogPostItem/Header/Author'; 7import Author from '@theme-original/Blog/Components/Author';
8import type AuthorType from '@theme/BlogPostItem/Header/Author'; 8import type { Props } from '@theme/Blog/Components/Author';
9import type { WrapperProps } from '@docusaurus/types';
10import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; 9import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
11 10
12type Props = WrapperProps<typeof AuthorType>;
13
14export default function AuthorWrapper(props: Props): JSX.Element { 11export default function AuthorWrapper(props: Props): JSX.Element {
15 const { 12 const {
16 siteConfig: { url }, 13 siteConfig: { url },
diff --git a/src/theme/Blog/Components/Author/Socials.tsx b/src/theme/Blog/Components/Author/Socials.tsx
new file mode 100644
index 0000000..851d6f9
--- /dev/null
+++ b/src/theme/Blog/Components/Author/Socials.tsx
@@ -0,0 +1,13 @@
1/*
2 * SPDX-FileCopyrightText: 2024 Kristóf Marussy
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7import Socials from '@theme-original/Blog/Components/Author/Socials';
8import type { Props } from '@theme/Blog/Components/Author/Socials';
9
10export default function AuthorWrapper(props: Props): React.ReactNode {
11 // Do not reserve space for socials if they are not provided..
12 return props.author.socials ? <Socials {...props} /> : null;
13}
diff --git a/src/theme/BlogPostItem/Header/Title.tsx b/src/theme/BlogPostItem/Header/Title.tsx
index 9e19ec9..68a932f 100644
--- a/src/theme/BlogPostItem/Header/Title.tsx
+++ b/src/theme/BlogPostItem/Header/Title.tsx
@@ -5,7 +5,7 @@
5 * SPDX-License-Identifier: MIT 5 * SPDX-License-Identifier: MIT
6 * 6 *
7 * This file was derived from 7 * This file was derived from
8 * https://github.com/facebook/docusaurus/blob/73016d4936164ba38d4b86ec2aa8c168b5904a21/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Title/index.tsx 8 * https://github.com/facebook/docusaurus/blob/16a789904faec6b847356bad40b766a140c84b89/packages/docusaurus-theme-classic/src/theme/BlogPostItem/Header/Title/index.tsx
9 * via the `swizzle` mechanism of Docusaurus. 9 * via the `swizzle` mechanism of Docusaurus.
10 * 10 *
11 * It was modified to embed JSX content directly in the footer. 11 * It was modified to embed JSX content directly in the footer.
@@ -13,7 +13,7 @@
13 13
14import clsx from 'clsx'; 14import clsx from 'clsx';
15import Link from '@docusaurus/Link'; 15import Link from '@docusaurus/Link';
16import { useBlogPost } from '@docusaurus/theme-common/internal'; 16import { useBlogPost } from '@docusaurus/plugin-content-blog/client';
17import type { Props } from '@theme/BlogPostItem/Header/Title'; 17import type { Props } from '@theme/BlogPostItem/Header/Title';
18 18
19import styles from './Title.module.css'; 19import styles from './Title.module.css';
diff --git a/src/theme/BlogSidebar/Desktop.module.css b/src/theme/BlogSidebar/Desktop.module.css
index 4bac5ba..62d2b66 100644
--- a/src/theme/BlogSidebar/Desktop.module.css
+++ b/src/theme/BlogSidebar/Desktop.module.css
@@ -5,7 +5,7 @@
5 * SPDX-License-Identifier: MIT 5 * SPDX-License-Identifier: MIT
6 * 6 *
7 * This file was derived from 7 * This file was derived from
8 * https://github.com/facebook/docusaurus/blob/6f17d5493877ba38d8b4e0b0d468f44401375c30/packages/docusaurus-theme-classic/src/theme/BlogSidebar/Desktop/styles.module.css 8 * https://github.com/facebook/docusaurus/blob/16a789904faec6b847356bad40b766a140c84b89/packages/docusaurus-theme-classic/src/theme/BlogSidebar/Desktop/styles.module.css
9 * via the `swizzle` mechanism of Docusaurus. 9 * via the `swizzle` mechanism of Docusaurus.
10 * 10 *
11 * It was modified to change the sidebar title styling. 11 * It was modified to change the sidebar title styling.
@@ -51,3 +51,8 @@
51 display: none; 51 display: none;
52 } 52 }
53} 53}
54
55.yearGroupHeading {
56 margin-top: 1.6rem;
57 margin-bottom: 0.4rem;
58}
diff --git a/src/theme/BlogSidebar/Desktop.tsx b/src/theme/BlogSidebar/Desktop.tsx
index d06f239..9830388 100644
--- a/src/theme/BlogSidebar/Desktop.tsx
+++ b/src/theme/BlogSidebar/Desktop.tsx
@@ -5,22 +5,38 @@
5 * SPDX-License-Identifier: MIT 5 * SPDX-License-Identifier: MIT
6 * 6 *
7 * This file was derived from 7 * This file was derived from
8 * https://github.com/facebook/docusaurus/blob/6f17d5493877ba38d8b4e0b0d468f44401375c30/packages/docusaurus-theme-classic/src/theme/BlogSidebar/Desktop/index.tsx 8 * https://github.com/facebook/docusaurus/blame/16a789904faec6b847356bad40b766a140c84b89/packages/docusaurus-theme-classic/src/theme/BlogSidebar/Desktop/index.tsx
9 * via the `swizzle` mechanism of Docusaurus. 9 * via the `swizzle` mechanism of Docusaurus.
10 * 10 *
11 * It was modified to change the sidebar title styling. 11 * It was modified to change the sidebar title styling.
12 */ 12 */
13 13
14import Link from '@docusaurus/Link'; 14import React, { memo } from 'react';
15import clsx from 'clsx';
15import { translate } from '@docusaurus/Translate'; 16import { translate } from '@docusaurus/Translate';
16import { useVisibleBlogSidebarItems } from '@docusaurus/theme-common/internal'; 17import {
18 useVisibleBlogSidebarItems,
19 BlogSidebarItemList,
20} from '@docusaurus/plugin-content-blog/client';
21import BlogSidebarContent from '@theme/BlogSidebar/Content';
22import type { Props as BlogSidebarContentProps } from '@theme/BlogSidebar/Content';
17import type { Props } from '@theme/BlogSidebar/Desktop'; 23import type { Props } from '@theme/BlogSidebar/Desktop';
18import React from 'react';
19import clsx from 'clsx';
20 24
21import styles from './Desktop.module.css'; 25import styles from './Desktop.module.css';
22 26
23export default function BlogSidebarDesktop({ sidebar }: Props) { 27const ListComponent: BlogSidebarContentProps['ListComponent'] = ({ items }) => {
28 return (
29 <BlogSidebarItemList
30 items={items}
31 ulClassName={clsx(styles.sidebarItemList, 'clean-list')}
32 liClassName={styles.sidebarItem}
33 linkClassName={styles.sidebarItemLink}
34 linkActiveClassName={styles.sidebarItemLinkActive}
35 />
36 );
37};
38
39function BlogSidebarDesktop({ sidebar }: Props) {
24 const items = useVisibleBlogSidebarItems(sidebar.items); 40 const items = useVisibleBlogSidebarItems(sidebar.items);
25 return ( 41 return (
26 <aside className="col col--3"> 42 <aside className="col col--3">
@@ -35,21 +51,14 @@ export default function BlogSidebarDesktop({ sidebar }: Props) {
35 <div className={clsx(styles.sidebarItemTitle, 'margin-bottom--md')}> 51 <div className={clsx(styles.sidebarItemTitle, 'margin-bottom--md')}>
36 <span aria-hidden="true">🗓️</span> {sidebar.title} 52 <span aria-hidden="true">🗓️</span> {sidebar.title}
37 </div> 53 </div>
38 <ul className={clsx(styles.sidebarItemList, 'clean-list')}> 54 <BlogSidebarContent
39 {items.map((item) => ( 55 items={items}
40 <li key={item.permalink} className={styles.sidebarItem}> 56 ListComponent={ListComponent}
41 <Link 57 yearGroupHeadingClassName={styles.yearGroupHeading}
42 isNavLink 58 />
43 to={item.permalink}
44 className={styles.sidebarItemLink}
45 activeClassName={styles.sidebarItemLinkActive}
46 >
47 {item.title}
48 </Link>
49 </li>
50 ))}
51 </ul>
52 </nav> 59 </nav>
53 </aside> 60 </aside>
54 ); 61 );
55} 62}
63
64export default memo(BlogSidebarDesktop);