Skip to content

Commit b3fcaf4

Browse files
committed
training buttons start
1 parent eb8711e commit b3fcaf4

4 files changed

Lines changed: 18 additions & 14 deletions

File tree

src/components/menus/menu.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
<div class='li65'><img src='./assets/imgs/asset_30.png' class='li65-img'></div>
4444
<div class='li65'><img src='./assets/imgs/asset_31.png' class='li65-img'></div>
4545
<div class='li170'>
46-
<img src='{{userPic}}' class='li170-img'>
47-
<div>{{userKyu}}</div>
48-
<div>{{userPoints}}</div>
46+
<img src='{{getUser.userPic}}' class='li170-img'>
47+
<div>{{getUser.userKyu}}</div>
48+
<div>{{getUser.userPoints}}</div>
4949
</div>
5050
</div>
5151
</div>

src/components/menus/menuCtrl.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
angular.module('app').controller('menuCtrl', function($scope, $state, mainService, $stateParams){
2-
$scope.userPic = mainService.user.picture_url;
3-
$scope.userKyu = mainService.user.kyu_level;
4-
// $scope.userPoints = mainService.user.points;
2+
$scope.getUser = () => {
3+
mainService.getUser().then(response => {
4+
console.log(response.data);
5+
})
6+
};
57
});

src/components/training/training.scss

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ $white: white;
2424

2525
// STUFF ALONG THE TOP
2626
.training-top {
27+
width: calc(100vw-55px);
2728
height: 60px;
2829
margin-top: 50px;
2930
display: flex;
@@ -67,6 +68,14 @@ $white: white;
6768

6869
}
6970

71+
.selection-div {
72+
display: flex;
73+
justify-content: space-between;
74+
flex-direction: row;
75+
align-content: flex-start;
76+
width: 60vw;
77+
}
78+
7079
.select-dropdown {
7180
height: 52px;
7281
width: 175px;
@@ -75,14 +84,6 @@ $white: white;
7584
margin: 7.5px;
7685
}
7786

78-
.selection-div {
79-
display: flex;
80-
justify-content: space-around;
81-
flex-direction: row;
82-
width: 60vw;
83-
}
84-
85-
8687
/***********MAIN TRAINING AREA***********/
8788
.kata {
8889
display: flex;

src/components/training/trainingCtrl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ angular.module('app').controller('trainingCtrl', function ($scope, $state, mainS
4141
// GET KATA INFORMATION
4242
$scope.getKataById = (kataid) => {
4343
mainService.getKataById(kataid).then((response) => {
44+
console.log(response.data);
4445
$scope.name = response.data.name;
4546
$scope.instructions = response.data.description.replace(/\\n/g, '\n');
4647
$scope.kyu = response.data.kyu;

0 commit comments

Comments
 (0)