-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6b00a7
commit 8bb8c5a
Showing
7 changed files
with
144 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="32" | ||
height="32" | ||
viewBox="0 0 32 32" | ||
fill="none" | ||
> | ||
<rect width="32" height="32" fill="none" /> | ||
<line x1="8" y1="8" x2="24" y2="24" stroke="white" stroke-width="2" /> | ||
<line x1="8" y1="24" x2="24" y2="8" stroke="white" stroke-width="2" /> | ||
</svg> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<script lang="ts"> | ||
import ContributorPopup from "./ContributorPopup.svelte"; | ||
export let contributors: any[]; | ||
let isContributorDialogOpen = false; | ||
let contributorIndex = 0; | ||
function openContributorDialog(i: number) { | ||
contributorIndex = i; | ||
isContributorDialogOpen = true; | ||
} | ||
</script> | ||
|
||
<ContributorPopup | ||
contributor={contributors[contributorIndex]} | ||
bind:isOpen={isContributorDialogOpen} | ||
/> | ||
|
||
<section class="contributors"> | ||
{#each contributors as contributor, i} | ||
<div | ||
class="contributor" | ||
on:click={() => openContributorDialog(i)} | ||
on:keydown={() => openContributorDialog(i)} | ||
role="button" | ||
tabindex="0" | ||
> | ||
<img | ||
class="profile-image" | ||
src="https://github.com/{contributor.frontmatter.githubUsername}.png" | ||
alt="ACM at CSUF Icon" | ||
width={32} | ||
height={32} | ||
/> | ||
<span>{contributor.frontmatter.name}</span> | ||
</div> | ||
{/each} | ||
</section> | ||
|
||
<style> | ||
.contributors { | ||
display: grid; | ||
gap: 1rem; | ||
align-items: center; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
} | ||
.contributor { | ||
cursor: pointer; | ||
display: flex; | ||
gap: 0.25rem; | ||
align-items: center; | ||
padding: 0.5rem 1rem; | ||
border-radius: 0.25rem; | ||
border: 2px solid rgb(var(--color-secondary)); | ||
background-color: rgba(var(--color-secondary), 0.6); | ||
transition: background-color 150ms ease; | ||
font-size: 0.875rem; | ||
font-weight: 500; | ||
overflow-x: hidden; | ||
} | ||
.contributor:hover { | ||
background-color: rgba(var(--color-secondary), 0.9); | ||
} | ||
.profile-image { | ||
border-radius: 50%; | ||
} | ||
@media screen and (min-width: 640px) { | ||
.contributors { | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
} | ||
.contributor { | ||
font-size: 1rem; | ||
} | ||
} | ||
@media screen and (min-width: 768px) { | ||
.contributors { | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
} | ||
} | ||
@media screen and (min-width: 1024px) { | ||
.contributors { | ||
grid-template-columns: repeat(4, minmax(0, 1fr)); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
class="arrow-icon" | ||
> | ||
<rect width="16" height="16" fill="none"></rect> | ||
<path d="M4 12 L12 4" stroke="white" stroke-width="1.5"></path> | ||
<path d="M7 4 H12 V9" stroke="white" stroke-width="1.5"></path> | ||
</svg> | ||
|
||
<style is:global> | ||
.arrow-link:hover .arrow-icon { | ||
transform: translate(2px, -2px); | ||
} | ||
|
||
.arrow-icon { | ||
transition: transform 0.3s ease; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters