mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
link to static pages
This commit is contained in:
parent
5bac37a790
commit
1717f738d1
@ -23,6 +23,9 @@ import { AppRoutingModule } from './app-routing.module';
|
|||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { CoreModule } from './core/core.module';
|
import { CoreModule } from './core/core.module';
|
||||||
import { SharedModule } from './shared/shared.module';
|
import { SharedModule } from './shared/shared.module';
|
||||||
|
import { CguComponent } from './features/shared/components/ui/static-pages/cgu/cgu.component';
|
||||||
|
import { LegalComponent } from './features/shared/components/ui/static-pages/legal/legal.component';
|
||||||
|
import { PrivacyComponent } from './features/shared/components/ui/static-pages/privacy/privacy.component';
|
||||||
registerLocaleData(localeEn, 'en-EN');
|
registerLocaleData(localeEn, 'en-EN');
|
||||||
registerLocaleData(localeFr, 'fr-FR');
|
registerLocaleData(localeFr, 'fr-FR');
|
||||||
|
|
||||||
@ -37,7 +40,7 @@ export function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [AppComponent],
|
declarations: [AppComponent, CguComponent, LegalComponent, PrivacyComponent],
|
||||||
imports: [
|
imports: [
|
||||||
AppRoutingModule,
|
AppRoutingModule,
|
||||||
BrowserAnimationsModule,
|
BrowserAnimationsModule,
|
||||||
|
@ -102,24 +102,22 @@
|
|||||||
<div class="tile is-4 is-vertical is-parent">
|
<div class="tile is-4 is-vertical is-parent">
|
||||||
<div class="tile is-child box">
|
<div class="tile is-child box">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
<i class="fa fa-check-circle"></i>
|
||||||
62 346
|
62 346
|
||||||
</div>
|
</div>
|
||||||
<p>sondages</p>
|
<p>sondages</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="tile is-child box">
|
<div class="tile is-child box">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
<i class="fa fa-tachometer"></i>
|
||||||
223 124
|
223 124
|
||||||
</div>
|
</div>
|
||||||
<p>votes</p>
|
<p>votes</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tile is-child box">
|
<div class="tile is-child box">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
123
|
<i class="fa fa-comment-o"></i>
|
||||||
</div>
|
|
||||||
<p>consensus parfaits</p>
|
|
||||||
</div>
|
|
||||||
<div class="tile is-child box">
|
|
||||||
<div class="title">
|
|
||||||
41 875
|
41 875
|
||||||
</div>
|
</div>
|
||||||
<p>commentaires</p>
|
<p>commentaires</p>
|
||||||
@ -128,22 +126,48 @@
|
|||||||
<div class="tile is-parent">
|
<div class="tile is-parent">
|
||||||
<div class="tile is-child box">
|
<div class="tile is-child box">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
<i class="fa fa-calendar-check-o"></i>
|
||||||
44 985
|
44 985
|
||||||
</div>
|
</div>
|
||||||
<p>sondages de type date</p>
|
<p>sondages de type date</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tile is-child box">
|
<div class="tile is-child box">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
<i class="fa fa-file-epub"></i>
|
||||||
22 985
|
22 985
|
||||||
</div>
|
</div>
|
||||||
<p>sondages de type classique</p>
|
<p>sondages de type classique</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="tile is-child box">
|
<div class="tile is-child box">
|
||||||
<p class="title">Mentions légales</p>
|
<div class="title">
|
||||||
<p>Voir ici le détail des mentions légales, CGU, CPU, politique de confidentialité.</p>
|
<i class="fa fa-check-circle-o"></i>
|
||||||
|
123
|
||||||
|
</div>
|
||||||
|
<p>consensus parfaits</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="box">
|
||||||
|
<h2 class="title">Nos Mentions légales</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="/legal">
|
||||||
|
mentions légales,
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/cgu">
|
||||||
|
CGU, CPU,
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/privacy">
|
||||||
|
politique de confidentialité.
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
<div class="static-page content">
|
||||||
|
<article>
|
||||||
|
<section class="hero is-info">
|
||||||
|
<div class="hero-body">
|
||||||
|
<p class="title">
|
||||||
|
Conditions Générales d'utilisation
|
||||||
|
</p>
|
||||||
|
<p class="subtitle">
|
||||||
|
Détail des CGU.
|
||||||
|
<br />
|
||||||
|
Ne nous prenez pas pour des chatons.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="hero is-info">
|
||||||
|
<div class="hero-body">
|
||||||
|
<p class="title">
|
||||||
|
Conditions Particulières d'utilisation
|
||||||
|
</p>
|
||||||
|
<p class="subtitle">
|
||||||
|
Détail des CPU
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</article>
|
||||||
|
</div>
|
@ -0,0 +1,24 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { CguComponent } from './cgu.component';
|
||||||
|
|
||||||
|
describe('CguComponent', () => {
|
||||||
|
let component: CguComponent;
|
||||||
|
let fixture: ComponentFixture<CguComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [CguComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(CguComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,12 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-cgu',
|
||||||
|
templateUrl: './cgu.component.html',
|
||||||
|
styleUrls: ['./cgu.component.scss'],
|
||||||
|
})
|
||||||
|
export class CguComponent implements OnInit {
|
||||||
|
constructor() {}
|
||||||
|
|
||||||
|
ngOnInit(): void {}
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
<div class="static-page content">
|
||||||
|
<article>
|
||||||
|
<section class="hero is-info">
|
||||||
|
<div class="hero-body">
|
||||||
|
<p class="title">
|
||||||
|
Mentions légales
|
||||||
|
</p>
|
||||||
|
<p class="subtitle">
|
||||||
|
détail des mentions légales
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</article>
|
||||||
|
</div>
|
@ -0,0 +1,24 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { LegalComponent } from './legal.component';
|
||||||
|
|
||||||
|
describe('LegalComponent', () => {
|
||||||
|
let component: LegalComponent;
|
||||||
|
let fixture: ComponentFixture<LegalComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [LegalComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(LegalComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,12 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-legal',
|
||||||
|
templateUrl: './legal.component.html',
|
||||||
|
styleUrls: ['./legal.component.scss'],
|
||||||
|
})
|
||||||
|
export class LegalComponent implements OnInit {
|
||||||
|
constructor() {}
|
||||||
|
|
||||||
|
ngOnInit(): void {}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
<section class="hero is-info">
|
||||||
|
<div class="hero-body">
|
||||||
|
<p class="title">
|
||||||
|
Politique de confidentialité
|
||||||
|
</p>
|
||||||
|
<p class="subtitle">
|
||||||
|
Privacy policy
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
@ -0,0 +1,24 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { PrivacyComponent } from './privacy.component';
|
||||||
|
|
||||||
|
describe('PrivacyComponent', () => {
|
||||||
|
let component: PrivacyComponent;
|
||||||
|
let fixture: ComponentFixture<PrivacyComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [PrivacyComponent],
|
||||||
|
}).compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(PrivacyComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,12 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-privacy',
|
||||||
|
templateUrl: './privacy.component.html',
|
||||||
|
styleUrls: ['./privacy.component.scss'],
|
||||||
|
})
|
||||||
|
export class PrivacyComponent implements OnInit {
|
||||||
|
constructor() {}
|
||||||
|
|
||||||
|
ngOnInit(): void {}
|
||||||
|
}
|
@ -4,6 +4,9 @@ import { PollService } from './core/services/poll.service';
|
|||||||
import { PageNotFoundComponent } from './shared/components/page-not-found/page-not-found.component';
|
import { PageNotFoundComponent } from './shared/components/page-not-found/page-not-found.component';
|
||||||
import { SuccessComponent } from './features/administration/success/success.component';
|
import { SuccessComponent } from './features/administration/success/success.component';
|
||||||
import { WipTodoComponent } from './shared/components/ui/wip-todo/wip-todo.component';
|
import { WipTodoComponent } from './shared/components/ui/wip-todo/wip-todo.component';
|
||||||
|
import { CguComponent } from './features/shared/components/ui/static-pages/cgu/cgu.component';
|
||||||
|
import { LegalComponent } from './features/shared/components/ui/static-pages/legal/legal.component';
|
||||||
|
import { PrivacyComponent } from './features/shared/components/ui/static-pages/privacy/privacy.component';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{ path: '', component: HomeComponent },
|
{ path: '', component: HomeComponent },
|
||||||
@ -45,6 +48,18 @@ export const routes: Routes = [
|
|||||||
path: 'todo',
|
path: 'todo',
|
||||||
component: WipTodoComponent,
|
component: WipTodoComponent,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'cgu',
|
||||||
|
component: CguComponent,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'legal',
|
||||||
|
component: LegalComponent,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'privacy',
|
||||||
|
component: PrivacyComponent,
|
||||||
|
},
|
||||||
{ path: 'page-not-found', component: PageNotFoundComponent },
|
{ path: 'page-not-found', component: PageNotFoundComponent },
|
||||||
{ path: '**', redirectTo: 'page-not-found', pathMatch: 'full' },
|
{ path: '**', redirectTo: 'page-not-found', pathMatch: 'full' },
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user