style: fix standard issues

This commit is contained in:
divlo 2020-12-28 13:11:02 +01:00
parent c285d3b69e
commit 0fc5716da7
3 changed files with 39 additions and 37 deletions

View File

@ -3,13 +3,13 @@ import Link from 'next/link'
export default function Footer () {
return (
<>
<footer className="footer">
<p className="footer-text text-center">
<Link href="/about">
<footer className='footer'>
<p className='footer-text text-center'>
<Link href='/about'>
<a>FunctionProject</a>
</Link>
&nbsp;- Version 2.3 <br />
<a href="https://divlo.fr/" target="_blank" rel="noopener noreferrer">
<a href='https://divlo.fr/' target='_blank' rel='noopener noreferrer'>
Divlo
</a>{' '}
| Tous droits réservés
@ -27,7 +27,8 @@ export default function Footer() {
.footer-text {
line-height: 2.5;
}
`}</style>
`}
</style>
</>
)
}

View File

@ -39,34 +39,34 @@ const FunctionCard = memo(
style={
isLoading ? { height: '360px', justifyContent: 'center' } : null
}
className="FunctionCard col-sm-24 col-md-10 col-xl-7"
className='FunctionCard col-sm-24 col-md-10 col-xl-7'
>
{isLoading && <Loader width="125px" height="125px" />}
{isLoading && <Loader width='125px' height='125px' />}
<div
className={`FunctionCard__container ${isLoading ? 'd-none' : ''}`}
>
<div className="FunctionCard__top">
<div className='FunctionCard__top'>
<img
onLoad={handleLoad}
onError={handleError}
className="FunctionCard__image"
className='FunctionCard__image'
alt={props.title}
src={API_URL + props.image}
/>
<h2 className="FunctionCard__title">{props.title}</h2>
<p className="FunctionCard__description text-center">
<h2 className='FunctionCard__title'>{props.title}</h2>
<p className='FunctionCard__description text-center'>
{props.description}
</p>
</div>
<div className="FunctionCard__info">
<div className='FunctionCard__info'>
<p
className="FunctionCard__category"
className='FunctionCard__category'
style={{ backgroundColor: props.categorie.color }}
>
{props.categorie.name}
</p>
<p className="FunctionCard__publication-date">
<p className='FunctionCard__publication-date'>
{date.format(new Date(props.createdAt), 'DD/MM/YYYY', false)}
</p>
</div>
@ -142,7 +142,8 @@ const FunctionCard = memo(
margin-right: 20px;
font-size: 16.4px;
}
`}</style>
`}
</style>
</>
)
})

View File

@ -11,37 +11,37 @@ const HeadTag = (props) => {
return (
<Head>
<title>{title}</title>
<link rel="icon" type="image/png" href={image} />
<link rel='icon' type='image/png' href={image} />
{/* Meta Tag */}
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content={description} />
<meta name="Language" content="fr" />
<meta name="theme-color" content="#ffd800" />
<meta name='viewport' content='width=device-width, initial-scale=1' />
<meta name='description' content={description} />
<meta name='Language' content='fr' />
<meta name='theme-color' content='#ffd800' />
{/* Open Graph Metadata */}
<meta property="og:title" content={title} />
<meta property="og:type" content="website" />
<meta property="og:url" content={url} />
<meta property="og:image" content={image} />
<meta property="og:description" content={description} />
<meta property="og:locale" content="fr_FR" />
<meta property="og:site_name" content={title} />
<meta property='og:title' content={title} />
<meta property='og:type' content='website' />
<meta property='og:url' content={url} />
<meta property='og:image' content={image} />
<meta property='og:description' content={description} />
<meta property='og:locale' content='fr_FR' />
<meta property='og:site_name' content={title} />
{/* Twitter card Metadata */}
<meta name="twitter:card" content="summary" />
<meta name="twitter:description" content={description} />
<meta name="twitter:title" content={title} />
<meta name="twitter:image:src" content={image} />
<meta name='twitter:card' content='summary' />
<meta name='twitter:description' content={description} />
<meta name='twitter:title' content={title} />
<meta name='twitter:image:src' content={image} />
{/* PWA Data */}
<link rel="manifest" href="/manifest.json" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href={image} />
<link rel='manifest' href='/manifest.json' />
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta name='mobile-web-app-capable' content='yes' />
<link rel='apple-touch-icon' href={image} />
{/* Preloader script */}
<script src="/js/preloader.js" />
<script src='/js/preloader.js' />
</Head>
)
}