website/src/routes/members.svelte

137 lines
2.4 KiB
Svelte
Raw Normal View History

2022-07-03 01:23:41 +05:30
<script lang="ts">
import members from "$lib/Members.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";
import IconGlobe from "~icons/fa6-solid/globe";
2022-07-03 01:23:41 +05:30
</script>
<svelte:head>
2022-07-06 18:40:25 +05:30
<title>Members | Project Segfault</title>
<meta name="description" content="Members of Project Segfault." />
2022-07-03 01:23:41 +05:30
</svelte:head>
<div class="members">
<h1>Members</h1>
2022-07-06 21:33:06 +05:30
<p>Our excellent members!</p>
2022-07-03 01:23:41 +05:30
<div class="member-outer">
{#each members as { name, discord, matrix, position, description, github, website }}
2022-07-06 18:40:25 +05:30
<div class="member-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}
</div>
</div>
2022-07-03 01:23:41 +05:30
{/each}
</div>
</div>
<style>
2022-07-06 18:40:25 +05:30
.member-outer {
display: flex;
flex-direction: column;
gap: 2rem;
flex-flow: row wrap;
}
.member-inner {
background-color: #252525;
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 {
2022-07-03 01:23:41 +05:30
background-color: #fff;
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-06 18:40:25 +05:30
.web {
background-color: var(--tertiary);
color: #fff !important;
2022-07-06 18:40:25 +05:30
font-size: 20px;
height: 23px;
}
.web:hover {
background-color: var(--accent-tertiary);
color: var(--secondary) !important;
transition: all 0.5s;
}
2022-07-06 18:40:25 +05:30
.web:active {
background-color: var(--accent-primary);
2022-07-06 18:40:25 +05:30
transition: all 0.5s;
}
.socials {
display: flex;
flex-direction: row;
gap: 0.5rem;
}
</style>