|
4 | 4 | <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="06e4a97f-2c34-41ed-8ab6-d53b581ff080" type="text/javascript" async></script> |
5 | 5 | <meta charset="UTF-8" /> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
| 7 | + |
7 | 8 | <img src="logo.png" alt="Logo" style="width: 200px; height: 200px; border-radius: 10px;"> |
8 | 9 |
|
9 | | - |
10 | 10 | <title>HellenicDev</title> |
| 11 | + |
| 12 | + <div class="new-year-banner"> |
| 13 | + <h2>🎉 Happy New Year 2026!</h2> |
| 14 | + <p> |
| 15 | + May your new year be blessed with happy feelings and |
| 16 | + memories full of joy! |
| 17 | + </p> |
| 18 | +</div> |
| 19 | + |
| 20 | +<!-- LAST UPDATED CHECK SCRIPT --> |
| 21 | +<script> |
| 22 | +(async function () { |
| 23 | + const el = document.getElementById("last-updated"); |
| 24 | + if (!el) return; |
| 25 | + |
| 26 | + try { |
| 27 | + const response = await fetch( |
| 28 | + "https://api.github.com/repos/hellenicdev/hellenicdev/commits?per_page=1" |
| 29 | + ); |
| 30 | + |
| 31 | + const data = await response.json(); |
| 32 | + const lastCommitDate = new Date(data[0].commit.committer.date); |
| 33 | + const now = new Date(); |
| 34 | + |
| 35 | + const diffDays = Math.floor( |
| 36 | + (now - lastCommitDate) / (1000 * 60 * 60 * 24) |
| 37 | + ); |
| 38 | + |
| 39 | + let text; |
| 40 | + if (diffDays === 0) { |
| 41 | + text = "Updated today"; |
| 42 | + } else if (diffDays === 1) { |
| 43 | + text = "Updated yesterday"; |
| 44 | + } else { |
| 45 | + text = `Updated ${diffDays} days ago`; |
| 46 | + } |
| 47 | + |
| 48 | + el.innerHTML = `🕒 <span>${text}</span>`; |
| 49 | + } catch (err) { |
| 50 | + el.textContent = ""; |
| 51 | + } |
| 52 | +})(); |
| 53 | +</script> |
| 54 | +<!-- SCRIPT END --> |
| 55 | + |
11 | 56 | <link rel="stylesheet" href="style.css" /> |
12 | 57 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"> |
13 | 58 |
|
@@ -53,48 +98,72 @@ <h2>My Projects:</h2> |
53 | 98 | <a href="./codriver/frontend/index.html"> |
54 | 99 | <h3>Codriver</h3> |
55 | 100 | <p>An AI-powered assistant. It has games, jokes, riddles, and more.</p> |
| 101 | + <p id="last-updated" class="last-updated"> |
| 102 | + Checking last update… |
| 103 | +</p> |
56 | 104 | </a> |
57 | 105 | </div> |
58 | 106 | <div class="game-card"> |
59 | 107 | <a href="./clicker-game/index.html"> |
60 | 108 | <h3>Clicker Game</h3> |
61 | 109 | <p>A simple incremental game where every click counts. Watch your score rise!</p> |
| 110 | + <p id="last-updated" class="last-updated"> |
| 111 | + Checking last update… |
| 112 | +</p> |
62 | 113 | </a> |
63 | 114 | </div> |
64 | 115 | <div class="game-card"> |
65 | 116 | <a href="./budget-tracker/index.html"> |
66 | 117 | <h3>Budget Tracker</h3> |
67 | 118 | <p>Track your income and expenses with ease. Great for personal finance planning (data saved locally).</p> |
| 119 | + <p id="last-updated" class="last-updated"> |
| 120 | + Checking last update… |
| 121 | +</p> |
68 | 122 | </a> |
69 | 123 | </div> |
70 | 124 | <div class="game-card"> |
71 | 125 | <a href="./the-quiz/index.html"> |
72 | 126 | <h3>The Quiz</h3> |
73 | 127 | <p>Test your knowledge in various subjects. Fun and educational quiz app!</p> |
| 128 | + <p id="last-updated" class="last-updated"> |
| 129 | + Checking last update… |
| 130 | +</p> |
74 | 131 | </a> |
75 | 132 | </div> |
76 | 133 | <div class="game-card"> |
77 | 134 | <a href="./e-table/index.html"> |
78 | 135 | <h3>E-table</h3> |
79 | 136 | <p>A mock app. Supposed to be a platform where you can reserve a table at a restaurant.</p> |
| 137 | + <p id="last-updated" class="last-updated"> |
| 138 | + Checking last update… |
| 139 | +</p> |
80 | 140 | </a> |
81 | 141 | </div> |
82 | 142 | <div class="game-card"> |
83 | 143 | <a href="./dodge-and-survive/index.html"> |
84 | 144 | <h3>Dodge & Survive</h3> |
85 | 145 | <p>A fast-paced arcade game where you dodge enemies and try to survive as long as possible.</p> |
| 146 | + <p id="last-updated" class="last-updated"> |
| 147 | + Checking last update… |
| 148 | +</p> |
86 | 149 | </a> |
87 | 150 | </div> |
88 | 151 | <div class="game-card"> |
89 | 152 | <a href="./the-sound-quiz/index.html"> |
90 | 153 | <h3>The Sound Quiz</h3> |
91 | 154 | <p>A simple quiz. You hear sounds and you have to guess them.</p> |
| 155 | + <p id="last-updated" class="last-updated"> |
| 156 | + Checking last update… |
| 157 | +</p> |
92 | 158 | </a> |
93 | 159 | </div> |
94 | 160 | <div class="game-card"> |
95 | 161 | <a href="https://currency-converter-7fmk.onrender.com"> |
96 | 162 | <h3>Currency Converter</h3> |
97 | 163 | <p>A currency converter with all major currencies.</p> |
| 164 | + <p id="last-updated" class="last-updated"> |
| 165 | + Checking last update… |
| 166 | +</p> |
98 | 167 | </a> |
99 | 168 | </div> |
100 | 169 | </div> |
|
0 commit comments