Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 17 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"core-js": "2.5.4",
"font-awesome": "4.7.0",
"jquery": "3.3.1",
"lesshat": "4.1.0",
"node-sass": "4.11.0",
"popper.js": "1.14.7",
"rxjs": "6.3.3",
Expand Down
1 change: 0 additions & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<b-navbar></b-navbar>

<router-outlet></router-outlet>

<app-contact-icon></app-contact-icon>
<footer></footer>
17 changes: 17 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';

import { UserDashboardComponent } from './user-dashboard/user-dashboard.component';
import { ContactComponent } from './contact/contact.component';
import { NavbarComponent } from './shared/navbar/navbar.component';
Expand All @@ -16,9 +17,25 @@ import { CoursesDescriptionComponent } from './courses-description/courses-descr
import { ForumComponent } from './forum/forum.component';
import { CoursePreviewComponent } from './course-preview/course-preview.component';
import { AboutComponent } from './about/about.component';
import { BannerComponent } from './home/banner/banner.component';
import { HomeAboutusComponent } from './home/home-aboutus/home-aboutus.component';
import { HCategoryComponent } from './home/h-categories/h-category/h-category.component';
import { HCategoriesComponent } from './home/h-categories/h-categories.component';
import { HNumberComponent } from './home/h-numbers/h-number/h-number.component';
import { HNumbersComponent } from './home/h-numbers/h-numbers.component';
import { HomeCourseComponent } from './home/home-courses/home-course/home-course.component';
import { HomeCoursesComponent } from './home/home-courses/home-courses.component';

@NgModule({
declarations: [
HomeCourseComponent,
HomeCoursesComponent,
HNumberComponent,
HNumbersComponent,
HomeAboutusComponent,
HCategoryComponent,
HCategoriesComponent,
BannerComponent,
AppComponent,
HomeComponent,
NavbarComponent,
Expand Down
17 changes: 17 additions & 0 deletions src/app/home/banner/banner.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div class="container-fluid banner">
<div class="row">
<div class="col quote-div">
<h2 class="display-4 quote text-center">
Work hard than you think you did <br><span>Yesterday </span>
</h2>
</div>

<div class="col-md-3 col-sm-4 col-xs-6 button-div">
<a href="#" class="btn btn-sm animated-button victoria-one">Sign up</a>
<a href="#" class="btn btn-sm animated-button victoria-two">Login</a>
</div>

<div class="col-md-3 col-sm-3 col-xs-6"></div>
</div>
</div>

98 changes: 98 additions & 0 deletions src/app/home/banner/banner.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
.banner{
// background-repeat: no-repeat;
// background-size: cover;
// background-image: url('https://ak7.picdn.net/shutterstock/videos/10060967/thumb/1.jpg');
background-color: #D0DAFF;
padding: 100px;
}
.button-div{
z-index: 2;
}
.quote{
margin-left: 10%;
font-size: 3.5em;
width: 40%;
}

// Buttons CSS
a.animated-button:link, a.animated-button:visited {
position: relative;
display: block;
margin: 30px auto 0;
padding: 14px 15px;
color: #44579A;
font-size:16px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
overflow: hidden;
letter-spacing: .08em;
border-radius: 0;
text-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.2);
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}
a.animated-button:link:after, a.animated-button:visited:after {
content: "";
position: absolute;
height: 0%;
left: 50%;
top: 50%;
width: 150%;
z-index: -1;
-webkit-transition: all 0.75s ease 0s;
-moz-transition: all 0.75s ease 0s;
-o-transition: all 0.75s ease 0s;
transition: all 0.75s ease 0s;
}
a.animated-button:link:hover, a.animated-button:visited:hover {
color: #D0DAFF;
text-shadow: none;
}
a.animated-button:link:hover:after, a.animated-button:visited:hover:after {
height: 450%;
}
a.animated-button:link, a.animated-button:visited {
position: relative;
display: block;
margin: 30px auto 0;
padding: 14px 15px;
color: #44579A;
font-size:20px;
border-radius: 0;
text-align: center;
text-decoration: none;
text-transform: uppercase;
overflow: hidden;
letter-spacing: .08em;
text-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.2);
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}

/* Victoria Buttons */

a.animated-button.victoria-one {
border: 4px solid #44579A;
}
a.animated-button.victoria-one:after {
background: #44579A;
-moz-transform: translateX(-50%) translateY(-50%) rotate(-25deg);
-ms-transform: translateX(-50%) translateY(-50%) rotate(-25deg);
-webkit-transform: translateX(-50%) translateY(-50%) rotate(-25deg);
transform: translateX(-50%) translateY(-50%) rotate(-25deg);
}
a.animated-button.victoria-two {
border: 4px solid #44579A;
}
a.animated-button.victoria-two:after {
background: #44579A;
-moz-transform: translateX(-50%) translateY(-50%) rotate(25deg);
-ms-transform: translateX(-50%) translateY(-50%) rotate(25deg);
-webkit-transform: translateX(-50%) translateY(-50%) rotate(25deg);
transform: translateX(-50%) translateY(-50%) rotate(25deg);
}
25 changes: 25 additions & 0 deletions src/app/home/banner/banner.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { BannerComponent } from './banner.component';

describe('BannerComponent', () => {
let component: BannerComponent;
let fixture: ComponentFixture<BannerComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ BannerComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(BannerComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/home/banner/banner.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-banner',
templateUrl: './banner.component.html',
styleUrls: ['./banner.component.scss']
})
export class BannerComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
Loading