Skip to content

Commit eec3dfd

Browse files
Add dependency attribution page (#58)
1 parent 313414f commit eec3dfd

9 files changed

+3998
-5
lines changed

frontend/src/app/app-routing.module.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ const routes: Routes = [
3939
path: 'login',
4040
loadChildren: () =>
4141
import('./views/login/login.module').then((m) => m.LoginModule)
42+
},
43+
{
44+
path: 'attribution',
45+
loadChildren: () =>
46+
import('./views/attribution-document/attribution-document.module').then((m) => m.AttributionDocumentModule)
4247
}
4348
]
4449
},
@@ -49,8 +54,7 @@ const routes: Routes = [
4954
];
5055

5156
@NgModule({
52-
imports: [RouterModule.forRoot(routes)],
57+
imports: [RouterModule.forRoot(routes), RouterModule.forRoot(routes, { anchorScrolling: 'enabled'})],
5358
exports: [RouterModule]
5459
})
55-
export class AppRoutingModule {
56-
}
60+
export class AppRoutingModule { }

frontend/src/app/containers/default-layout/default-layout.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
<div class="mb-8">
4848
<div class="mb-2 text-2xl">POSSIBLE-X</div>
4949
</div>
50+
<div class="mb-2">
51+
<a [routerLink]="['/attribution']">Attribution Notices</a>
52+
</div>
5053
<div class="text-sm">© 2024 POSSIBLE Consortium</div>
5154
</div>
5255
<div class="flex justify-end">

frontend/src/app/containers/default-layout/default-layout.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
.footer-wrapper {
2222
@apply overflow-hidden bg-brand-700;
23-
@apply w-full h-[40vh];
23+
@apply w-full min-h-[40vh];
2424
@apply divide-y divide-brand-100;
2525
}
2626

@@ -29,7 +29,7 @@
2929
}
3030

3131
.main-footer-wrapper {
32-
@apply border-t border-brand-100 h-[17vh];
32+
@apply border-t border-brand-100 min-h-[17vh];
3333
}
3434

3535
.footer {
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { NgModule } from '@angular/core';
2+
import { RouterModule, Routes } from '@angular/router';
3+
4+
import { AttributionDocumentComponent } from './attribution-document.component';
5+
6+
const routes: Routes = [
7+
{
8+
path: '',
9+
component: AttributionDocumentComponent,
10+
}
11+
];
12+
13+
@NgModule({
14+
imports: [RouterModule.forChild(routes)],
15+
exports: [RouterModule]
16+
})
17+
export class AttributionDocumentRoutingModule {
18+
}

0 commit comments

Comments
 (0)