From f7f3bdddba96700d23787efbbec08d941ed1b7cf Mon Sep 17 00:00:00 2001 From: Akis Date: Sat, 3 Sep 2022 18:25:53 +0300 Subject: [PATCH] fix project links --- src/lib/Card/Link.svelte | 20 ++++++++------------ src/lib/Projects.json | 4 ++-- src/routes/projects/+page.svelte | 8 +++++++- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/lib/Card/Link.svelte b/src/lib/Card/Link.svelte index cfb9875..577bb9e 100644 --- a/src/lib/Card/Link.svelte +++ b/src/lib/Card/Link.svelte @@ -16,10 +16,7 @@ .link { background-color: var(--alt); color: var(--alt-text); - font-size: 20px; transition: all 0.25s; - display: flex; - align-items: center; } .web:hover, @@ -33,25 +30,21 @@ .matrixcolored { background-color: var(--alt); color: var(--alt-text); - font-size: 20px; - display: flex; - align-items: center; } .discordcolored { background-color: #5865f2; color: #fff; - font-size: 20px; - display: flex; - align-items: center; } .gitcolored { background-color: #f05032; color: #fff; - font-size: 20px; - display: flex; - align-items: center; + } + + .githubcolored { + background-color: var(--alt); + color: var(--alt-text); } a { @@ -63,5 +56,8 @@ color: var(--secondary); text-decoration: none; width: fit-content; + font-size: 20px; + display: flex; + align-items: center; } diff --git a/src/lib/Projects.json b/src/lib/Projects.json index 04579c1..946d5ed 100644 --- a/src/lib/Projects.json +++ b/src/lib/Projects.json @@ -2,13 +2,13 @@ { "name": "Website", "description": "Our website written in SvelteKit.", - "git": "https://git.projectsegfau.lt/ProjectSegfault/website/", + "github": "https://github.com/ProjectSegfault/website/", "website": "https://projectsegfau.lt/" }, { "name": "Segfautils", "description": "Web utilities (APIs) for Project Segfault, but you could probably use them too.", - "git": "https://git.projectsegfau.lt/ProjectSegfault/Segfautils/", + "github": "https://github.com/ProjectSegfault/segfautils/", "website": "https://segfautils.projectsegfau.lt/" } ] diff --git a/src/routes/projects/+page.svelte b/src/routes/projects/+page.svelte index 86e99c9..8b60fa8 100644 --- a/src/routes/projects/+page.svelte +++ b/src/routes/projects/+page.svelte @@ -10,7 +10,7 @@

Our projects

- {#each projects as { name, description, git, website }} + {#each projects as { name, description, git, github, website }} {#if website} @@ -19,6 +19,12 @@ {/if} + {#if github} + +
+ + {/if} + {#if git}