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

[material-ui][docs] Fix landing page template's h1 size #41543

Merged
merged 4 commits into from
Mar 18, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,36 @@ export default function Hero() {
>
<Stack spacing={2} useFlexGap sx={{ width: { xs: '100%', sm: '70%' } }}>
<Typography
component="h1"
variant="h1"
sx={{
display: 'flex',
flexDirection: { xs: 'column', md: 'row' },
alignSelf: 'center',
textAlign: 'center',
fontSize: 'clamp(3.5rem, 10vw, 4rem)',
}}
>
Our latest&nbsp;
<Typography
component="span"
variant="h1"
sx={{
fontSize: 'clamp(3rem, 10vw, 4rem)',
color: (theme) =>
theme.palette.mode === 'light' ? 'primary.main' : 'primary.light',
}}
>
products
</Typography>
</Typography>
<Typography variant="body1" textAlign="center" color="text.secondary">
<Typography
textAlign="center"
color="text.secondary"
sx={{ alignSelf: 'center', width: { sm: '100%', md: '80%' } }}
>
Explore our cutting-edge dashboard, delivering high-quality solutions
tailored to your needs. <br />
Elevate your experience with top-tier features and services.
tailored to your needs. Elevate your experience with top-tier features
and services.
</Typography>
<Stack
direction={{ xs: 'column', sm: 'row' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,36 @@ export default function Hero() {
>
<Stack spacing={2} useFlexGap sx={{ width: { xs: '100%', sm: '70%' } }}>
<Typography
component="h1"
variant="h1"
sx={{
display: 'flex',
flexDirection: { xs: 'column', md: 'row' },
alignSelf: 'center',
textAlign: 'center',
fontSize: 'clamp(3.5rem, 10vw, 4rem)',
}}
>
Our latest&nbsp;
<Typography
component="span"
variant="h1"
sx={{
fontSize: 'clamp(3rem, 10vw, 4rem)',
color: (theme) =>
theme.palette.mode === 'light' ? 'primary.main' : 'primary.light',
}}
>
products
</Typography>
</Typography>
<Typography variant="body1" textAlign="center" color="text.secondary">
<Typography
textAlign="center"
color="text.secondary"
sx={{ alignSelf: 'center', width: { sm: '100%', md: '80%' } }}
>
Explore our cutting-edge dashboard, delivering high-quality solutions
tailored to your needs. <br />
Elevate your experience with top-tier features and services.
tailored to your needs. Elevate your experience with top-tier features
and services.
</Typography>
<Stack
direction={{ xs: 'column', sm: 'row' }}
Expand Down
Loading