diff --git a/src/lib/components/git.svelte b/src/lib/components/git.svelte
index 87c7b78..b8166cc 100644
--- a/src/lib/components/git.svelte
+++ b/src/lib/components/git.svelte
@@ -1,5 +1,6 @@
{
+ update_gradient(event, overlay_div);
+ }}
+ on:mouseenter={() => {
+ animateForeground(true, overlay_div);
+ }}
+ on:mouseleave={() => {
+ animateForeground(false, overlay_div);
+ }}
on:click={() => {
window.location.href = `https://git.etheryo.fr/${repo}`;
}}
@@ -66,30 +130,35 @@
window.location.href = `https://git.etheryo.fr/${repo}`;
}}
>
- {#if !loading}
-
-
-
-
{get_size(repoSize)}
-
-
{commitNum}
-
+
+ {#if !loading}
+
+
+
+
{get_size(display["repoSize"])}
+
+
{display["commitNum"]}
+
+
-
-
{title}
-
- {#each repoTopics as topic}
- {topic}
- {/each}
-
-
- {#each repoColors as cl}
-
- {/each}
-
- {:else}
-
Loading...
- {/if}
+
{title}
+
+ {#each repoTopics as topic}
+ {topic}
+ {/each}
+
+
+ {#each repoColors as cl}
+
+ {/each}
+
+ {:else}
+
Loading...
+ {/if}
+
+
+
diff --git a/src/lib/components/project.svelte b/src/lib/components/project.svelte
index 6ecbed3..f6ceded 100644
--- a/src/lib/components/project.svelte
+++ b/src/lib/components/project.svelte
@@ -31,7 +31,7 @@
cursorY = event.clientY - rect.top;
}
cursorX = event.clientX - rect.left;
- post_div.style.backgroundImage = `radial-gradient(circle farthest-corner at ${Math.floor(cursorX)}px ${Math.floor(cursorY)}px, var(--color-background) 0%, #958a98 100%)`;
+ div.style.backgroundImage = `radial-gradient(circle farthest-corner at ${Math.floor(cursorX)}px ${Math.floor(cursorY)}px, var(--color-background) 0%, #958a98 100%)`;
}
function animateForeground(isEntering, div_back) {
diff --git a/src/lib/css/git.css b/src/lib/css/git.css
index 070473e..4d1594b 100644
--- a/src/lib/css/git.css
+++ b/src/lib/css/git.css
@@ -1,8 +1,7 @@
.git-container {
- background-image: var(--background-light);
- box-shadow: rgba(79, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
+ background-color: #00000000;
border-radius: 1rem;
- width: calc(var(--content-width)/3);
+ width: calc(var(--content-width)/3 - 2rem);
height: 10rem;
cursor: pointer;
overflow: hidden;
@@ -11,8 +10,8 @@
.git-container svg {
width: 3rem;
height: auto;
- transform: translate(-2px, -8px);
color: var(--color-subtext);
+ transform: translate(-10px, -8px) !important;
margin-bottom: 0;
padding-bottom: 0;
}
@@ -20,7 +19,7 @@
.git-container h1 {
font-family: "JetBrains Mono";
font-weight: 800;
- font-size: 1.4rem;
+ font-size: 1.2rem;
margin: 1rem;
margin-top: 0;
}
@@ -37,7 +36,7 @@
}
.git-commit svg {
- transform: translate(0);
+ transform: translate(0) !important;
width: 2rem;
margin-left: 0.3rem;
margin-right: 0.3rem;
@@ -46,6 +45,7 @@
.git-commit p {
color: var(--color-subtext);
font-family: "JetBrains Mono";
+ font-size: 1rem;
margin: 0;
margin-left: 0.6rem;
user-select: none;
@@ -56,7 +56,7 @@
background-color: var(--color-pill);
font-family: "JetBrains Mono";
font-weight: 500;
- font-size: 0.8rem;
+ font-size: 0.7rem;
margin-bottom: 1rem;
margin-left: 0.8rem;
padding: 0.4rem;
@@ -70,6 +70,25 @@
}
.git-color > div {
- height: 100%;
-
+ height: 100%;
+ transition: var(--transition);
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+}
+
+[data-tooltip]:hover::after {
+ display: block;
+ position: absolute;
+ content: attr(data-tooltip);
+ font-family: "JetBrains Mono";
+ font-weight: 500;
+ font-size: 0.8rem;
+ background-color: var(--color-text);
+ color: var(--color-background);
+ transform: translateY(1rem);
+ padding: 0.8rem;
+ border-radius: 1rem;
+ box-shadow: rgba(79, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
+ opacity: 0.8;
}
\ No newline at end of file
diff --git a/src/lib/css/overlay.css b/src/lib/css/overlay.css
new file mode 100644
index 0000000..6d355f6
--- /dev/null
+++ b/src/lib/css/overlay.css
@@ -0,0 +1,29 @@
+.overlay-container {
+ display: grid;
+ grid-template-areas:
+ "overlay-back"
+ "overlay-front"
+ "overlay";
+ margin-left: 1rem;
+ margin-right: 1rem;
+}
+
+.overlay {
+ cursor: pointer;
+ display: flex;
+ flex-direction: column;
+ grid-area: overlay;
+ z-index: var(--z-index-front);
+}
+
+.overlay-front {
+ grid-area: overlay;
+ background-image: var(--background-light);
+ box-shadow: rgba(79, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
+ border-radius: 1rem;
+}
+
+.overlay-back {
+ grid-area: overlay;
+ border-radius: 1rem;
+}
\ No newline at end of file
diff --git a/src/lib/json/hub.json b/src/lib/json/hub.json
index ddaec76..ad06f03 100644
--- a/src/lib/json/hub.json
+++ b/src/lib/json/hub.json
@@ -32,5 +32,10 @@
"topic": "videogame"
}
],
- "lab": "Le laboratoire"
+ "lab": "Le laboratoire",
+ "repos": [
+ "Training/yoyo_card",
+ "INSA/reoc",
+ "Training/rust_training"
+ ]
}
\ No newline at end of file
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 685f67e..c1526da 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -58,7 +58,9 @@
{hubjson.lab}
-
-
-
+
+ {#each hubjson.repos as repo}
+
+ {/each}
+