style: fix standard issues
This commit is contained in:
parent
c285d3b69e
commit
0fc5716da7
@ -3,13 +3,13 @@ import Link from 'next/link'
|
|||||||
export default function Footer () {
|
export default function Footer () {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<footer className="footer">
|
<footer className='footer'>
|
||||||
<p className="footer-text text-center">
|
<p className='footer-text text-center'>
|
||||||
<Link href="/about">
|
<Link href='/about'>
|
||||||
<a>FunctionProject</a>
|
<a>FunctionProject</a>
|
||||||
</Link>
|
</Link>
|
||||||
- Version 2.3 <br />
|
- 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
|
Divlo
|
||||||
</a>{' '}
|
</a>{' '}
|
||||||
| Tous droits réservés
|
| Tous droits réservés
|
||||||
@ -27,7 +27,8 @@ export default function Footer() {
|
|||||||
.footer-text {
|
.footer-text {
|
||||||
line-height: 2.5;
|
line-height: 2.5;
|
||||||
}
|
}
|
||||||
`}</style>
|
`}
|
||||||
|
</style>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -39,34 +39,34 @@ const FunctionCard = memo(
|
|||||||
style={
|
style={
|
||||||
isLoading ? { height: '360px', justifyContent: 'center' } : null
|
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
|
<div
|
||||||
className={`FunctionCard__container ${isLoading ? 'd-none' : ''}`}
|
className={`FunctionCard__container ${isLoading ? 'd-none' : ''}`}
|
||||||
>
|
>
|
||||||
<div className="FunctionCard__top">
|
<div className='FunctionCard__top'>
|
||||||
<img
|
<img
|
||||||
onLoad={handleLoad}
|
onLoad={handleLoad}
|
||||||
onError={handleError}
|
onError={handleError}
|
||||||
className="FunctionCard__image"
|
className='FunctionCard__image'
|
||||||
alt={props.title}
|
alt={props.title}
|
||||||
src={API_URL + props.image}
|
src={API_URL + props.image}
|
||||||
/>
|
/>
|
||||||
<h2 className="FunctionCard__title">{props.title}</h2>
|
<h2 className='FunctionCard__title'>{props.title}</h2>
|
||||||
<p className="FunctionCard__description text-center">
|
<p className='FunctionCard__description text-center'>
|
||||||
{props.description}
|
{props.description}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="FunctionCard__info">
|
<div className='FunctionCard__info'>
|
||||||
<p
|
<p
|
||||||
className="FunctionCard__category"
|
className='FunctionCard__category'
|
||||||
style={{ backgroundColor: props.categorie.color }}
|
style={{ backgroundColor: props.categorie.color }}
|
||||||
>
|
>
|
||||||
{props.categorie.name}
|
{props.categorie.name}
|
||||||
</p>
|
</p>
|
||||||
<p className="FunctionCard__publication-date">
|
<p className='FunctionCard__publication-date'>
|
||||||
{date.format(new Date(props.createdAt), 'DD/MM/YYYY', false)}
|
{date.format(new Date(props.createdAt), 'DD/MM/YYYY', false)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -142,7 +142,8 @@ const FunctionCard = memo(
|
|||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
font-size: 16.4px;
|
font-size: 16.4px;
|
||||||
}
|
}
|
||||||
`}</style>
|
`}
|
||||||
|
</style>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
@ -11,37 +11,37 @@ const HeadTag = (props) => {
|
|||||||
return (
|
return (
|
||||||
<Head>
|
<Head>
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<link rel="icon" type="image/png" href={image} />
|
<link rel='icon' type='image/png' href={image} />
|
||||||
|
|
||||||
{/* Meta Tag */}
|
{/* Meta Tag */}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name='viewport' content='width=device-width, initial-scale=1' />
|
||||||
<meta name="description" content={description} />
|
<meta name='description' content={description} />
|
||||||
<meta name="Language" content="fr" />
|
<meta name='Language' content='fr' />
|
||||||
<meta name="theme-color" content="#ffd800" />
|
<meta name='theme-color' content='#ffd800' />
|
||||||
|
|
||||||
{/* Open Graph Metadata */}
|
{/* Open Graph Metadata */}
|
||||||
<meta property="og:title" content={title} />
|
<meta property='og:title' content={title} />
|
||||||
<meta property="og:type" content="website" />
|
<meta property='og:type' content='website' />
|
||||||
<meta property="og:url" content={url} />
|
<meta property='og:url' content={url} />
|
||||||
<meta property="og:image" content={image} />
|
<meta property='og:image' content={image} />
|
||||||
<meta property="og:description" content={description} />
|
<meta property='og:description' content={description} />
|
||||||
<meta property="og:locale" content="fr_FR" />
|
<meta property='og:locale' content='fr_FR' />
|
||||||
<meta property="og:site_name" content={title} />
|
<meta property='og:site_name' content={title} />
|
||||||
|
|
||||||
{/* Twitter card Metadata */}
|
{/* Twitter card Metadata */}
|
||||||
<meta name="twitter:card" content="summary" />
|
<meta name='twitter:card' content='summary' />
|
||||||
<meta name="twitter:description" content={description} />
|
<meta name='twitter:description' content={description} />
|
||||||
<meta name="twitter:title" content={title} />
|
<meta name='twitter:title' content={title} />
|
||||||
<meta name="twitter:image:src" content={image} />
|
<meta name='twitter:image:src' content={image} />
|
||||||
|
|
||||||
{/* PWA Data */}
|
{/* PWA Data */}
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel='manifest' href='/manifest.json' />
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name='apple-mobile-web-app-capable' content='yes' />
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
<meta name='mobile-web-app-capable' content='yes' />
|
||||||
<link rel="apple-touch-icon" href={image} />
|
<link rel='apple-touch-icon' href={image} />
|
||||||
|
|
||||||
{/* Preloader script */}
|
{/* Preloader script */}
|
||||||
<script src="/js/preloader.js" />
|
<script src='/js/preloader.js' />
|
||||||
</Head>
|
</Head>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user