Skip to content

Commit 7cb1b07

Browse files
new images
1 parent d08fa2c commit 7cb1b07

File tree

9 files changed

+126
-38
lines changed

9 files changed

+126
-38
lines changed

src/components/HomepageFeatures.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useColorMode } from '@docusaurus/theme-common';
77
const FeatureList = [
88
{
99
title: 'User Guide',
10-
Svg: require('@site/static/img/misc/undraw_scientist_ft0o.svg').default,
10+
Svg: require('@site/static/img/misc/scientist_holding_pioreactor_right.svg').default,
1111
link: "/user-guide/introduction",
1212
description: (
1313
<>
@@ -27,7 +27,7 @@ const FeatureList = [
2727
},
2828
{
2929
title: 'Experiments',
30-
Svg: require('@site/static/img/misc/undraw_professor_re_mj1s.svg').default,
30+
Svg: require('@site/static/img/misc/prof_teaching_right.svg').default,
3131
link: "/experiments/introduction",
3232
description: (
3333
<>
@@ -39,15 +39,15 @@ const FeatureList = [
3939

4040
function Feature({Svg, title, description, link}) {
4141
return (
42-
<div className={clsx('col col--4')}>
43-
<div className="text--center">
42+
<div className={clsx('col col--4', styles.featureCard)}>
43+
<div className={clsx('text--center')}>
4444
<a href={link}>
4545
<Svg
46-
className={styles.featureSvg}
47-
stroke={useColorMode().colorMode === "dark" ? "white" : "#5332CA"}
48-
fill={useColorMode().colorMode === "dark" ? "white" : "#5332CA"}
49-
alt={title} />
50-
</a>
46+
className={styles.featureSvg}
47+
stroke={useColorMode().colorMode === "dark" ? "white" : "#5332CA"}
48+
fill={useColorMode().colorMode === "dark" ? "white" : "#5332CA"}
49+
alt={title} />
50+
</a>
5151
</div>
5252
<div className="text--center padding-horiz--md">
5353
<h3><a href={link} style={{textDecoration: "none", color: "inherit"}}>{title}</a></h3>

src/components/HomepageFeatures.module.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,27 @@
66
}
77

88
.featureSvg {
9-
height: 130px;
9+
height: 140px;
1010
width: auto;
1111
margin-bottom: 10px;
12+
transition: transform 0.4s ease, fill 0.4s ease;
13+
14+
}
15+
16+
.featureCard {
17+
transition: transform 0.4s ease, box-shadow 0.4s ease;
18+
border-radius: 8px; /* Optional: for rounded corners */
19+
padding: 16px;
20+
}
21+
22+
.featureCard:hover {
23+
transform: translateY(-2px); /* Less lift */
24+
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); /* Softer shadow */
1225
}
26+
27+
28+
.featureCard:hover .featureSvg {
29+
transform: scale(1.05); /* Slightly smaller scale */
30+
fill: #FFB84D; /* Subtle color change */
31+
}
32+

static/img/misc/interface.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

static/img/misc/optical_density.svg

Lines changed: 0 additions & 14 deletions
This file was deleted.

static/img/misc/plugins.svg

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)