Skip to content

Commit

Permalink
feat: decouple team info and website
Browse files Browse the repository at this point in the history
  • Loading branch information
logonoff committed Nov 13, 2024
1 parent 9590526 commit b5aa378
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 123 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ jobs:
name: production
url: https://robotics-club.utm.utoronto.ca/
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive

- name: remove existing team repo
run: rm -rf src/lib/team

- uses: actions/checkout@v4
with:
repository: ${{ secrets.TEAM_REPO }}
path: "src/lib/team"

- name: create env files
run: echo "${{ secrets.ENV }}" > .env;

Expand Down
Binary file removed src/lib/assets/team/Aaron.jpg
Binary file not shown.
Binary file removed src/lib/assets/team/Alex.jpg
Binary file not shown.
Binary file removed src/lib/assets/team/Ayman.jpg
Binary file not shown.
Binary file removed src/lib/assets/team/Ido.jpg
Binary file not shown.
Binary file removed src/lib/assets/team/Max.jpg
Binary file not shown.
Binary file removed src/lib/assets/team/Prottoy.jpg
Binary file not shown.
Binary file removed src/lib/assets/team/Razeen.jpg
Binary file not shown.
Binary file removed src/lib/assets/team/Travis.jpg
Binary file not shown.
Binary file removed src/lib/assets/team/Usha.jpg
Binary file not shown.
Binary file removed src/lib/assets/team/none.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib/components/Team.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { team, type TeamMemberProps } from '$lib/data/team';
import { team, type TeamMemberProps } from '$lib/team/team';
import TeamMember from '$lib/components/TeamMember.svelte';
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/TeamMember.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Fa from 'svelte-fa';
import { faLinkedin, faGithub } from '@fortawesome/free-brands-svg-icons';
import noImage from '$lib/assets/team/none.png';
import type { TeamMemberProps } from '$lib/data/team';
import type { TeamMemberProps } from '$lib/team/team';
const { name, role, bio, image, linkedin, github }: TeamMemberProps = $props();
</script>
Expand Down
120 changes: 0 additions & 120 deletions src/lib/data/team.ts

This file was deleted.

13 changes: 13 additions & 0 deletions src/lib/team/team.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export interface TeamMemberProps {
name: string;
role?: string;
bio?: string;
image?: string;
linkedin?: string;
github?: string;
}

/**
* stub data
*/
export const team: TeamMemberProps[] = [];

0 comments on commit b5aa378

Please sign in to comment.