From e69884f5e91b374a9fb7af30fc2390ed7a2d2ed5 Mon Sep 17 00:00:00 2001 From: alt0 Date: Wed, 28 Sep 2022 18:06:05 +0800 Subject: [PATCH] feat: add live demo infomation --- .../layout/src/header/Logo/ModalContent.tsx | 39 ++++++++++++++----- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/libs/components/layout/src/header/Logo/ModalContent.tsx b/libs/components/layout/src/header/Logo/ModalContent.tsx index a13c96dc63..e91a2e6b63 100644 --- a/libs/components/layout/src/header/Logo/ModalContent.tsx +++ b/libs/components/layout/src/header/Logo/ModalContent.tsx @@ -12,11 +12,14 @@ export const ModalContent = () => { return ( - + Official Website AFFiNE.pro - + Check Our Docs Open Source @@ -27,23 +30,29 @@ export const ModalContent = () => {
Join our community.
- - - - - @@ -64,11 +73,12 @@ const RightContainer = styled('div')({ }); const LeftContainer = styled('div')` - padding-left: 132px; + padding-left: 120px; &::before { content: ''; position: absolute; + z-index: -1; left: 158px; display: block; width: 122px; @@ -81,6 +91,7 @@ const LeftContainer = styled('div')` &::after { content: ''; position: absolute; + z-index: -1; top: 330px; left: 280px; display: block; @@ -105,12 +116,16 @@ const LeftContainer = styled('div')` // }, // }); -const LeftButtonContainer = styled('div')(({ theme }) => ({ +const LeftButtonContainer = styled('a')(({ theme }) => ({ display: 'flex', flexDirection: 'row', alignItems: 'center', color: theme.affine.palette.primary, height: '110px', + cursor: 'pointer', + padding: '6px 12px', + borderRadius: '10px', + textDecoration: 'none', '& + &': { marginTop: '50px', @@ -119,10 +134,12 @@ const LeftButtonContainer = styled('div')(({ theme }) => ({ const LeftGithubIcon = styled(GitHubIcon)({ fontSize: '50px !important', + cursor: 'pointer', }); const LeftLogoIcon = styled(LogoIcon)({ fontSize: '50px !important', + cursor: 'pointer', }); const LeftButtonText = styled('span')({ @@ -131,6 +148,7 @@ const LeftButtonText = styled('span')({ lineHeight: '36px', width: '200px', marginLeft: '40px', + cursor: 'pointer', }); const RightTitle = styled('div')({ @@ -141,7 +159,7 @@ const RightTitle = styled('div')({ color: '#000', }); -const Button = styled('div')(({ theme }) => ({ +const Button = styled('a')(({ theme }) => ({ cursor: 'pointer', padding: '6px 24px', fontSize: '18px', @@ -150,6 +168,7 @@ const Button = styled('div')(({ theme }) => ({ alignItems: 'center', borderRadius: '10px', color: theme.affine.palette.primary, + textDecoration: 'none', '&:hover': { backgroundColor: '#EDF3FF',