refactor(project): Renamed all instances of dafa to msfa or mina-sidor-fa. (TV-379)
Squashed commit of the following: commit d3f52ff6876f6e246c7d3c188e56cc2370289341 Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Tue Aug 17 14:10:38 2021 +0200 Renamed all dafa instances to msfa
This commit is contained in:
36
apps/mina-sidor-fa/src/app/pages/start/start.component.html
Normal file
36
apps/mina-sidor-fa/src/app/pages/start/start.component.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<msfa-layout>
|
||||
<section class="start">
|
||||
<digi-typography>
|
||||
<h1>Välkommen till Mina Sidor FA</h1>
|
||||
<p>Här finner du de senaste nyheterna om uppdateringar, notiser och mer.</p>
|
||||
</digi-typography>
|
||||
<div class="start__wrapper">
|
||||
<div class="start__notifications">
|
||||
<digi-info-card af-heading="Notiser" af-heading-level="h1" af-type="info" af-link-text="Deltagare">
|
||||
<p>
|
||||
Det har kommit in nya avrop med deltagare, länken nedan tar dig till fliken Nya deltagare. Du finner den
|
||||
också i vänster menyn på sidan
|
||||
</p>
|
||||
|
||||
<digi-ng-link-internal afText="Deltagare" afRoute="/deltagare"></digi-ng-link-internal>
|
||||
</digi-info-card>
|
||||
</div>
|
||||
|
||||
<div class="start__alerts">
|
||||
<digi-notification-alert af-variation="info" af-heading="Viktig information" af-heading-level="h3">
|
||||
<p>Large alert! Check the knobs section and play around!</p>
|
||||
</digi-notification-alert>
|
||||
<digi-notification-alert af-variation="success" af-heading="Allt gick bra" af-heading-level="h3">
|
||||
<p>Dina skickade tilldelningar har nått fram till handledare som godkänt och arbetat vidare med deltagarna</p>
|
||||
</digi-notification-alert>
|
||||
</div>
|
||||
<div class="start__statistics">
|
||||
<digi-info-card af-heading="Statistik" af-heading-level="h2" af-type="info">
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Asperiores dolores debitis enim. Voluptatum debitis
|
||||
necessitatibus, distinctio expedita officiis maiores eum sapiente molestiae eveniet soluta dolores non, porro
|
||||
quo vitae tenetur?
|
||||
</digi-info-card>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</msfa-layout>
|
||||
28
apps/mina-sidor-fa/src/app/pages/start/start.component.scss
Normal file
28
apps/mina-sidor-fa/src/app/pages/start/start.component.scss
Normal file
@@ -0,0 +1,28 @@
|
||||
@import 'variables/gutters';
|
||||
.start {
|
||||
&__wrapper {
|
||||
margin-top: $digi--layout--gutter--l;
|
||||
display: grid;
|
||||
grid-template-rows: auto;
|
||||
grid-template-areas:
|
||||
'header header'
|
||||
'notifications alerts'
|
||||
'statistics statistics ';
|
||||
gap: $digi--layout--gutter--l;
|
||||
}
|
||||
|
||||
&__notifications {
|
||||
grid-area: notifications;
|
||||
}
|
||||
|
||||
&__alerts {
|
||||
grid-area: alerts;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--digi--layout--gutter);
|
||||
}
|
||||
|
||||
&__statistics {
|
||||
grid-area: statistics;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { StartComponent } from './start.component';
|
||||
|
||||
describe('StartComponent', () => {
|
||||
let component: StartComponent;
|
||||
let fixture: ComponentFixture<StartComponent>;
|
||||
|
||||
beforeEach(
|
||||
waitForAsync(() => {
|
||||
void TestBed.configureTestingModule({
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||
declarations: [StartComponent],
|
||||
imports: [RouterTestingModule],
|
||||
}).compileComponents();
|
||||
})
|
||||
);
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(StartComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'msfa-start',
|
||||
templateUrl: './start.component.html',
|
||||
styleUrls: ['./start.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class StartComponent {}
|
||||
22
apps/mina-sidor-fa/src/app/pages/start/start.module.ts
Normal file
22
apps/mina-sidor-fa/src/app/pages/start/start.module.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { DigiNgCardModule } from '@af/digi-ng/_card/card';
|
||||
import { DigiNgLinkInternalModule } from '@af/digi-ng/_link/link-internal';
|
||||
import { DigiNgNotificationAlertModule } from '@af/digi-ng/_notification/notification-alert';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
|
||||
import { StartComponent } from './start.component';
|
||||
|
||||
@NgModule({
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||
declarations: [StartComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule.forChild([{ path: '', component: StartComponent }]),
|
||||
LayoutModule,
|
||||
DigiNgCardModule,
|
||||
DigiNgNotificationAlertModule,
|
||||
DigiNgLinkInternalModule,
|
||||
],
|
||||
})
|
||||
export class StartModule {}
|
||||
Reference in New Issue
Block a user