Skip to content

Commit

Permalink
update home
Browse files Browse the repository at this point in the history
  • Loading branch information
furknyavuz committed Aug 28, 2021
1 parent d157fb2 commit 32dcbed
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 7,891 deletions.
7,921 changes: 46 additions & 7,875 deletions src/app/page/raw-landing-layout/home/home.component.html

Large diffs are not rendered by default.

29 changes: 24 additions & 5 deletions src/app/page/raw-landing-layout/home/home.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
}

.features {
padding-top: 0;
display: flex;
flex-direction: column;
position: relative;
Expand All @@ -26,14 +25,20 @@
background-color: var(--brand-color-lighter-5);
}

.features h2, .features .feature {
.features h4, .features .feature {
padding-left: 7vw;
padding-right: 7vw;
}

.features h2 {
background-color: var(--brand-color-lighter-5);
padding-top: 80px;
.features h4 {
color: var(--brand-color);
}

.features h5 {
padding-top: 10px;
padding-bottom: 10px;
font-weight: normal;
color: var(--brand-color);
}

.feature svg {
Expand Down Expand Up @@ -158,6 +163,15 @@
.hero-content-left > * {
padding-bottom: 6vh;
}

.features {
padding-top: 6vh;
}

.features h4 {
padding-bottom: 20px;
text-align: center;
}
}

@media only screen and (min-width: 1000px) {
Expand All @@ -167,6 +181,11 @@

.features {
padding-bottom: 300px;
padding-top: 150px;
}

.features h4 {
padding-bottom: 40px;
}

.register-wrapper {
Expand Down
22 changes: 11 additions & 11 deletions src/app/page/raw-landing-layout/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { URLS } from '../../../util/constant';
} )
export class HomeComponent implements AfterViewInit {

downloadCounter = 2800;
starsCounter = 7;
userCounter = 5;
downloadCounter = 5100;
serverTypesCounter = 6;
uiTypesCounter = 3;

brand = {
brandLogo: '',
Expand Down Expand Up @@ -66,30 +66,30 @@ export class HomeComponent implements AfterViewInit {
const eventCountUp = new CountUp( 'npmCounterElement', this.downloadCounter, options );

options.formattingFn = ( n: number ) => {
return this.countUpFormatter( n, this.starsCounter );
return this.countUpFormatter( n, this.serverTypesCounter );
};
if ( this.starsCounter < this.KILO ) {
if ( this.serverTypesCounter < this.KILO ) {
options.duration = 2
} else if ( this.starsCounter < this.MILLION ) {
} else if ( this.serverTypesCounter < this.MILLION ) {
options.duration = 3
} else {
options.duration = 4
}

const studentCountUp = new CountUp( 'githubStarCounterElement', this.starsCounter, options );
const studentCountUp = new CountUp( 'githubStarCounterElement', this.serverTypesCounter, options );

options.formattingFn = ( n: number ) => {
return this.countUpFormatter( n, this.userCounter );
return this.countUpFormatter( n, this.uiTypesCounter );
};
if ( this.userCounter < this.KILO ) {
if ( this.uiTypesCounter < this.KILO ) {
options.duration = 2
} else if ( this.userCounter < this.MILLION ) {
} else if ( this.uiTypesCounter < this.MILLION ) {
options.duration = 3
} else {
options.duration = 4
}

const userCountUp = new CountUp( 'serverTypesCounterElement', this.userCounter, options );
const userCountUp = new CountUp( 'serverTypesCounterElement', this.uiTypesCounter, options );

if ( !eventCountUp.error ) {
eventCountUp.start();
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/common/map.png
Binary file not shown.

0 comments on commit 32dcbed

Please sign in to comment.