fix: prettier

This commit is contained in:
Luca Burgio 2023-11-19 10:25:34 +01:00
parent df19c352bd
commit 1dac608fb5
3 changed files with 15 additions and 15 deletions

View file

@ -6,7 +6,7 @@ export interface SEOProps {
title?: string; title?: string;
description?: string; description?: string;
} }
export function SEO({ title,description }: SEOProps) { export function SEO({ title, description }: SEOProps) {
const pageTitle = title ? `${title} | ${TITLE_SUFFIX}` : TITLE_SUFFIX; const pageTitle = title ? `${title} | ${TITLE_SUFFIX}` : TITLE_SUFFIX;
const pageDescription = description; const pageDescription = description;
@ -14,10 +14,7 @@ export function SEO({ title,description }: SEOProps) {
<Head> <Head>
<title>{pageTitle}</title> <title>{pageTitle}</title>
<link rel="canonical" href="https://iconoir.com/" /> <link rel="canonical" href="https://iconoir.com/" />
<meta <meta name="description" content={pageDescription} />
name="description"
content={pageDescription}
/>
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
@ -29,10 +26,7 @@ export function SEO({ title,description }: SEOProps) {
property="og:image" property="og:image"
content="https://iconoir.com/iconoir-brand.png" content="https://iconoir.com/iconoir-brand.png"
/> />
<meta <meta property="og:description" content={pageDescription} />
property="og:description"
content={pageDescription}
/>
<meta property="og:image:width" content="1270" /> <meta property="og:image:width" content="1270" />
<meta property="og:image:height" content="760" /> <meta property="og:image:height" content="760" />
@ -51,10 +45,7 @@ export function SEO({ title,description }: SEOProps) {
name="twitter:image:alt" name="twitter:image:alt"
content="The biggest open source icon library with tons of free icons." content="The biggest open source icon library with tons of free icons."
/> />
<meta <meta name="twitter:description" content={pageDescription} />
name="twitter:description"
content={pageDescription}
/>
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
</Head> </Head>
); );

View file

@ -34,7 +34,11 @@ const Home: NextPage<HomeProps> = ({
return ( return (
<> <>
<Layout> <Layout>
<SEO description={'Iconoir is the biggest open source icon library that provides a massive selection of high-quality icons, available for free download. No premium options or email sign-up required, free for real. Icons available in SVG, Font, React, React Nativ, and Flutter libraries, Figma and Framer.'} /> <SEO
description={
'Iconoir is the biggest open source icon library that provides a massive selection of high-quality icons, available for free download. No premium options or email sign-up required, free for real. Icons available in SVG, Font, React, React Nativ, and Flutter libraries, Figma and Framer.'
}
/>
<Header currentVersion={currentVersion} /> <Header currentVersion={currentVersion} />
<HeaderBackground> <HeaderBackground>
<HeroHead> <HeroHead>

View file

@ -21,7 +21,12 @@ const Support: NextPage<SupportProps> = ({ ...headerProps }) => {
return ( return (
<> <>
<Layout> <Layout>
<SEO title={'Donate - Our Mission'} description={'Our mission: A free, complete, and open icon library. Iconoir wants to give to developers and users high-quality free icons.'} /> <SEO
title={'Donate - Our Mission'}
description={
'Our mission: A free, complete, and open icon library. Iconoir wants to give to developers and users high-quality free icons.'
}
/>
<Header {...headerProps} /> <Header {...headerProps} />
<HeaderSecondary> <HeaderSecondary>
<SupportHead> <SupportHead>