Skip to content

Commit 32953c2

Browse files
committed
Blend "simulation is running" gif background
1 parent 70cd0c1 commit 32953c2

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

frontend/src/components/CenteredImage.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ const Text = styled(Typography)`
2828
user-select: none;
2929
`;
3030

31-
const CenteredImage: React.FC<{ src: string; caption?: string }> = ({ src, caption }) => (
32-
<Fill>
31+
interface CenteredImageProps {
32+
src: string;
33+
caption?: string;
34+
className?: string;
35+
}
36+
37+
const CenteredImage: React.FC<CenteredImageProps> = ({ src, caption, className }) => (
38+
<Fill className={className}>
3339
<Wrapper>
3440
<Image src={src} />
3541
<Text variant="body_short_italic">{caption}</Text>
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
import styled from "styled-components";
12
import icon from "@/assets/VGH.gif";
23
import CenteredImage from "@/components/CenteredImage";
34

4-
const Working = () => <CenteredImage src={icon} caption="Working..." />;
5+
const BlendedWorking = styled(CenteredImage)`
6+
mix-blend-mode: multiply;
7+
`;
8+
9+
const Working = () => <BlendedWorking src={icon} caption="Working..." />;
510

611
export default Working;

0 commit comments

Comments
 (0)