Commit a55b52c
authored
refactor: abstracted components and assets to @common-config (#50)
- Components and some images are now organized in the `@common-config`
package
- Styles are distributed effectively within their respective package
Issue
https://linear.app/defi-wonderland/issue/CHA-339/monorepo-refactor-for-common-components-abstraction
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Summary by CodeRabbit
* **New Features**
* Introduced reusable visual components (CategoryCards, HeroSection,
HandbookSection, IlustrationsContainer) with customizable props for
enhanced homepage layouts.
* Added new export paths for components and types in the shared
configuration package.
* **Enhancements**
* Updated homepage layouts to use shared, typed components and explicit
configuration for categories, hero sections, and partner handbooks.
* Improved theming and dynamic styling for category cards and
backgrounds.
* Added a styled "Disclaimer" button to the template site's navbar with
responsive behavior.
* Added a modal dialog in the template site triggered by the
"Disclaimer" button.
* Added a responsive background overlay with masked ellipse SVG to
Wonderland site’s local styles.
* Updated CSS to remove redundant background overlays and adjust asset
URL paths for consistency.
* **Bug Fixes**
* Corrected asset paths for icons and logos to ensure proper display
across themes and dropdowns.
* Updated handbook dropdown URLs to real domains.
* **Chores**
* Added React 19 and type definitions to dependencies for improved
compatibility and type safety.
* Improved TypeScript configuration for better type support and
debugging.
* Removed redundant or now-shared local components in favor of shared
package usage.
* Added TypeScript module declarations for CSS and Docusaurus Link
components.
* Cleaned up modal-related code by removing it from the Wonderland
site’s Root component.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 9f34aa5 commit a55b52c
50 files changed
Lines changed: 1392 additions & 397 deletions
File tree
- packages/common-config
- preset
- src
- components
- Backgrounds
- NoiseBackground
- TriangleBackground
- CategoryCards
- HandbookSection
- HeroSection
- IlustrationsContainer
- StarsBackground
- types
- static/common
- img
- icons
- styles
- sites
- template
- src
- css
- pages
- theme/Root
- wonderland
- src
- components
- CategoryCards
- HandbookSection
- HeroSection
- css
- pages
- theme/Root
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
| |||
53 | 47 | | |
54 | 48 | | |
55 | 49 | | |
56 | | - | |
| 50 | + | |
57 | 51 | | |
58 | 52 | | |
59 | 53 | | |
| 54 | + | |
| 55 | + | |
60 | 56 | | |
61 | 57 | | |
62 | | - | |
| 58 | + | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
| |||
Lines changed: 77 additions & 0 deletions
| 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 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
0 commit comments