Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: change contact modal background

QiShaoXuan2647453e1626
diff --git a/packages/app/src/components/contact-modal/bg.png b/packages/app/src/components/contact-modal/bg.png
new file mode 100644
index 0000000000..4e2c39d356
Binary files /dev/null and b/packages/app/src/components/contact-modal/bg.png differ
diff --git a/packages/app/src/components/contact-modal/index.tsx b/packages/app/src/components/contact-modal/index.tsx
index 2c2d75430d..cebe9f790c 100644
--- a/packages/app/src/components/contact-modal/index.tsx
+++ b/packages/app/src/components/contact-modal/index.tsx
@@ -11,8 +11,6 @@ import logo from './affine-text-logo.png';
import {
StyledModalContainer,
StyledModalWrapper,
- StyledYellowBall,
- StyledBlueBall,
StyledBigLink,
StyledSmallLink,
StyledSubTitle,
@@ -78,9 +76,6 @@ export const ContactModal = ({ open, onClose }: TransitionsModalProps) => {
<StyledModalContainer>
<StyledBackdrop onClick={onClose} />
<StyledModalWrapper>
- <StyledYellowBall />
- <StyledBlueBall />
-
<StyledModalHeader>
<StyledModalHeaderLeft>
<StyledLogo src={logo.src} alt="" />
diff --git a/packages/app/src/components/contact-modal/style.ts b/packages/app/src/components/contact-modal/style.ts
index 1527fa6faa..b89be96e1e 100644
--- a/packages/app/src/components/contact-modal/style.ts
+++ b/packages/app/src/components/contact-modal/style.ts
@@ -1,5 +1,5 @@
import { styled } from '@/styles';
-
+import bg from './bg.png';
export const StyledModalContainer = styled('div')(({ theme }) => {
return {
width: '100vw',
@@ -15,7 +15,8 @@ export const StyledModalWrapper = styled('div')(({ theme }) => {
return {
width: '1000px',
height: '626px',
- background: theme.colors.popoverBackground,
+ backgroundColor: theme.colors.popoverBackground,
+ backgroundImage: `url(${bg.src})`,
padding: '0 48px',
borderRadius: '20px',
position: 'absolute',
@@ -27,29 +28,6 @@ export const StyledModalWrapper = styled('div')(({ theme }) => {
};
});
-export const StyledYellowBall = styled('div')`
- position: absolute;
- top: 189px;
- left: 186px;
- display: block;
- width: 122px;
- height: 122px;
- background-color: #dda82a;
- opacity: 0.45;
- filter: blur(78px);
-`;
-export const StyledBlueBall = styled('div')`
- content: '';
- position: absolute;
- top: 332px;
- left: 296px;
- display: block;
- width: 122px;
- height: 122px;
- background-color: #4461f2;
- filter: blur(78px);
-`;
-
export const StyledBigLink = styled('a')(({ theme }) => {
return {
width: '335px',