diff --git a/YStemAndChess/src/app/app-routing.module.ts b/YStemAndChess/src/app/app-routing.module.ts index 0517f7264..24faf58fd 100644 --- a/YStemAndChess/src/app/app-routing.module.ts +++ b/YStemAndChess/src/app/app-routing.module.ts @@ -31,6 +31,19 @@ import { WhyChessComponent } from './pages/why-chess/why-chess.component'; import { ResetPasswordComponent } from './pages/reset-password/reset-password.component'; import { SetPasswordComponent } from './pages/set-password/set-password.component'; +import {MathArticleComponent} from "./pages/math-article/math-article.component"; +import {OnlineArticleComponent} from "./pages/Online-expansion-article/online-article.component"; +import {ComputerBenefitArticleComponent} from "./pages/computer-science-benefit-article/computer-benefit-article.component" +import {ChessBenefitArticleComponent} from "./pages/chess-benefit-article/chess-benefit-article.component"; +import {MentoringBenefitArticleComponent} from "./pages/mentoring-benefit-article/mentoring-benefit-article.component"; +import {AboutUsComponent} from "./pages/aboutUs/about-us.component" +import {MissionHifiComponent} from "./pages/mission-hifi/mission-hifi.component" +import {FinancialsHifiComponent} from "./pages/financials/financials-hifi.component"; +import {BoardHifiComponent} from "./pages/board/board-hifi.component"; +import {MentorProfileComponent} from "./pages/mentor-profile/mentor-profile.component"; +import {ParentProfileComponent} from "./pages/parent-profile/parent-profile.component"; + + const routes: Routes = [ { path: '', component: HomeComponent }, // Lets remove the one below this comment (PlayComponent) when we go into production @@ -133,6 +146,30 @@ const routes: Routes = [ { path: 'landing-page', component: LandingPageComponent }, { path: 'board-analyzer', component: BoardAnalyzerComponent }, { path: 'why-chess', component: WhyChessComponent }, + + { path: 'math-article', component: MathArticleComponent }, + { path: 'mentoring-article', component: MentoringBenefitArticleComponent }, + { path: 'online-expansion-article', component: OnlineArticleComponent }, + { path: 'chess-benefit-article', component: ChessBenefitArticleComponent }, + { path: 'computer-science-article', component: ComputerBenefitArticleComponent }, + { path: 'about-us', component: AboutUsComponent }, + { path: 'mission', component: MissionHifiComponent }, + { path: 'financial', component: FinancialsHifiComponent }, + { path: 'board', component: BoardHifiComponent }, + + { + path: 'mentor-profile', + component: MentorProfileComponent, + data: { roles: ['mentor'] }, + canActivate: [LoginGuardService], + }, + { + path: 'parent-profile', + component: ParentProfileComponent, + data: { roles: ['parent'] }, + canActivate: [LoginGuardService], + }, + ]; @NgModule({ diff --git a/YStemAndChess/src/app/app.module.ts b/YStemAndChess/src/app/app.module.ts index 61165a0ed..b575e2048 100644 --- a/YStemAndChess/src/app/app.module.ts +++ b/YStemAndChess/src/app/app.module.ts @@ -42,6 +42,18 @@ import { BoardAnalyzerComponent } from './pages/board-analyzer/board-analyzer.co import { WhyChessComponent } from './pages/why-chess/why-chess.component'; import { ResetPasswordComponent } from './pages/reset-password/reset-password.component'; import { SetPasswordComponent } from './pages/set-password/set-password.component'; +import {SponsorsComponent} from "./pages/sponsors/sponsors.component" +import {MissionHifiComponent} from "./pages/mission-hifi/mission-hifi.component" +import {FinancialsHifiComponent} from "./pages/financials/financials-hifi.component"; +import {BoardHifiComponent} from "./pages/board/board-hifi.component"; +import {MathArticleComponent} from "./pages/math-article/math-article.component"; +import {OnlineArticleComponent} from "./pages/Online-expansion-article/online-article.component"; +import {ComputerBenefitArticleComponent} from "./pages/computer-science-benefit-article/computer-benefit-article.component" +import {ChessBenefitArticleComponent} from "./pages/chess-benefit-article/chess-benefit-article.component"; +import {MentoringBenefitArticleComponent} from "./pages/mentoring-benefit-article/mentoring-benefit-article.component"; +import {AboutUsComponent} from "./pages/aboutUs/about-us.component" +import {MentorProfileComponent} from "./pages/mentor-profile/mentor-profile.component"; +import {ParentProfileComponent} from "./pages/parent-profile/parent-profile.component"; const agoraConfig: AgoraConfig = { AppID: '6c368b93b82a4b3e9fb8e57da830f2a4', @@ -79,6 +91,18 @@ const agoraConfig: AgoraConfig = { WhyChessComponent, ResetPasswordComponent, SetPasswordComponent, + SponsorsComponent, + MissionHifiComponent, + FinancialsHifiComponent, + BoardHifiComponent, + MathArticleComponent, + OnlineArticleComponent, + ComputerBenefitArticleComponent, + ChessBenefitArticleComponent, + MentoringBenefitArticleComponent, + AboutUsComponent, + MentorProfileComponent, + ParentProfileComponent ], imports: [ BrowserModule, diff --git a/YStemAndChess/src/app/footer/footer.component.css b/YStemAndChess/src/app/footer/footer.component.css index dd3feb620..2977b1935 100644 --- a/YStemAndChess/src/app/footer/footer.component.css +++ b/YStemAndChess/src/app/footer/footer.component.css @@ -18,11 +18,11 @@ footer { display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; - margin-top: 10%; + /* margin-top: 10%; */ position: relative; height: 100%; - border-top: solid; - border-color: black; + /* border-top: solid; + border-color: black; */ } .main-container { diff --git a/YStemAndChess/src/app/footer/footer.component.html b/YStemAndChess/src/app/footer/footer.component.html index 256c00678..d10d01692 100644 --- a/YStemAndChess/src/app/footer/footer.component.html +++ b/YStemAndChess/src/app/footer/footer.component.html @@ -8,8 +8,90 @@ href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" /> -