Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[website] Tweak a few elements on the landing page #2666

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions docs/src/components/landing/CodeBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export default function CodeBlock({ appMode, fileIndex, setFrameIndex }) {
TabIndicatorProps={{
sx: {
left: `${indicatorLeft}px!important`,
backgroundColor: 'primary.400',
},
}}
sx={{ minHeight: 'auto' }}
Expand All @@ -236,10 +237,20 @@ export default function CodeBlock({ appMode, fileIndex, setFrameIndex }) {
value={index.toString()}
ref={tabRef}
key={index}
sx={{
sx={(theme) => ({
minHeight: 0,
padding: '12px 14px',
}}
color: (theme.vars || theme).palette.grey[500],
'&.Mui-selected': {
color: (theme.vars || theme).palette.primary[300],
},
'&:hover': {
color: (theme.vars || theme).palette.grey[300],
'&.Mui-selected': {
color: (theme.vars || theme).palette.primary[300],
},
},
})}
/>
))}
</TabList>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/landing/GithubStars.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function GithubStars() {
display: 'flex',
alignItem: 'center',
ml: 0.5,
color: theme.palette.primary[700],
color: theme.palette.primary[500],
...theme.applyDarkStyles({
color: theme.palette.primary[200],
}),
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/landing/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,15 @@ export default function Hero() {
sm: 'unset',
md: `rotateY(${heroAppMode ? '0' : '180'}deg)`,
},
boxShadow: `0 0 16px ${alpha(theme.palette.grey[100], 0.9)}`,
boxShadow: `0 4px 8px ${alpha(theme.palette.grey[100], 0.9)}`,
}),
(theme) =>
theme.applyDarkStyles({
background: `linear-gradient(120deg, ${
(theme.vars || theme).palette.primaryDark[500]
} 0%, ${alpha(theme.palette.primaryDark[800], 0.4)} 150%)`,
borderColor: `${alpha(theme.palette.primaryDark[300], 0.3)}`,
boxShadow: `0 4px 8px ${alpha(theme.palette.primaryDark[600], 0.5)}`,
boxShadow: `0 4px 8px ${alpha(theme.palette.common.black, 0.8)}`,
}),
]}
>
Expand Down
9 changes: 5 additions & 4 deletions docs/src/components/landing/UseCases.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ const ImageContainer = styled(Link)(({ theme }) => [
)} 150%)`,
border: '1px solid',
borderColor: (theme.vars || theme).palette.grey[100],
boxShadow: `0 4px 8px ${alpha(theme.palette.grey[100], 0.5)}`,
boxShadow: `0 2px 4px ${alpha(theme.palette.grey[100], 0.8)}`,
overflow: 'hidden',
},
theme.applyDarkStyles({
background: `linear-gradient(120deg, ${(theme.vars || theme).palette.primaryDark[500]
} 0%, ${alpha(theme.palette.primaryDark[800], 0.4)} 150%)`,
background: `linear-gradient(120deg, ${
(theme.vars || theme).palette.primaryDark[500]
} 0%, ${alpha(theme.palette.primaryDark[800], 0.4)} 150%)`,
borderColor: `${alpha(theme.palette.primaryDark[300], 0.3)}`,
boxShadow: `0 4px 8px ${alpha(theme.palette.primaryDark[600], 0.5)}`,
boxShadow: `0 2px 4px ${alpha(theme.palette.common.black, 0.8)}`,
}),
]);

Expand Down