mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-21 09:03:06 +02:00
Mobile navigation
This commit is contained in:
@@ -44,6 +44,14 @@ export const Navigation: React.FunctionComponent<INavigationProps> = (props: Rea
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
<div className="py-4 flex flex-wrap justify-center space-x-6 lg:hidden">
|
||||
{navigation.social.map((link) => (
|
||||
<a key={link.name} href={link.href} title={link.title} className={`text-base font-medium text-whisper-500 hover:text-whisper-900`} rel={`noopener noreferrer`}>
|
||||
<span className="sr-only">{link.name}</span>
|
||||
<link.icon className="inline-block h-6 w-6" aria-hidden="true" />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</nav>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -8,12 +8,12 @@ export const CTA: React.FunctionComponent<ICTAProps> = (props: React.PropsWithCh
|
||||
const { t: strings } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className="px-4 sm:px-0 pt-8 overflow-hidden sm:py-16 lg:relative lg:py-48">
|
||||
<div className="px-4 sm:px-0 py-8 overflow-hidden lg:relative lg:py-48">
|
||||
<div className="mx-auto sm:max-w-3xl sm:px-6 lg:px-8 lg:max-w-7xl lg:grid lg:grid-cols-2 lg:gap-24">
|
||||
<div className={`my-4 sm:my-5 lg:my-6`}>
|
||||
<h1 className="text-5xl lg:text-5xl xl:text-6xl tracking-tight font-extrabold sm:leading-none">
|
||||
<span className="text-teal-500 md:block">{Extension.name}</span>{' '}
|
||||
<span className="md:block">{strings(`cta_title`)}</span>
|
||||
<span className="block">{strings(`cta_title`)}</span>
|
||||
<span className={`sr-only`}>{strings(`cta_title_sr`)}</span>
|
||||
</h1>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user