Skip to content

Commit

Permalink
new images
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Nov 22, 2024
1 parent d08fa2c commit 7cb1b07
Show file tree
Hide file tree
Showing 9 changed files with 126 additions and 38 deletions.
18 changes: 9 additions & 9 deletions src/components/HomepageFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useColorMode } from '@docusaurus/theme-common';
const FeatureList = [
{
title: 'User Guide',
Svg: require('@site/static/img/misc/undraw_scientist_ft0o.svg').default,
Svg: require('@site/static/img/misc/scientist_holding_pioreactor_right.svg').default,
link: "/user-guide/introduction",
description: (
<>
Expand All @@ -27,7 +27,7 @@ const FeatureList = [
},
{
title: 'Experiments',
Svg: require('@site/static/img/misc/undraw_professor_re_mj1s.svg').default,
Svg: require('@site/static/img/misc/prof_teaching_right.svg').default,
link: "/experiments/introduction",
description: (
<>
Expand All @@ -39,15 +39,15 @@ const FeatureList = [

function Feature({Svg, title, description, link}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<div className={clsx('col col--4', styles.featureCard)}>
<div className={clsx('text--center')}>
<a href={link}>
<Svg
className={styles.featureSvg}
stroke={useColorMode().colorMode === "dark" ? "white" : "#5332CA"}
fill={useColorMode().colorMode === "dark" ? "white" : "#5332CA"}
alt={title} />
</a>
className={styles.featureSvg}
stroke={useColorMode().colorMode === "dark" ? "white" : "#5332CA"}
fill={useColorMode().colorMode === "dark" ? "white" : "#5332CA"}
alt={title} />
</a>
</div>
<div className="text--center padding-horiz--md">
<h3><a href={link} style={{textDecoration: "none", color: "inherit"}}>{title}</a></h3>
Expand Down
22 changes: 21 additions & 1 deletion src/components/HomepageFeatures.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@
}

.featureSvg {
height: 130px;
height: 140px;
width: auto;
margin-bottom: 10px;
transition: transform 0.4s ease, fill 0.4s ease;

}

.featureCard {
transition: transform 0.4s ease, box-shadow 0.4s ease;
border-radius: 8px; /* Optional: for rounded corners */
padding: 16px;
}

.featureCard:hover {
transform: translateY(-2px); /* Less lift */
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); /* Softer shadow */
}


.featureCard:hover .featureSvg {
transform: scale(1.05); /* Slightly smaller scale */
fill: #FFB84D; /* Subtle color change */
}

1 change: 0 additions & 1 deletion static/img/misc/interface.svg

This file was deleted.

14 changes: 0 additions & 14 deletions static/img/misc/optical_density.svg

This file was deleted.

11 changes: 0 additions & 11 deletions static/img/misc/plugins.svg

This file was deleted.

Loading

0 comments on commit 7cb1b07

Please sign in to comment.