diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 2b8a1808b96103a17c5d33ffb5cfca6f0dd82a56..6dc1f2843292b711eafb41c640116a12da20bb57 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -20,7 +20,6 @@ import { SignupComponent } from './signup/signup.component'; import { TranslateModule, TranslateLoader } from '@ngx-translate/core'; import { TranslateHttpLoader } from '@ngx-translate/http-loader'; import { LOCALE_ID } from '@angular/core'; - import { NavButtonComponent } from './header/nav-button/nav-button.component'; // Firebase @@ -58,6 +57,7 @@ import { GeocodeService } from './services/geocode.service'; import { ResetpasswordComponent } from './resetpassword/resetpassword.component'; import { ThankyouComponent } from './thankyou/thankyou.component'; import { ClickOutsideDirective } from './directives/click-outside.directive'; +import { EuropeanDatePipe } from './community/european-date.pipe'; @NgModule({ @@ -75,7 +75,8 @@ import { ClickOutsideDirective } from './directives/click-outside.directive'; SignupComponent, ClickOutsideDirective, ResetpasswordComponent, - ThankyouComponent + ThankyouComponent, + EuropeanDatePipe ], imports: [ BrowserModule, diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index 4bb3ed2dfd41bd589c898eeb353cb1514a20d596..639041a376f76d486e3b7b9a0407f3c64d0bb15a 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -16,7 +16,7 @@
{{ message }}
diff --git a/src/app/community/european-date.pipe.spec.ts b/src/app/community/european-date.pipe.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..e122e0bb2891b16518aa4eb00e516cc808133f5b --- /dev/null +++ b/src/app/community/european-date.pipe.spec.ts @@ -0,0 +1,8 @@ +import { EuropeanDatePipe } from './european-date.pipe'; + +describe('EuropeanDatePipe', () => { + it('create an instance', () => { + const pipe = new EuropeanDatePipe(); + expect(pipe).toBeTruthy(); + }); +}); diff --git a/src/app/community/european-date.pipe.ts b/src/app/community/european-date.pipe.ts new file mode 100644 index 0000000000000000000000000000000000000000..55c405a7060281835127257d962f68c4e67ce915 --- /dev/null +++ b/src/app/community/european-date.pipe.ts @@ -0,0 +1,16 @@ +import { Pipe, PipeTransform } from '@angular/core'; +import { DatePipe } from '@angular/common'; +import { LangService } from '../services/lang.service'; + +@Pipe({ + name: 'europeanDate' +}) +export class EuropeanDatePipe implements PipeTransform { + constructor(private lang: LangService) { } + + transform(value: any, pattern: string = 'yyyy-MM-dd'): any { + const datePipe: DatePipe = new DatePipe(this.lang.browserLang); + return datePipe.transform(value, pattern); + } + +} diff --git a/src/app/header/header.component.css b/src/app/header/header.component.css index d00643877a9661a50b0e2b21a23e3f237e93f4ef..486fc49115430c447ac220b8af7391daadc5c6d2 100644 --- a/src/app/header/header.component.css +++ b/src/app/header/header.component.css @@ -10,6 +10,10 @@ background-color: #8C93D8; } +#logo { + padding-top: 20px; +} + .nav__list { list-style: none; margin: 0; @@ -92,4 +96,4 @@ option { .logo-center { margin: auto; -} \ No newline at end of file +} diff --git a/src/app/header/header.component.html b/src/app/header/header.component.html index 17e1b7a24efada0abe100047ac25b59dbb56b293..ccfeed21754b42fb7c081e431a3b1cbf7fa21806 100644 --- a/src/app/header/header.component.html +++ b/src/app/header/header.component.html @@ -1,6 +1,6 @@LOGIN.NOACCOUNT
Sign Up ---> \ No newline at end of file +--> diff --git a/src/app/maps/maps.component.css b/src/app/maps/maps.component.css index 258a0856163687f989df2c1f438eaf0a1ae87414..5151363a6eb1fd826a9ecff68f9b1f543e7a5454 100644 --- a/src/app/maps/maps.component.css +++ b/src/app/maps/maps.component.css @@ -1,9 +1,47 @@ -.my-4{ - margin-top:70px !important; + +:host { + overflow-x: hidden; +} +.back{ + height: 100vh; + max-height: 100%; + width: calc(100vw - 20rem - 6%); + align-content: center; + padding: 0 3%; + justify-content: center; +} + +.select-container, .details-container { + display: flex; + max-width: calc(100vw - 26rem); + display: flex; + flex-direction: column; + justify-content: space-between; + padding: .5em 0; + overflow-x: hidden; + margin: 0 auto; +} + +.map-container { + max-width: calc(100vw - 26rem); + margin: 0 auto; + overflow-x: hidden; +} + +.details-container { + overflow-y: scroll; + overflow-x: hidden; +} + +.custom-select { + width: 70%; } agm-map { - height: 50vh; + height: 50vh; + max-width: calc(100vw - 20rem); + padding: 0 3%; + margin: 0 auto; } .target { @@ -17,8 +55,8 @@ agm-map { } .content-header { - background-color: gray; - padding: 20px 0px 10px 0px; + background-color: lightcoral; + padding: 10px; align-items: middle; font-size: 18pt; } @@ -26,12 +64,13 @@ agm-map { .content-grid { display: grid; grid-template-columns: repeat(3, 1fr); + background-color: whitesmoke; } .content-grid > * { padding: 5px; - background-color: whitesmoke; border-radius: 5px; + border: 1px solid lightslategray; } .content-grid > * > p { diff --git a/src/app/maps/maps.component.html b/src/app/maps/maps.component.html index f4b77a25c244556dc37b2906c846fff60c8763fb..c4469a227bc32923632456fed14ba9508a3945fe 100644 --- a/src/app/maps/maps.component.html +++ b/src/app/maps/maps.component.html @@ -1,13 +1,16 @@ -