Skip to content

Commit

Permalink
feat: ✨ created member types for groups page
Browse files Browse the repository at this point in the history
  • Loading branch information
adi-lux committed Feb 1, 2024
1 parent a37d07b commit 4eb315c
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/groups/MembersCarousel.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<script lang="ts">
</script>
54 changes: 54 additions & 0 deletions src/lib/stores/groupStores.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// import {writable} from "svelte/store";

import type { Member } from "$lib/types/members";

export const exampleMembers: Member[] = [
{
id: "1",
username: "user1",
email: "[email protected]",
profile_picture: "https://i.stack.imgur.com/34AD2.jpg",
profile_page: `/users/user1`,
created_at: new Date(),
},
{
id: "2",
username: "user2",
email: "[email protected]",
profile_picture: "https://i.stack.imgur.com/34AD2.jpg",
profile_page: `/users/user2`,
created_at: new Date(),
},
{
id: "3",
username: "user3",
email: "[email protected]",
profile_picture: "https://i.stack.imgur.com/34AD2.jpg",
profile_page: `/users/user3`,
created_at: new Date(),
},
{
id: "4",
username: "user4",
email: "[email protected]",
profile_picture: "https://i.stack.imgur.com/34AD2.jpg",
profile_page: `/users/user4`,
created_at: new Date(),
},
{
id: "5",
username: "user5",
email: "[email protected]",
profile_picture: "https://i.stack.imgur.com/34AD2.jpg",
profile_page: `/users/user5`,
created_at: new Date(),
},
{
id: "6",
username: "user6",
email: "[email protected]",
profile_picture: "https://i.stack.imgur.com/34AD2.jpg",
profile_page: `/users/user6`,
created_at: new Date(),
},
];
8 changes: 8 additions & 0 deletions src/lib/types/members.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export type Member = {
id: string;
username: string;
email: string;
profile_picture: string;
profile_page: string;
created_at: Date;
};
Empty file added src/routes/groups/+page.svelte
Empty file.

0 comments on commit 4eb315c

Please sign in to comment.