style: fix standard issues
This commit is contained in:
		| @@ -1,15 +1,15 @@ | ||||
| import Link from 'next/link' | ||||
|  | ||||
| export default function Footer() { | ||||
| 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> | ||||
|            - 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> | ||||
|     </> | ||||
|   ) | ||||
| } | ||||
|   | ||||
| @@ -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> | ||||
|       </> | ||||
|     ) | ||||
|   }) | ||||
|   | ||||
| @@ -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> | ||||
|   ) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user