Skip to content

Commit

Permalink
switch to just .svg
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasohCHOM committed Sep 25, 2024
1 parent 735d0ff commit 0bafe08
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
File renamed without changes
12 changes: 1 addition & 11 deletions src/components/DiagonalArrow.astro → public/diagonalArrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/components/ContributorPopup.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts">
import { fade, fly } from "svelte/transition";
import CloseIcon from "./CloseIcon.svelte";
import type { Fa2024MarkdownEntry } from "../types";
export let isOpen = false;
Expand Down Expand Up @@ -28,7 +27,7 @@
out:fly={{ y: 40, duration: 150 }}
>
<button class="custom-close-btn" on:click={toggleContainer}>
<CloseIcon />
<img src="/1st/closeIcon.svg" alt="Close Icon" />
</button>

<h2>{name}</h2>
Expand Down
13 changes: 10 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import DiagonalArrow from "../components/DiagonalArrow.astro";
import FloatingBoxes from "../components/FloatingBoxes.astro";
import Layout from "../layouts/Layout.astro";
---
Expand All @@ -20,11 +19,11 @@ import Layout from "../layouts/Layout.astro";
<div class="semester-links">
<a class="arrow-link" href="/1st/fa24">
<span> Fall 2024 Contributors </span>
<DiagonalArrow />
<img src="/1st/diagonalArrow.svg" alt="Link Icon" class="arrow-icon" />
</a>
<a class="arrow-link" href="/1st/sp24">
<span> Spring 2024 Contributors </span>
<DiagonalArrow />
<img src="/1st/diagonalArrow.svg" alt="Link Icon" class="arrow-icon" />
</a>
</div>
</main>
Expand Down Expand Up @@ -68,6 +67,14 @@ import Layout from "../layouts/Layout.astro";
color: white;
}

.arrow-link:hover .arrow-icon {
transform: translate(2px, -2px);
}

.arrow-icon {
transition: transform 0.3s ease;
}

@media screen and (min-width: 768px) {
main {
padding: 1rem 1.25rem;
Expand Down

0 comments on commit 0bafe08

Please sign in to comment.