Skip to content

Commit

Permalink
[website] Allow deep linking to sponsors
Browse files Browse the repository at this point in the history
It makes it possible to deep link content for requests like
"just checking on the progress of the placement. Could you give me an update on that?"
  • Loading branch information
oliviertassinari committed Sep 5, 2022
1 parent 2cb9664 commit 2991f58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/src/components/home/Sponsors.tsx
Expand Up @@ -11,6 +11,7 @@ export default function Sponsors() {
return (
<Container sx={{ py: { xs: 4, md: 8 } }}>
<SectionHeadline
id="sponsors"
overline="Sponsors"
title={
<Typography variant="h2" sx={{ my: 1 }}>
Expand Down
15 changes: 8 additions & 7 deletions docs/src/components/typography/SectionHeadline.tsx
Expand Up @@ -2,15 +2,15 @@ import * as React from 'react';
import { useTheme } from '@mui/material/styles';
import Typography from '@mui/material/Typography';

export default function SectionHeadline({
overline,
title,
description,
}: {
interface SectionHeadlineProps {
description?: React.ReactNode;
id?: string;
overline: React.ReactNode;
title: React.ReactNode;
description?: React.ReactNode;
}) {
}

export default function SectionHeadline(props: SectionHeadlineProps) {
const { description, id, overline, title } = props;
const globalTheme = useTheme();
const mode = globalTheme.palette.mode;
const overlineColor = mode === 'dark' ? 'primary.300' : 'primary.600';
Expand All @@ -25,6 +25,7 @@ export default function SectionHeadline({
fontWeight="bold"
variant="body2"
sx={{ mb: 1 }}
id={id}
>
{overline}
</Typography>
Expand Down

0 comments on commit 2991f58

Please sign in to comment.