Skip to content

Commit

Permalink
Merge pull request #482 from sunbird-cb/signout
Browse files Browse the repository at this point in the history
Signout
  • Loading branch information
christyfernandes authored Jun 30, 2022
2 parents 737292f + 0ebec85 commit 36b64a1
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { AppTocResolverService } from '@ws/app/src/lib/routes/app-toc/resolvers/
import { PublicLogoutComponent } from './routes/public/public-logout/public-logout.component'
import { PublicSignupComponent } from './routes/public/public-signup/public-signup.component'
import { PublicHomeComponent } from './routes/public/public-home/public-home.component'
import { PublicContacthomeComponent } from './routes/public/public-contacthome/public-contacthome.component'

// 💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥
// Please declare routes in alphabetical order
Expand Down Expand Up @@ -685,16 +686,13 @@ const routes: Routes = [
},
{
path: 'public/contact',
component: PublicContactComponent,
component: PublicContacthomeComponent,
data: {
pageType: 'feature',
pageKey: 'public-faq',
pageKey: 'public-contact',
module: 'support',
pageId: 'public/contact',
},
resolve: {
pageData: PageResolve,
},
},
{
path: 'public/faq',
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import { PublicLogoutModule } from './routes/public/public-logout/public-logout.
import { PublicSignupModule } from './routes/public/public-signup/public-signup.module'
import { PublicHomeComponent } from './routes/public/public-home/public-home.component'
import { PublicHomeService } from './services/public-home.service'
import { PublicContacthomeComponent } from './routes/public/public-contacthome/public-contacthome.component'
// import { ServiceWorkerModule } from '@angular/service-worker'
// import { environment } from '../environments/environment'

Expand Down Expand Up @@ -109,6 +110,7 @@ const getBaseHref = (platformLocation: PlatformLocation): string => {
LoginRootDirective,
NoConnectionComponent,
PublicHomeComponent,
PublicContacthomeComponent,
],
imports: [
FormsModule,
Expand Down
1 change: 1 addition & 0 deletions src/app/component/app-footer/app-footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<div class="flex flex-col justify-start">
<p class="footer_heading mat-subheading-1 margin-bottom-m">Support</p>
<a class="footer_sub_text mat-body" routerLink="/public/faq"> Frequently asked questions</a>
<a class="footer_sub_text mat-body" routerLink="/public/contact"> Contact Us</a>
<!-- <a class="footer_sub_text mat-body" routerLink="/app/info/feedback">Feedback and suggestions</a>
<a class="footer_sub_text mat-body" routerLink="/app/info/report-problem">Report a problem</a> -->

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="box w-full">
<ws-widget-btn-page-back [widgetData]="{ url: 'home',titles:[{title:'Contact Us',url:'none'}] }" >
</ws-widget-btn-page-back>
</div>
<div class="container-balanced">
<div class="flex flex-1 custom faq_main_box">
<div class="flex-3">
<mat-card class="padding-xl">
<h2 class="flex mat-display-1 main_title_text margin-bottom-xl">Contact Us</h2>
<!-- <h5 class="flex mat-display-1 margin-top-xl margin-bottom-xl">We would love to hear from you!</h5> -->
<p>Send us a mail to <a href="mailto:[email protected]"><b>[email protected]</b></a>. Our representatives will reach out to you at the earliest.</p>
<p>You may contact us on <b>1800 111 555</b> or visit our <a href="https://servicedesk.nic.in/" target="blank">service desk</a> for more details.</p>
<p class="margin-top-xl margin-bottom-m">To know more click <a href="https://dopttrg.nic.in/igotmk/">here.</a></p>
</mat-card>
</div>
</div>
</div>

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@import "ws-vars";
@import "ws-common";

.container-balanced {
max-width: 1202px;
margin-left: auto !important;
margin-right: auto !important;
}
.faq_main_box{
padding: 45px 8px 0 8px;

@include breakpoint-xs {
padding: 45px 0;
}
}
h2.main_title_text {
font-weight: 600!important;
}
.full_width_box {
width: 100%;
}
.flex-4 {
flex: 4;
}

.custom {
@include breakpoint-xs {
flex-direction: column;
}

@include breakpoint-s {
flex-direction: column;
}
}
.flex-3 {
flex: 3;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Component, OnInit } from '@angular/core'
import { ConfigurationsService, NsPage } from '@sunbird-cb/utils'

@Component({
selector: 'ws-public-contacthome',
templateUrl: './public-contacthome.component.html',
styleUrls: ['./public-contacthome.component.scss'],
})
export class PublicContacthomeComponent implements OnInit {
contactUsMail = ''
pageNavbar: Partial<NsPage.INavBackground> = this.configSvc.pageNavBar

constructor(private configSvc: ConfigurationsService) {}

ngOnInit() {
if (this.configSvc.instanceConfig) {
this.contactUsMail = this.configSvc.instanceConfig.mailIds.contactUs
}
}

}

0 comments on commit 36b64a1

Please sign in to comment.