141 lines
4.3 KiB
PHP
141 lines
4.3 KiB
PHP
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Océane & Alexandre</title>
|
|
<style>
|
|
.center {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
table {
|
|
border-collapse: collapse;
|
|
background-color: #003153;
|
|
color: #FFFFFF;
|
|
border: 1px solid #FFF;
|
|
font-family: 'Poppins', sans-serif;
|
|
text-align: center;
|
|
}
|
|
th {
|
|
border: 1px solid;
|
|
border-color: rgb(255, 255, 255);
|
|
font-size: 30px;
|
|
}
|
|
td {
|
|
border: 1px solid;
|
|
border-color: rgb(255, 255, 255);
|
|
font-size: 24px;
|
|
}
|
|
tr {
|
|
border: 1px solid;
|
|
border-color: rgb(255, 255, 255);
|
|
}
|
|
body {
|
|
background-color: black;
|
|
color: white;
|
|
font-family: Arial, sans-serif;
|
|
text-align: center;
|
|
}
|
|
h1 {
|
|
font-size: 36px;
|
|
margin-top: 50px;
|
|
margin-bottom: 20px;
|
|
text-align: center;
|
|
}
|
|
h2 {
|
|
font-size: 24px;
|
|
margin-top: 40px;
|
|
margin-bottom: 10px;
|
|
}
|
|
p {
|
|
font-size: 18px;
|
|
margin-top: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 25px;
|
|
}
|
|
</style>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<img src="portrait.jpeg" width="70%">
|
|
<h1>♥️ Océane & Alexandre ♥️</h1>
|
|
<?php
|
|
$daterencontre = "01-03-2016";
|
|
$aujourdhui = date("Y-m-d");
|
|
$diff = date_diff(date_create($daterencontre), date_create($aujourdhui));
|
|
if ($diff->format('%m') == 0) {
|
|
echo '<h1>Nous nous sommes rencontrés il y a environ '.$diff->format('%y').' ans.<br>';
|
|
}else{
|
|
echo '<h1>Nous nous sommes rencontrés il y a environ '.$diff->format('%y').' ans et '.$diff->format('%m').' mois.<br>';
|
|
}
|
|
|
|
$datecouple = "2022-08-28";
|
|
$aujourdhui = date("Y-m-d");
|
|
$diff = date_diff(date_create($datecouple), date_create($aujourdhui));
|
|
$diff_jours = (strtotime($aujourdhui) - strtotime($datecouple)) / 86400;
|
|
|
|
if ($diff->format('%y') == 0){
|
|
if ($diff->format('%m') == 0) {
|
|
echo '<h2>Notre premier baiser 💋 était il y a '.$diff->format('%d').' jour(s).<br>';
|
|
}
|
|
if ($diff->format('%d') == 0) {
|
|
echo '<h2>Notre premier baiser 💋 était il y a tout juste '.$diff->format('%m').' mois !<br>';
|
|
}else{
|
|
echo '<h2>Notre premier baiser 💋 était il y a '.$diff->format('%m').' mois et '.$diff->format('%d').' jour(s).<br>';
|
|
}
|
|
};
|
|
if ($diff->format('%y') > 0){
|
|
if ($diff->format('%m') == 0 && $diff->format('%d') == 0) {
|
|
echo '<h2>Notre premier baiser 💋 était il y a '.$diff->format('%y').' an(s).<br>';
|
|
}
|
|
if ($diff->format('%m') == 0) {
|
|
echo '<h2>Notre premier baiser 💋 était il y a '.$diff->format('%y').' an(s) et '.$diff->format('%d').' jour(s).<br>';
|
|
}
|
|
if ($diff->format('%d') == 0) {
|
|
echo '<h2>Notre premier baiser 💋 était il y a '.$diff->format('%y').' an(s) et '.$diff->format('%m').' mois !<br>';
|
|
}else{
|
|
echo '<h2>Notre premier baiser 💋 était il y a '.$diff->format('%y').' an(s), '.$diff->format('%m').' mois et '.$diff->format('%d').' jour(s).<br>';
|
|
}
|
|
}
|
|
|
|
echo "Cela fait " . $diff_jours . " jours.</h2>";
|
|
?>
|
|
|
|
<h1>Nos dates importantes</h1>
|
|
<table class="center">
|
|
<tr>
|
|
<th><br>Date<br> </th>
|
|
<th><br>Événement<br> </th>
|
|
</tr>
|
|
<tr>
|
|
<td> 27 août 2022 </td>
|
|
<td> Le jour où on s'est mis ensemble 👩❤️👨 </td>
|
|
</tr>
|
|
<tr>
|
|
<td> 28 août 2022 </td>
|
|
<td> Notre premier baiser 💋 </td>
|
|
</tr>
|
|
<tr>
|
|
<td> 21-24 novembre 2022 </td>
|
|
<td> Nos premières vacances ensemble 🏝️ <br>(Center Parcs) </td>
|
|
</tr>
|
|
<tr>
|
|
<td> 31/12/2022 & 01/01/2023 </td>
|
|
<td> Premier nouvel an ensemble 🎉 </td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<h1>Lieux visités ensemble</h1>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|