website/src/routes/team.svelte

152 lines
2.9 KiB
Svelte
Raw Normal View History

2022-07-03 01:23:41 +05:30
<script lang="ts">
2022-08-04 20:00:24 +05:30
import members from "$lib/Team.json";
2022-07-06 18:40:25 +05:30
import IconDiscord from "~icons/simple-icons/discord";
import IconMatrix from "~icons/simple-icons/matrix";
import IconGitHub from "~icons/simple-icons/github";
2022-08-05 01:32:10 +05:30
import IconKey from "~icons/fa6-solid/key";
import IconGlobe from "~icons/fa6-solid/globe";
import IconEmail from "~icons/fa6-solid/envelope";
import IconCamera from "~icons/fa6-solid/camera";
2022-07-03 01:23:41 +05:30
</script>
<svelte:head>
2022-08-04 20:00:24 +05:30
<title>Our team | Project Segfault</title>
<meta name="description" content="Team members of Project Segfault." />
2022-07-03 01:23:41 +05:30
</svelte:head>
2022-08-04 20:00:24 +05:30
<div class="team">
<h1>Our team</h1>
<p>Our excellent team members!</p>
<div class="team-outer">
2022-08-05 01:32:10 +05:30
{#each members as { name, discord, matrix, position, description, github, pgp, website, email, picture }}
2022-08-04 20:00:24 +05:30
<div class="team-inner">
2022-07-06 21:33:06 +05:30
<div class="main">
<span>{name} - {position}</span>
2022-07-06 18:40:25 +05:30
2022-07-06 21:33:06 +05:30
{#if description}
<p class="description">{description}</p>
{/if}
</div>
2022-07-06 18:40:25 +05:30
<div class="socials">
{#if matrix}
<a href={matrix} class="matrixcolored"><IconMatrix /></a
>
{/if}
{#if discord}
<a href={discord} class="discordcolored"
><IconDiscord /></a
>
{/if}
{#if github}
<a href={github} class="githubcolored"><IconGitHub /></a
>
{/if}
{#if website}
<a href={website} class="web"><IconGlobe /></a>
{/if}
{#if email}
2022-08-05 19:31:15 +05:30
<a href="mailto:{email}" class="email"><IconEmail /></a>
{/if}
2022-08-05 01:32:10 +05:30
{#if pgp}
2022-08-05 18:16:54 +05:30
<a href={pgp} class="pgp"><IconKey /></a>
{/if}
2022-08-05 01:32:10 +05:30
{#if picture}
<a href={picture} class="picture"><IconCamera /></a>
{/if}
2022-07-06 18:40:25 +05:30
</div>
</div>
2022-07-03 01:23:41 +05:30
{/each}
</div>
</div>
<style>
2022-08-04 20:00:24 +05:30
.team-outer {
2022-07-06 18:40:25 +05:30
display: flex;
flex-direction: column;
gap: 2rem;
flex-flow: row wrap;
}
2022-08-04 20:00:24 +05:30
.team-inner {
background-color: var(--secondary);
2022-07-06 18:40:25 +05:30
border-radius: 10px;
padding: 1rem;
width: 30em;
2022-07-06 21:33:06 +05:30
display: flex;
flex-direction: column;
}
.main {
flex: 1;
2022-07-06 18:40:25 +05:30
}
span {
font-size: 25px;
font-weight: bold;
}
a {
border: none;
2022-07-03 01:23:41 +05:30
border-radius: 10px;
padding: 0.5rem;
cursor: pointer;
font-family: var(--font-primary);
color: var(--secondary);
text-decoration: none;
2022-07-06 18:40:25 +05:30
width: fit-content;
}
2022-07-03 01:23:41 +05:30
2022-07-06 18:40:25 +05:30
.matrixcolored {
background-color: #333;
color: #fff !important;
2022-07-06 18:40:25 +05:30
font-size: 20px;
height: 23px;
}
2022-07-03 01:23:41 +05:30
.discordcolored {
background-color: #5865f2;
color: #fff !important;
2022-07-06 18:40:25 +05:30
font-size: 20px;
height: 23px;
2022-07-03 01:23:41 +05:30
}
2022-07-06 18:40:25 +05:30
.githubcolored {
background-color: #333;
color: #fff !important;
2022-07-06 18:40:25 +05:30
font-size: 20px;
height: 23px;
}
2022-07-23 16:50:05 +05:30
.web,
.email,
2022-08-05 18:16:54 +05:30
.picture,
.pgp {
background-color: var(--tertiary);
color: #fff !important;
2022-07-06 18:40:25 +05:30
font-size: 20px;
height: 23px;
transition: all 0.25s;
2022-07-06 18:40:25 +05:30
}
.web:hover,
.email:hover,
.picture:hover,
.pgp:hover {
background-color: var(--accent);
color: #333 !important;
2022-07-06 18:40:25 +05:30
}
.socials {
display: flex;
flex-direction: row;
gap: 0.5rem;
}
</style>