Look what you've done !
+Guams - Home
@@ -18,7 +21,7 @@
-
@@ -117,4 +120,5 @@
+
diff --git a/projects.html b/projects.html
index 92610ae..19148b6 100644
--- a/projects.html
+++ b/projects.html
@@ -2,13 +2,16 @@
-
+
Look what you've done !
+Guams - My projects
@@ -18,7 +21,7 @@
-
+
@@ -141,4 +144,5 @@
+
diff --git a/public/icon.jpg b/public/icon.jpg
deleted file mode 100644
index 6e0e8ef..0000000
Binary files a/public/icon.jpg and /dev/null differ
diff --git a/public/icon.png b/public/icon.png
new file mode 100644
index 0000000..6e8aa65
Binary files /dev/null and b/public/icon.png differ
diff --git a/src/gitea.js b/src/gitea.js
index a9e157b..56573b4 100644
--- a/src/gitea.js
+++ b/src/gitea.js
@@ -7,9 +7,6 @@ xhr.onload = () => {
if (xhr.status === 200) {
commits = JSON.parse(xhr.response);
commits.forEach(commit => {
- console.log(new Date(commit.created));
- console.log(commit.commit.message);
-
const ul = document.getElementById("changelog-content");
const li = document.createElement("li");
const h2 = document.createElement("h2");
diff --git a/src/style.css b/src/style.css
index 76323f4..8df16d4 100644
--- a/src/style.css
+++ b/src/style.css
@@ -45,6 +45,19 @@ body {
background: rgba(0, 0, 0, 0.5);
}
+#closed-main > h1 {
+ font-size: 50px;
+}
+
+#closed-main {
+ display: none;
+ color: white;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ -webkit-transform: translate(-50%, -50%);
+ transform: translate(-50%, -50%);}
+
main {
margin: 16px 0;
width: 850px;
diff --git a/src/window.js b/src/window.js
new file mode 100644
index 0000000..295e1f2
--- /dev/null
+++ b/src/window.js
@@ -0,0 +1,10 @@
+function closeWindow(windowClass) {
+ const elements = document.querySelectorAll(`.${windowClass}`);
+ elements.forEach(el => {
+ el.style.display = 'none';
+ });
+ if (windowClass === 'main') {
+ const newMain = document.getElementById("closed-main");
+ newMain.style.display = 'block'
+ }
+}
\ No newline at end of file