Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8ea0011
chore: format
jliermann Jan 12, 2026
574a598
chore: styles
jliermann Jan 12, 2026
79ca5ac
feat: refactor styles import to include required lbe classes
jliermann Jan 12, 2026
735fa63
chore: styles
jliermann Jan 12, 2026
b3a6de3
chore: formatting
jliermann Jan 12, 2026
6fe181a
fix: update styles import and class names in FilterButton and RepoBut…
jliermann Jan 12, 2026
c8af244
chore: formatting
jliermann Jan 12, 2026
bf73d24
feat: add styles for authorTrigger button in ShortenDesc component
jliermann Jan 12, 2026
9b390a8
chore: formatting
jliermann Jan 12, 2026
d6d4fb8
refactor: classnames in camelcase for better code readability
jliermann Jan 12, 2026
63137b8
fix: improve alignment
jliermann Jan 12, 2026
c905dbe
chore: formatting
jliermann Jan 12, 2026
5364e5f
refactor: replace string concatenation with clsx for className manage…
jliermann Jan 12, 2026
3fefe97
chore: deprecate currently unused components
jliermann Jan 12, 2026
7a2ee60
chore: move deprecated methods table styles to a separate file
jliermann Jan 12, 2026
479d07d
refactor: move all css files to css folder
jliermann Jan 12, 2026
30ee3ba
chore: formatting
jliermann Jan 12, 2026
6a2afa5
refactor: all css imports pointed to css folder
jliermann Jan 12, 2026
73ddaf9
Merge pull request #489 from jliermann/main
jliermann Jan 12, 2026
9e58843
Initial plan
Copilot Jan 12, 2026
dca727a
Remove .js extensions from ElnStyles imports and fix unused variables
Copilot Jan 12, 2026
1344088
Merge pull request #491 from NFDI4Chem/copilot/sub-pr-490
jliermann Jan 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/10_domains/30_pharmaceutical_chemistry.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: "Medicinal / Pharmaceutical Chemistry"
slug: "/pharmaceutical_chemistry"
---

import Methods from "@site/src/components/Methods.js";
import { LbeChip } from "@site/src/components/lbe/LbeElements.js";
import ElnFinderPharm from "@site/src/components/eln/ElnFinderPharm.js";

Expand Down
22 changes: 12 additions & 10 deletions src/components/BulletBox.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import clsx from "clsx";

function BulletContainer({ children }) {
return <div className="container row">{children}</div>;
return <div className="container row">{children}</div>;
}

function BulletBox({ children, secondary }) {
let boxStyle = secondary ? "button--secondary" : "button--primary";
let boxStyle = secondary ? "button--secondary" : "button--primary";

return (
<div
className={"col button button--lg " + boxStyle}
style={{ padding: "0.75em", margin: "0.4em", flexGrow: 1 }}
>
{children}
</div>
);
return (
<div
className={clsx("col", "button", "button--lg", boxStyle)}
style={{ padding: "0.75em", margin: "0.4em", flexGrow: 1 }}
>
{children}
</div>
);
}

export { BulletContainer, BulletBox };
14 changes: 8 additions & 6 deletions src/components/IntroButton.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import React from "react";
import useBaseUrl from "@docusaurus/useBaseUrl";

import styles from "./N4CFeatures.module.css";
import styles from "@site/src/css/N4CFeatures.module.css";
import clsx from "clsx";

export default function IntroButton(props) {
return (
<div className={"col " + styles.introCol}>
<div className={clsx("col", styles.introCol)}>
<div>
<a
href={useBaseUrl(props.url)}
className={
"button button--secondary " + styles.featureButtonSecondary
}
className={clsx(
"button",
"button--secondary",
styles.featureButtonSecondary,
)}
>
<div>
<img src={useBaseUrl(props.imgUrl)} width="120px" />
Expand Down
5 changes: 3 additions & 2 deletions src/components/N4CFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import Link from "@docusaurus/Link";
import useBaseUrl from "@docusaurus/useBaseUrl";
import Translate from "@docusaurus/Translate";

import styles from "./N4CFeatures.module.css";
import styles from "@site/src/css/N4CFeatures.module.css";
import clsx from "clsx";

const features = {
entry: [
Expand Down Expand Up @@ -107,7 +108,7 @@ const features = {

function Feature({ title, svg, link, style }) {
return (
<div className={"col " + styles.featureCol}>
<div className={clsx("col", styles.featureCol)}>
<div className="text--center">
{link ? (
<Link
Expand Down
104 changes: 52 additions & 52 deletions src/components/chemotion/ChemotionCarousel.js
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
import {Carousel} from "nuka-carousel";
import style from "./ChemotionCarousel.module.css";
import {useCarousel} from "nuka-carousel";
import { Carousel } from "nuka-carousel";
import styles from "@site/src/css/ChemotionCarousel.module.css";
import { useCarousel } from "nuka-carousel";

function CustomDots() {
const {totalPages, currentPage, goToPage} = useCarousel();
const { totalPages, currentPage, goToPage } = useCarousel();

const className = (index) => {
let value = style.chemotionCarouselDot;
if (currentPage === index) {
value += " " + style.chemotionCarouselDotActive;
}
return value;
};
const className = (index) => {
let value = styles.chemotionCarouselDot;
if (currentPage === index) {
value += " " + styles.chemotionCarouselDotActive;
}
return value;
};

return (
<div className={style.chemotionCarouselDots}>
{[...Array(totalPages)].map((_, index) => (
<span
key={index}
onClick={() => goToPage(index)}
className={className(index)}
>
&#8226;
</span>
))}
</div>
);
return (
<div className={styles.chemotionCarouselDots}>
{[...Array(totalPages)].map((_, index) => (
<span
key={index}
onClick={() => goToPage(index)}
className={className(index)}
>
&#8226;
</span>
))}
</div>
);
}

function ChemotionCarousel({icon, images}) {
return (
<div className={style.chemotionCarousel}>
<img
className={style.chemotionCarouselIcon}
src={icon.src}
alt={icon.alt}
/>
<div className={style.chemotionCarouselContainer}>
<Carousel
showDots
showArrows
autoplay
wrapMode="wrap"
dots={<CustomDots />}
>
{images.map((image, index) => (
<img
className={style.chemotionCarouselImage}
key={index}
src={image.src}
alt={image.alt}
/>
))}
</Carousel>
</div>
</div>
);
function ChemotionCarousel({ icon, images }) {
return (
<div className={styles.chemotionCarousel}>
<img
className={styles.chemotionCarouselIcon}
src={icon.src}
alt={icon.alt}
/>
<div className={styles.chemotionCarouselContainer}>
<Carousel
showDots
showArrows
autoplay
wrapMode="wrap"
dots={<CustomDots />}
>
{images.map((image, index) => (
<img
className={styles.chemotionCarouselImage}
key={index}
src={image.src}
alt={image.alt}
/>
))}
</Carousel>
</div>
</div>
);
}

export default ChemotionCarousel;
325 changes: 143 additions & 182 deletions src/components/chemotion/ChemotionLifecycle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/commons/FloatImage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import useBaseUrl from "@docusaurus/useBaseUrl";
import Link from "@docusaurus/Link";

import styles from "./FloatImage.module.css";
import styles from "@site/src/css/FloatImage.module.css";

function FloatImage({ url, alt, ...props }) {
// Object for custom styles
Expand Down
62 changes: 30 additions & 32 deletions src/components/commons/ShortenDesc.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,41 @@
import React, { useState } from "react";

import styles from "@site/src/css/ShortenDesc.module.css";

// shorten the description of the experiment up to the next blank, comma or period after 100 characters

function ShortenDesc({ desc, length }) {
const [collapsed, setCollapsed] = useState(true);
const [collapsed, setCollapsed] = useState(true);

if (desc.length <= length) {
return <React.Fragment>{desc}</React.Fragment>;
}
if (desc.length <= length) {
return <React.Fragment>{desc}</React.Fragment>;
}

return (
<React.Fragment>
{collapsed ? (
<span
title={desc}
onClick={() => setCollapsed(!collapsed)}
style={{ cursor: "pointer" }}
>
{desc.slice(0, length) +
desc.slice(length).split(/[\s,\.]/)[0] +
" ..."}
return (
<React.Fragment>
{collapsed ? (
<span
title={desc}
onClick={() => setCollapsed(!collapsed)}
style={{ cursor: "pointer" }}
>
{desc.slice(0, length) +
desc.slice(length).split(/[\s,\.]/)[0] +
" ..."}

<button className="lbe__block__author-trigger">
expand &#9660;
</button>
</span>
) : (
<span
onClick={() => setCollapsed(!collapsed)}
style={{ cursor: "pointer" }}
>
{desc}
<button className="lbe__block__author-trigger">
collapse &#9650;
</button>
</span>
)}
</React.Fragment>
);
<button className={styles.authorTrigger}>expand &#9660;</button>
</span>
) : (
<span
onClick={() => setCollapsed(!collapsed)}
style={{ cursor: "pointer" }}
>
{desc}
<button className={styles.authorTrigger}>collapse &#9650;</button>
</span>
)}
</React.Fragment>
);
}

export default ShortenDesc;
File renamed without changes.
File renamed without changes.
Loading