Skip to content

Commit ed383f5

Browse files
committed
2026 UI changes
1 parent 9009aa4 commit ed383f5

File tree

2 files changed

+110
-1
lines changed

2 files changed

+110
-1
lines changed

index.html

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,55 @@
44
<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="06e4a97f-2c34-41ed-8ab6-d53b581ff080" type="text/javascript" async></script>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
7+
78
<img src="logo.png" alt="Logo" style="width: 200px; height: 200px; border-radius: 10px;">
89

9-
1010
<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+
1156
<link rel="stylesheet" href="style.css" />
1257
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">
1358

@@ -53,48 +98,72 @@ <h2>My Projects:</h2>
5398
<a href="./codriver/frontend/index.html">
5499
<h3>Codriver</h3>
55100
<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>
56104
</a>
57105
</div>
58106
<div class="game-card">
59107
<a href="./clicker-game/index.html">
60108
<h3>Clicker Game</h3>
61109
<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>
62113
</a>
63114
</div>
64115
<div class="game-card">
65116
<a href="./budget-tracker/index.html">
66117
<h3>Budget Tracker</h3>
67118
<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>
68122
</a>
69123
</div>
70124
<div class="game-card">
71125
<a href="./the-quiz/index.html">
72126
<h3>The Quiz</h3>
73127
<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>
74131
</a>
75132
</div>
76133
<div class="game-card">
77134
<a href="./e-table/index.html">
78135
<h3>E-table</h3>
79136
<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>
80140
</a>
81141
</div>
82142
<div class="game-card">
83143
<a href="./dodge-and-survive/index.html">
84144
<h3>Dodge & Survive</h3>
85145
<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>
86149
</a>
87150
</div>
88151
<div class="game-card">
89152
<a href="./the-sound-quiz/index.html">
90153
<h3>The Sound Quiz</h3>
91154
<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>
92158
</a>
93159
</div>
94160
<div class="game-card">
95161
<a href="https://currency-converter-7fmk.onrender.com">
96162
<h3>Currency Converter</h3>
97163
<p>A currency converter with all major currencies.</p>
164+
<p id="last-updated" class="last-updated">
165+
Checking last update…
166+
</p>
98167
</a>
99168
</div>
100169
</div>

style.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,43 @@ iframe {
8686
display: block;
8787
}
8888

89+
.new-year-banner {
90+
max-width: 900px;
91+
margin: 2.5rem auto 3.5rem;
92+
padding: 2rem 2.5rem;
93+
text-align: center;
94+
background: linear-gradient(
95+
135deg,
96+
rgba(25, 51, 110, 0.25),
97+
rgba(25, 51, 110, 0.05)
98+
);
99+
border: 1px solid rgba(25, 51, 110, 0.6);
100+
border-radius: 18px;
101+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
102+
}
103+
104+
.new-year-banner h2 {
105+
margin: 0 0 0.8rem;
106+
font-size: 2rem;
107+
color: #ffffff;
108+
}
109+
110+
.new-year-banner p {
111+
margin: 0;
112+
font-size: 1.1rem;
113+
color: #dbe4ff;
114+
line-height: 1.6;
115+
}
116+
117+
.last-updated {
118+
margin-top: 1rem;
119+
font-size: 0.95rem;
120+
font-style: italic;
121+
color: #b6c2e2;
122+
text-align: center;
123+
}
124+
125+
.last-updated span {
126+
color: #19336e;
127+
font-weight: 600;
128+
}

0 commit comments

Comments
 (0)