Skip to content

Commit b6674c3

Browse files
Merge pull request #3 from hallisonbrancalhao/feature/create-institutional
Feature/create institutional
2 parents 5bbcf02 + 168b6a3 commit b6674c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2057
-154
lines changed

Diff for: apps/bytebank/module-federation.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ModuleFederationConfig } from '@nx/module-federation';
22

33
const config: ModuleFederationConfig = {
44
name: 'bytebank',
5-
remotes: [['dashboard', 'https://main.d2uexl1wva9mc9.amplifyapp.com/']],
5+
remotes: ['dashboard', 'institutional'],
66
};
77

88
export default config;

Diff for: apps/bytebank/public/assets/finance-illustration.svg

+83
Loading

Diff for: apps/bytebank/public/assets/green-logo.svg

+14
Loading

Diff for: apps/bytebank/public/assets/white-logo.svg

+14
Loading

Diff for: apps/bytebank/public/favicon.ico

-14.3 KB
Binary file not shown.

Diff for: apps/bytebank/src/app/app.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<router-outlet />

Diff for: apps/bytebank/src/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { RouterModule } from '@angular/router';
44
@Component({
55
imports: [RouterModule],
66
selector: 'app-root',
7-
template: `<router-outlet/>`,
7+
templateUrl: './app.component.html',
88
})
99
export class AppComponent {}

Diff for: apps/bytebank/src/app/app.routes.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Route } from '@angular/router';
22

33
export const appRoutes: Route[] = [
4-
{
5-
path: 'dashboard',
6-
loadChildren: () => import('dashboard/Routes').then((m) => m.remoteRoutes),
7-
},
84
{
95
path: '',
10-
redirectTo: 'dashboard',
11-
pathMatch: 'full',
6+
loadChildren: () =>
7+
import('institutional/Routes').then((m) => m.remoteRoutes),
128
},
9+
{
10+
path: 'dashboard',
11+
loadChildren: () => import('dashboard/Routes').then((m) => m.remoteRoutes),
12+
}
1313
];

Diff for: apps/bytebank/webpack.prod.config.ts

+4-10
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ import config from './module-federation.config';
99
export default withModuleFederation(
1010
{
1111
...config,
12-
/*
13-
* Remote overrides for production.
14-
* Each entry is a pair of a unique name and the URL where it is deployed.
15-
*
16-
* e.g.
17-
* remotes: [
18-
* ['app1', 'https://app1.example.com'],
19-
* ['app2', 'https://app2.example.com'],
20-
* ]
21-
*/
12+
remotes: [
13+
['dashboard', 'https://main.d2uexl1wva9mc9.amplifyapp.com/'],
14+
['institutional', 'https://main.d26jbrr617j1yi.amplifyapp.com/']
15+
]
2216
},
2317
{ dts: false }
2418
);

Diff for: libs/institutional/feature-home/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# feature-home
2+
3+
This library was generated with [Nx](https://nx.dev).

Diff for: libs/institutional/feature-home/eslint.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import baseConfig from '../../../eslint.config.mjs';
2+
3+
export default [...baseConfig];

Diff for: libs/institutional/feature-home/project.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "feature-home",
3+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "libs/institutional/feature-home/src",
5+
"projectType": "library",
6+
"tags": [],
7+
"// targets": "to see all targets run: nx show project feature-home --web",
8+
"targets": {}
9+
}

Diff for: libs/institutional/feature-home/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './public-api';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<ui-header-institutional />
2+
<section class="bg-gray-50 text-center py-16 px-6 min-h-[calc(100vh-74px-176px)]">
3+
<div class="max-w-5xl mx-auto grid grid-cols-1 md:grid-cols-2 items-center gap-12">
4+
5+
<div class="text-left">
6+
<h1 class="text-4xl font-semibold text-gray-900 leading-tight">
7+
Controle sua vida financeira com liberdade.
8+
</h1>
9+
<p class="text-lg text-gray-600 mt-4">
10+
Crie sua conta digital e aproveite os benefícios sem taxas ou mensalidades.
11+
</p>
12+
<button class="mt-6 px-6 py-3 bg-green-600 text-white rounded-lg shadow-md
13+
hover:bg-green-700 transition">
14+
Abra sua conta
15+
</button>
16+
</div>
17+
18+
<div class="flex justify-center">
19+
<img src="assets/finance-illustration.svg" alt="Controle financeiro"
20+
class="w-72 md:w-96">
21+
</div>
22+
23+
</div>
24+
25+
<div class="mt-16 max-w-4xl mx-auto grid grid-cols-2 md:grid-cols-4 gap-8">
26+
<div class="flex flex-col items-center text-center">
27+
<div class="text-green-500 text-3xl mb-2">🎁</div>
28+
<h3 class="font-medium text-lg text-gray-800">Conta gratuita</h3>
29+
<p class="text-gray-500 text-sm">Sem tarifas e sem complicações.</p>
30+
</div>
31+
32+
<div class="flex flex-col items-center text-center">
33+
<div class="text-green-500 text-3xl mb-2">🏦</div>
34+
<h3 class="font-medium text-lg text-gray-800">Saques grátis</h3>
35+
<p class="text-gray-500 text-sm">4 saques gratuitos por mês.</p>
36+
</div>
37+
38+
<div class="flex flex-col items-center text-center">
39+
<div class="text-green-500 text-3xl mb-2"></div>
40+
<h3 class="font-medium text-lg text-gray-800">Pontos e benefícios</h3>
41+
<p class="text-gray-500 text-sm">Ganhe pontos sem mensalidade.</p>
42+
</div>
43+
44+
<div class="flex flex-col items-center text-center">
45+
<div class="text-green-500 text-3xl mb-2">🛡️</div>
46+
<h3 class="font-medium text-lg text-gray-800">Segurança total</h3>
47+
<p class="text-gray-500 text-sm">Seus dispositivos protegidos.</p>
48+
</div>
49+
</div>
50+
</section>
51+
<ui-footer-institutional />

Diff for: libs/institutional/feature-home/src/lib/components/home/institutional-home.component.scss

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Component } from '@angular/core';
2+
import { FooterInstitutionalComponent, HeaderInstitutionalComponent } from '@fiap-tech-challenge/ui-components';
3+
4+
@Component({
5+
selector: 'app-institutional-home',
6+
templateUrl: './institutional-home.component.html',
7+
styleUrls: ['./institutional-home.component.scss'],
8+
imports: [HeaderInstitutionalComponent, FooterInstitutionalComponent],
9+
standalone: true,
10+
})
11+
export class InstitutionalHomeComponent {}

Diff for: libs/institutional/feature-home/src/public-api.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './lib/components/home/institutional-home.component'

Diff for: libs/institutional/feature-home/tsconfig.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extends": "../../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"module": "commonjs",
5+
"forceConsistentCasingInFileNames": true,
6+
"strict": true,
7+
"importHelpers": true,
8+
"noImplicitOverride": true,
9+
"noImplicitReturns": true,
10+
"noFallthroughCasesInSwitch": true,
11+
"noPropertyAccessFromIndexSignature": true
12+
},
13+
"files": [],
14+
"include": [],
15+
"references": [
16+
{
17+
"path": "./tsconfig.lib.json"
18+
}
19+
]
20+
}

Diff for: libs/institutional/feature-home/tsconfig.lib.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../../dist/out-tsc",
5+
"declaration": true,
6+
"types": ["node"]
7+
},
8+
"include": ["src/**/*.ts"]
9+
}

Diff for: libs/shared/ui-components/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ui-components
2+
3+
This library was generated with [Nx](https://nx.dev).

Diff for: libs/shared/ui-components/eslint.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import baseConfig from '../../../eslint.config.mjs';
2+
3+
export default [...baseConfig];

Diff for: libs/shared/ui-components/project.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "ui-components",
3+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "libs/shared/ui-components/src",
5+
"projectType": "library",
6+
"tags": ["type:ui", "scope:shared"],
7+
"// targets": "to see all targets run: nx show project ui-components --web",
8+
"targets": {}
9+
}

Diff for: libs/shared/ui-components/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './public-api';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'ui-footer-institutional',
5+
template: `
6+
<footer class="bg-black text-white py-4 flex item-center justify-around">
7+
<section class="flex items-start flex-col gap-4">
8+
<h3 class="font-bold">Serviços</h3>
9+
<a href="#">Conta corrente</a>
10+
<a href="#">Conta PJ</a>
11+
<a href="#">Cartão de crédito</a>
12+
</section>
13+
<section class="flex items-start flex-col gap-4">
14+
<h3 class="font-bold">Contato</h3>
15+
<p>0800 004 250 08</p>
16+
<p>meajuda&#64;bytebank.com.br</p>
17+
<p>ouvidoria&#64;bytebank.com.br</p>
18+
</section>
19+
<section class="flex items-center">
20+
<img src="assets/white-logo.svg" alt="Logo" class="w-auto h-8">
21+
</section>
22+
</footer>
23+
`,
24+
styles: `
25+
`
26+
})
27+
export class FooterInstitutionalComponent {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<header class="bg-black text-green-500 flex items-center justify-around p-4" >
2+
<div class="flex items-center space-x-2">
3+
<img src="assets/green-logo.svg" alt="Logo" class="w-auto h-8 mr-4">
4+
<a href="#" class="hover:text-green-400">Sobre</a>
5+
<a href="#" class="hover:text-green-400">Serviços</a>
6+
</div>
7+
<div class="flex space-x-2">
8+
<button class="bg-green-600 text-white px-4 py-2 rounded-md hover:bg-green-700">
9+
Abrir minha conta
10+
</button>
11+
<button class="border border-green-600 text-green-600 px-4 py-2 rounded-md hover:bg-green-600 hover:text-white">
12+
Já tenho conta
13+
</button>
14+
</div>
15+
</header>

Diff for: libs/shared/ui-components/src/lib/header-institutional/header-institutional.component.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)