Skip to content

Commit

Permalink
Merge pull request #71 from Homie-s-Project/create-companion-page
Browse files Browse the repository at this point in the history
Create companion page
  • Loading branch information
RomainAntunes authored Dec 25, 2022
2 parents 81841a0 + 5d3b481 commit b755d10
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kairos-web/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ErrorComponent } from './components/error/error.component';
import { EventEditComponent } from './components/event-edit/event-edit.component';
import {ProfileComponent} from "./components/profile/profile.component";
import {EventCalendarComponent} from "./components/event-calendar/event-calendar.component";
import { CompanionComponent } from './components/companion/companion.component';

const routes: Routes = [
{
Expand Down Expand Up @@ -44,9 +45,13 @@ const routes: Routes = [
]
},
{
path:'profile',
path: 'profile',
component: ProfileComponent
},
{
path: 'companion',
component: CompanionComponent
}
]
},
{
Expand Down
2 changes: 2 additions & 0 deletions kairos-web/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {ErrorComponent} from "./components/error/error.component";
import {EventCalendarComponent} from './components/event-calendar/event-calendar.component';
import {ModalDialogComponent} from './components/dialog/modal-dialog/modal-dialog.component';
import { AlertDialogComponent } from './components/dialog/alert-dialog/alert-dialog.component';
import { CompanionComponent } from './components/companion/companion.component';

@NgModule({
declarations: [
Expand All @@ -45,6 +46,7 @@ import { AlertDialogComponent } from './components/dialog/alert-dialog/alert-dia
EventCalendarComponent,
ModalDialogComponent,
AlertDialogComponent,
CompanionComponent,
],
imports: [
BrowserModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<fa-icon class="smiley-icon" [icon]="faPersonDigging"></fa-icon>
<div class="text-container">
<h1>Page du compagnon</h1>
<h2>Actuellement en construction ! Il vous rejoindra bientôt</h2>
</div>
<div class="companion-background"></div>
29 changes: 29 additions & 0 deletions kairos-web/src/app/components/companion/companion.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@use '/src/styles/variables.scss' as vars;

:host {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
gap: 15px;
color: vars.$first-color;
.smiley-icon {
font-size: 120px;
}
.text-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: left;
}
.companion-background {
width: 100%;
height: 100%;
background-color: darken(vars.$fourth-color, 7%);
opacity: 75%;
position: fixed;
z-index: -1;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { CompanionComponent } from './companion.component';

describe('CompanionComponent', () => {
let component: CompanionComponent;
let fixture: ComponentFixture<CompanionComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ CompanionComponent ]
})
.compileComponents();

fixture = TestBed.createComponent(CompanionComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
11 changes: 11 additions & 0 deletions kairos-web/src/app/components/companion/companion.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Component } from '@angular/core';
import { faPersonDigging } from '@fortawesome/free-solid-svg-icons';

@Component({
selector: 'app-companion',
templateUrl: './companion.component.html',
styleUrls: ['./companion.component.scss']
})
export class CompanionComponent {
faPersonDigging = faPersonDigging;
}
1 change: 1 addition & 0 deletions kairos-web/src/app/components/error/error.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use '/src/styles/variables.scss' as vars;

.error-container {
display: flex;
justify-content: center;
Expand Down

0 comments on commit b755d10

Please sign in to comment.