Skip to content

Commit

Permalink
Adds new charities
Browse files Browse the repository at this point in the history
  • Loading branch information
nikbabchenko committed May 3, 2018
1 parent 351b61d commit c34b495
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 17 deletions.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.5",
"@angular/cli": "^1.7.0",
"@angular/common": "^5.2.5",
"@angular/compiler": "^5.2.5",
"@angular/compiler-cli": "^5.2.5",
"@angular/core": "^5.2.5",
"@angular/forms": "^5.2.5",
"@angular/http": "^5.2.5",
"@angular/platform-browser": "^5.2.5",
"@angular/platform-browser-dynamic": "^5.2.5",
"@angular/platform-server": "^5.2.5",
"@angular/router": "^5.2.5",
"@angular/animations": "5.2.10",
"@angular/cli": "1.7.4",
"@angular/common": "5.2.10",
"@angular/compiler": "5.2.10",
"@angular/compiler-cli": "5.2.10",
"@angular/core": "5.2.10",
"@angular/forms": "5.2.10",
"@angular/http": "5.2.10",
"@angular/platform-browser": "5.2.10",
"@angular/platform-browser-dynamic": "5.2.10",
"@angular/platform-server": "5.2.10",
"@angular/router": "5.2.10",
"@types/underscore": "^1.8.5",
"bootstrap": "^4.0.0",
"core-js": "^2.5.1",
Expand All @@ -35,10 +35,10 @@
"intl": "^1.2.5",
"ngx-sharebuttons": "^4.1.4",
"reset.css": "^2.0.2",
"rxjs": "^5.5.2",
"typescript": "2.4.2",
"rxjs": "^5.5.10",
"typescript": "2.6.2",
"underscore": "^1.8.3",
"zone.js": "^0.8.18"
"zone.js": "^0.8.26"
},
"devDependencies": {
"@types/jasmine": "2.5.38",
Expand Down
36 changes: 36 additions & 0 deletions src/app/pages/charity/charity-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,41 @@ export const charityList = [
goal: 'Оплата услуг реабилитации',
summ: '15 470 грн.',
add: '<img src="/assets/images/charity/vasilchenko.jpg" alt="Покупка медикаментов" class="responsive-image popup">'
},
{
name: 'Хаецкая София',
goal: 'Покупка оборудования и курса логопедических занятий',
summ: '13 658 грн.',
add: '<img src="/assets/images/charity/haetskaya.png" alt="Хаецкая София" class="responsive-image popup">'
},
{
name: 'Дубровин Станислав',
goal: 'Оплата реабилитации',
summ: '9 600 грн.',
add: '<img src="/assets/images/charity/dubrovin.png" alt="Дубровин Станислав" class="responsive-image popup">'
},
{
name: 'Семенцова Н.В.',
goal: 'Покупка медикаментов',
summ: '11 674 грн.',
add: '<img src="/assets/images/charity/semencova.jpg" alt="Семенцова Н.В." class="responsive-image popup">'
},
{
name: 'Возняк Т.О.',
goal: 'Покупка медикаментов',
summ: '1 026 грн.',
add: '<img src="/assets/images/charity/voznjak.jpg" alt="Семенцова Н.В." class="responsive-image popup">'
},
{
name: 'Пастух О.Ф.',
goal: 'Покупка инвалидной коляски',
summ: '7 100 грн.',
add: '<img src="/assets/images/charity/pastuh.jpg" alt="Пастух О.Ф." class="responsive-image popup">'
},
{
name: 'Спиридонов В.Г.',
goal: 'Покупка инвалидной коляски',
summ: '6 330 грн.',
add: '<img src="/assets/images/charity/spiridonov.jpg" alt="Спиридонов В.Г." class="responsive-image popup">'
}
];
2 changes: 0 additions & 2 deletions src/app/pages/charity/charity.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ export class CharityComponent implements AfterViewInit, OnDestroy {
let hashElement = document.getElementById(fragment);
if (hashElement) {
let scrollTop = hashElement.getBoundingClientRect().top;
setTimeout(() => {
document.body.scrollTop = scrollTop - document.getElementById('header').offsetHeight - 10;
document.documentElement.scrollTop = scrollTop - document.getElementById('header').offsetHeight - 10;
}, 200);
}
}
});
Expand Down
Binary file added src/assets/images/charity/dubrovin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/haetskaya.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/pastuh.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/semencova.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/spiridonov.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/charity/voznjak.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c34b495

Please sign in to comment.