Commit e1b623f
* Remove old card community component
* Add new community card component
* Fix import of community card component
* Add logos to public dir
* refactor!: Integrate `SocialLinks` into `Links` interface for improved maintainability
Originally, props were independently defined in both `communities.astro` page and `CommunityCard` component. While explicit prop definitions offer clarity, this approach introduced redundancy and made it harder to align with `Community` interface. As result, maintaining consistency across components became challenging, especially when passing nested props to child components like SocialLinks and Tags.
Now, `SocialLinks` interface has been properly nested inside `Links` interface (`Communities.ts`). This adjustment establishes a common structure across components, improving scalability and error traceability. It also simplifies prop propagation and reduces code duplication.
* refactor!: Implement `Community` and `SocialLinks` interfaces across `CommunityCard` and children components
Originally, props were declared explicitly in `CommunityCard` and its children components. While this approach offered clarity at the beginning, it also may cause inconsistencies, especially as the application scales or interfaces evolve.
Now, `Community` and `SocialLinks` interfaces have been implemented consistently across `CommunityCard` and its children components. This refactor ensures a unified data structure, reduces code duplication, and simplifies maintenance.
* refactor!: Create svg files from icons and implement them in `SocialLinks.astro` component
At the beginning, social icons were implemented as svg tags directly in `SocialLinks.astro` component. Now, these icons are used to create svgs files as source for `<Fragment>` tags. This way, we have a more friendly and maintanable icon implementation
* fix: Change svg files content
Used a new source for svg icons to show them properly in website (credits: icons8.com)
* refactor: Update community links structure and integrate social links in CommunityCard
---------
Co-authored-by: nsandoya <[email protected]>
Co-authored-by: Iván Manzaba <[email protected]>
1 parent 81935f8 commit e1b623f
File tree
14 files changed
+132
-58
lines changed- public
- icons
- src
- assets
- components
- CommunityCard
- interfaces
- pages
14 files changed
+132
-58
lines changedLoading
Loading
Loading
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments