-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
831 additions
and
1,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
packages/create-module-federation/templates/consumer-rsbuild-ts/src/App.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
packages/create-module-federation/templates/lib-common/src/Description.tsx
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
packages/create-module-federation/templates/lib-common/src/Footer.css
This file was deleted.
Oops, something went wrong.
74 changes: 0 additions & 74 deletions
74
packages/create-module-federation/templates/lib-common/src/Footer.tsx
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/create-module-federation/templates/lib-common/src/Header.tsx
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
packages/create-module-federation/templates/lib-common/src/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: 60vh; | ||
padding: 10vh; | ||
background: linear-gradient(45deg, #3a65f2, #6a5acd, #8a2be2, #023cfc); | ||
background-size: 400% 400%; | ||
animation: gradientFlow 6s ease infinite; | ||
} | ||
|
||
.icon-container { | ||
width: 180px; | ||
margin-bottom: 20px; | ||
position: relative; | ||
transition: all 0.3s ease; | ||
} | ||
|
||
.logo-image { | ||
width: 100%; | ||
transition: opacity 0.3s ease; | ||
} | ||
|
||
.title { | ||
font-size: 3rem; | ||
color: #fff; | ||
margin-bottom: 20px; | ||
animation: fadeInUp 1s ease-out; | ||
} | ||
|
||
@keyframes gradientFlow { | ||
0% { | ||
background-position: 0% 50%; | ||
} | ||
50% { | ||
background-position: 100% 50%; | ||
} | ||
100% { | ||
background-position: 0% 50%; | ||
} | ||
} | ||
|
||
@keyframes fadeInUp { | ||
from { | ||
opacity: 0; | ||
transform: translateY(20px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
} |
22 changes: 19 additions & 3 deletions
22
packages/create-module-federation/templates/lib-common/src/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
export * as Description from './Description'; | ||
export * as Footer from './Footer'; | ||
export * as Header from './Header'; | ||
import React from 'react'; | ||
import './index.css'; | ||
|
||
const Provider: React.FC = () => { | ||
return ( | ||
<div className="container"> | ||
<div className="icon-container"> | ||
<img | ||
src="https://module-federation.io/svg.svg" | ||
alt="logo" | ||
className="logo-image" | ||
/> | ||
</div> | ||
<h1 className="title">Hello Module Federation 2.0</h1> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Provider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...ages/create-module-federation/templates/provider-modern-ts/src/components/Description.css
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ages/create-module-federation/templates/provider-modern-ts/src/components/Description.tsx
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
packages/create-module-federation/templates/provider-modern-ts/src/components/Footer.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.