Icon preview pour chaque fonction
This commit is contained in:
parent
ac09a780f7
commit
a4a2759c32
BIN
img/error404.png
Normal file
BIN
img/error404.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 168 KiB |
BIN
img/function-image/calculateAge.png
Normal file
BIN
img/function-image/calculateAge.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 140 KiB |
BIN
img/function-image/convertDistance.png
Normal file
BIN
img/function-image/convertDistance.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 224 KiB |
BIN
img/function-image/convertTemperature.png
Normal file
BIN
img/function-image/convertTemperature.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
BIN
img/function-image/randomNumber.png
Normal file
BIN
img/function-image/randomNumber.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
BIN
img/function-image/weatherRequest.png
Normal file
BIN
img/function-image/weatherRequest.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 232 KiB |
@ -2,7 +2,7 @@
|
|||||||
<html lang="fr" prefix="og: http://ogp.me/ns#">
|
<html lang="fr" prefix="og: http://ogp.me/ns#">
|
||||||
<head>
|
<head>
|
||||||
<title><?php echo $title?></title>
|
<title><?php echo $title?></title>
|
||||||
<link rel="icon" type="image/png" href="/img/FunctionProject_logo.png"/>
|
<link rel="icon" type="image/png" href="<?php echo $image?>"/>
|
||||||
|
|
||||||
<!-- Meta Tag -->
|
<!-- Meta Tag -->
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@ -17,7 +17,7 @@
|
|||||||
<meta property="og:title" content="<?php echo $title?>">
|
<meta property="og:title" content="<?php echo $title?>">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:url" content="https://function.divlo.fr/">
|
<meta property="og:url" content="https://function.divlo.fr/">
|
||||||
<meta property="og:image" content="https://function.divlo.fr/img/FunctionProject.png">
|
<meta property="og:image" content="<?php echo $image?>">
|
||||||
<meta property="og:description" content="<?php echo $description?>">
|
<meta property="og:description" content="<?php echo $description?>">
|
||||||
<meta property="og:locale" content="fr_FR">
|
<meta property="og:locale" content="fr_FR">
|
||||||
<meta property="og:site_name" content="Function Project">
|
<meta property="og:site_name" content="Function Project">
|
||||||
@ -27,7 +27,7 @@
|
|||||||
<meta name="twitter:description" content="<?php echo $description?>">
|
<meta name="twitter:description" content="<?php echo $description?>">
|
||||||
<meta name="twitter:title" content="<?php echo $title?>">
|
<meta name="twitter:title" content="<?php echo $title?>">
|
||||||
<meta name="twitter:site" content="@Divlo_FR">
|
<meta name="twitter:site" content="@Divlo_FR">
|
||||||
<meta name="twitter:image:src" content="https://function.divlo.fr/img/FunctionProject.png">
|
<meta name="twitter:image:src" content="<?php echo $image?>">
|
||||||
<meta name="twitter:creator" content="@Divlo_FR">
|
<meta name="twitter:creator" content="@Divlo_FR">
|
||||||
|
|
||||||
<!-- Frameworks and Tools -->
|
<!-- Frameworks and Tools -->
|
||||||
|
@ -6,38 +6,42 @@ switch ($currentpage) {
|
|||||||
case '/index.php':
|
case '/index.php':
|
||||||
$title = 'FunctionProject';
|
$title = 'FunctionProject';
|
||||||
$description = 'FunctionProject est un projet créé par Divlo qui a pour but de rassembler plein de mini-programme (fonctions JavaScript) permettant de faire plusieurs choses comme savoir la météo, générer un nombre aléatoire, etc.';
|
$description = 'FunctionProject est un projet créé par Divlo qui a pour but de rassembler plein de mini-programme (fonctions JavaScript) permettant de faire plusieurs choses comme savoir la météo, générer un nombre aléatoire, etc.';
|
||||||
|
$image = 'https://function.divlo.fr/img/FunctionProject_logo.png';
|
||||||
break;
|
break;
|
||||||
case '/views/function-list.php':
|
case '/views/function-list.php':
|
||||||
$title = 'Liste des fonctions';
|
$title = 'Liste des fonctions';
|
||||||
$description = '';
|
$description = 'La liste des mini-programmes (fonctions JavaScript).';
|
||||||
break;
|
$image = 'https://function.divlo.fr/img/FunctionProject_logo.png';
|
||||||
case '/views/error404.php':
|
|
||||||
$title = 'Erreur 404';
|
|
||||||
$description = '';
|
|
||||||
break;
|
break;
|
||||||
case '/views/function-views/calculateAge.php':
|
case '/views/function-views/calculateAge.php':
|
||||||
$title = 'Quelle âge avez-vous ?';
|
$title = 'Quelle âge avez-vous ?';
|
||||||
$description = "Calcule l'âge de quelqu'un selon la date de naissance.";
|
$description = "Calcule l'âge de quelqu'un selon la date de naissance.";
|
||||||
|
$image = 'https://function.divlo.fr/img/function-image/calculateAge.png';
|
||||||
break;
|
break;
|
||||||
case '/views/function-views/convertDistance.php':
|
case '/views/function-views/convertDistance.php':
|
||||||
$title = 'Conversion de Distance';
|
$title = 'Conversion de Distance';
|
||||||
$description = 'Convertit la longueur (distance) avec les unités allant de picomètre au Téramètre.';
|
$description = 'Convertit la longueur (distance) avec les unités allant de picomètre au Téramètre.';
|
||||||
|
$image = 'https://function.divlo.fr/img/function-image/convertDistance.png';
|
||||||
break;
|
break;
|
||||||
case '/views/function-views/convertTemperature.php':
|
case '/views/function-views/convertTemperature.php':
|
||||||
$title = 'Conversion de Température';
|
$title = 'Conversion de Température';
|
||||||
$description = "Convertit des Degré Celsius en Degré Fahrenheit et l'inverse aussi.";
|
$description = "Convertit des Degré Celsius en Degré Fahrenheit et l'inverse aussi.";
|
||||||
|
$image = 'https://function.divlo.fr/img/function-image/convertTemperature.png';
|
||||||
break;
|
break;
|
||||||
case '/views/function-views/randomNumber.php':
|
case '/views/function-views/randomNumber.php':
|
||||||
$title = 'Nombre Aléatoire';
|
$title = 'Nombre Aléatoire';
|
||||||
$description = 'Génère un nombre aléatoire entre un minimum inclus et un maximum inclus.';
|
$description = 'Génère un nombre aléatoire entre un minimum inclus et un maximum inclus.';
|
||||||
|
$image = 'https://function.divlo.fr/img/function-image/randomNumber.png';
|
||||||
break;
|
break;
|
||||||
case '/views/function-views/weatherRequest.php':
|
case '/views/function-views/weatherRequest.php':
|
||||||
$title = 'Météo';
|
$title = 'Météo';
|
||||||
$description = "Affiche la météo et l'heure local selon la ville.";
|
$description = "Affiche la météo et l'heure local selon la ville.";
|
||||||
|
$image = 'https://function.divlo.fr/img/function-image/weatherRequest.png';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$title = 'Erreur 404';
|
$title = 'Erreur 404';
|
||||||
$description = "Cette page n'existe pas!";
|
$description = "Cette page n'existe pas!";
|
||||||
|
$image = 'https://function.divlo.fr/img/error404.png';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user