Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 1b1f73a

Browse files
committed
Border radius on project images
1 parent a03323a commit 1b1f73a

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ Release date: 2024-12-30
66

77
#### Added
88

9-
- update deps to latest releases
10-
- lunr search
9+
- Update deps to latest releases
10+
- Lunr search
11+
- Various ui improvements
1112

1213
#### Removed
1314

14-
- algolia search implementation
15-
- loadable components
16-
- unused/useless deps
15+
- Algolia search implementation
16+
- Loadable components
17+
- Unused/useless deps
1718

1819
#### Fixed
1920

src/components/design-system/molecules/project.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ProjectCallToAction } from "../../../logic/projects";
88
import { Paragraph } from "../atoms/paragraph";
99
import { List } from "../atoms/list";
1010
import { GatsbyImage, IGatsbyImageData } from "gatsby-plugin-image";
11+
import { gatsbyImageWrapperSelector } from "../utils-css/gatsby-image-selector";
1112

1213
interface ProjectContainerProps {
1314
reverse: boolean;
@@ -36,6 +37,16 @@ const ProjectImageContainer = styled(ProjectContentContainer)`
3637
display: flex;
3738
justify-content: center;
3839
align-items: center;
40+
41+
${gatsbyImageWrapperSelector} {
42+
overflow: hidden;
43+
border-radius: 4px;
44+
box-shadow: 0 3px 10px 0 ${(props) => props.theme.light.boxShadowLight};
45+
46+
${mediaQuery.dark} {
47+
box-shadow: 0 3px 10px 0 ${(props) => props.theme.dark.boxShadowLight};
48+
}
49+
}
3950
`;
4051

4152
const CallToActionContainer = styled.div`
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export const gatsbyImagePlaceholderSelector = "& [data-placeholder-image]";
2+
export const gatsbyImageWrapperSelector = "& [data-gatsby-image-wrapper]";

0 commit comments

Comments
 (0)