fix, index, add things
This commit is contained in:
+19
-2
@@ -21,9 +21,25 @@
|
|||||||
|
|
||||||
footer {
|
footer {
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
padding: 10px;
|
padding: 15px;
|
||||||
background-color: #f8f9fa;
|
background-color: #f8f9fa;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-family: "Helvetica Neue", "Arial";
|
||||||
|
}
|
||||||
|
#footer-text {
|
||||||
|
margin: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer-copy {
|
||||||
|
margin: -5px;
|
||||||
|
font-family:monospace;
|
||||||
|
font-size: small;
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#copy {
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -51,6 +67,7 @@
|
|||||||
<!-- Footer Section -->
|
<!-- Footer Section -->
|
||||||
<footer>
|
<footer>
|
||||||
<p id="footer-text"></p>
|
<p id="footer-text"></p>
|
||||||
|
<p id="footer-copy"><a id="copy" href="https://github.com/quoije/oscars-pool">quoije</a> - deux mille vingt-cinq</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -93,7 +110,7 @@
|
|||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
// Update footer with the fetched version info
|
// Update footer with the fetched version info
|
||||||
const footerText = `${data.author} - version: ${data.version} - ${data.message}`;
|
const footerText = `version: ${data.version} - ${data.message}`;
|
||||||
document.getElementById('footer-text').textContent = footerText;
|
document.getElementById('footer-text').textContent = footerText;
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('footer-text').textContent = '';
|
document.getElementById('footer-text').textContent = '';
|
||||||
|
|||||||
+1
-1
@@ -38,7 +38,7 @@ router.get("/version", async (req, res) => {
|
|||||||
try {
|
try {
|
||||||
const latestCommit = await fetchLatestCommitFromGitHub();
|
const latestCommit = await fetchLatestCommitFromGitHub();
|
||||||
res.json({
|
res.json({
|
||||||
version: latestCommit.sha,
|
version: (latestCommit.sha).substring(0,5),
|
||||||
message: latestCommit.message,
|
message: latestCommit.message,
|
||||||
author: latestCommit.author,
|
author: latestCommit.author,
|
||||||
date: latestCommit.date,
|
date: latestCommit.date,
|
||||||
|
|||||||
Reference in New Issue
Block a user