Browse Source

working on profile front-end

Jonathan Hinds 5 years ago
parent
commit
c1e8b6e46e

+ 46
- 0
src/main/webapp/app/FaeBoo/Profile-head/profile-head.component.html View File

@@ -0,0 +1,46 @@
1
+<div class="main-cont">
2
+
3
+    <div class = "friend-cont">
4
+
5
+        <div class = "profile-pic">
6
+            <img class ="friend-photo" src = "../../../content/images/defaultphoto.png">
7
+        </div>
8
+
9
+        <div class="friend-pic">
10
+            <img class ="friend-photo" src = "../../../content/images/defaultphoto.png">
11
+        </div>
12
+
13
+        <div class="friend-pic">
14
+            <img class ="friend-photo" src = "../../../content/images/defaultphoto.png">
15
+        </div>
16
+
17
+        <div class="friend-pic">
18
+            <img class ="friend-photo" src = "../../../content/images/defaultphoto.png">
19
+        </div>
20
+
21
+        <div class="friend-pic">
22
+            <img class ="friend-photo" src = "../../../content/images/defaultphoto.png">
23
+        </div>
24
+
25
+        <div class="friend-pic">
26
+            <img class ="friend-photo" src = "../../../content/images/defaultphoto.png">
27
+        </div>
28
+
29
+        <div class="friend-pic">
30
+            <img class ="friend-photo" src = "../../../content/images/defaultphoto.png">
31
+        </div>
32
+
33
+        <div class="friend-pic">
34
+            <img class ="friend-photo" src = "../../../content/images/defaultphoto.png">
35
+        </div>
36
+
37
+        <div class="friend-pic">
38
+            <img class ="friend-photo" src = "../../../content/images/defaultphoto.png">
39
+        </div>
40
+
41
+    </div>
42
+
43
+    <div id = "bio-cont"></div>
44
+
45
+
46
+</div>

+ 1
- 1
src/main/webapp/app/FaeBoo/Profile-head/profile-head.component.ts View File

@@ -3,6 +3,6 @@ import { Component } from '@angular/core';
3 3
 @Component({
4 4
     selector: 'jhi-profile-head',
5 5
     templateUrl: './profile-head.component.html',
6
-    styleUrls: ['profile-head.scss']
6
+    styleUrls: ['profile-head.css']
7 7
 })
8 8
 export class ProfileHeadComponent {}

+ 103
- 0
src/main/webapp/app/FaeBoo/Profile-head/profile-head.css View File

@@ -0,0 +1,103 @@
1
+.main-cont {
2
+    border: red 1px solid;
3
+    width: 100%;
4
+    height: 1fr;
5
+    box-sizing: border-box;
6
+    padding: 8px;
7
+}
8
+
9
+.friend-cont {
10
+    display: grid;
11
+    justify-content: space-around;
12
+    grid-template-columns: calc(10% - 5px) calc(10% - 5px) calc(10% - 5px) calc(10% - 5px) calc(20% - 5px) calc(10% - 5px) calc(10% - 5px) calc(
13
+            10% - 5px
14
+        ) calc(10% - 5px);
15
+    grid-column-gap: 5px;
16
+    grid-template-rows: auto;
17
+    width: 100%;
18
+    height: 100%;
19
+    box-sizing: border-box;
20
+    margin: auto;
21
+}
22
+
23
+#bio-cont {
24
+    border: red 1px solid;
25
+    width: 100%;
26
+    height: 75px;
27
+    box-sizing: border-box;
28
+    padding: 8px;
29
+    margin-top: 8px;
30
+}
31
+
32
+.friend-pic {
33
+    /*border: blue 1px solid;
34
+    width: 100%;
35
+    height: 0px;
36
+    border-radius: 50%;
37
+    grid-row-start: 1;
38
+    margin: auto;
39
+    padding-bottom: 100%;
40
+    position:relative;*/
41
+
42
+    /*border-radius: 50%;
43
+    height: 50%;
44
+    overflow: hidden;
45
+    margin: auto;
46
+    box-sizing: border-box;*/
47
+
48
+    /*border: blue 1px solid;
49
+    border-radius: 50%;
50
+    width: 100%;
51
+    height: 0%;
52
+    padding-top: 100%;
53
+    margin:auto;
54
+    overflow: hidden;*/
55
+
56
+    width: 100%;
57
+    height: 75%;
58
+    position: relative;
59
+    overflow: hidden;
60
+    border-radius: 50%;
61
+}
62
+
63
+.friend-photo {
64
+    width: 100%;
65
+    height: 100%;
66
+    object-fit: cover;
67
+}
68
+
69
+.profile-pic {
70
+    /*border: green 1px solid;
71
+    width: 100%;
72
+    height: 0px;
73
+    padding-bottom: 100%;
74
+    border-radius: 50%;
75
+    grid-column-start: 5;
76
+    grid-row-start: 1;
77
+    margin:auto;*/
78
+
79
+    /*border-radius: 50%;
80
+    height: 100%;
81
+    overflow: hidden;
82
+    margin: auto;
83
+    box-sizing: border-box;
84
+    grid-column-start: 5;
85
+    grid-row-start: 1;
86
+    margin:auto*/
87
+
88
+    /*border: blue 1px solid;
89
+    border-radius: 50%;
90
+    width: 100%;
91
+    height: 0%;
92
+    padding-top: 100%;
93
+    margin:auto;
94
+    overflow: hidden;*/
95
+
96
+    width: 100%;
97
+    height: 150%;
98
+    position: relative;
99
+    overflow: hidden;
100
+    border-radius: 50%;
101
+    grid-column-start: 5;
102
+    grid-row-start: 1;
103
+}

+ 0
- 0
src/main/webapp/app/FaeBoo/Profile-head/profile-head.scss View File


+ 1
- 0
src/main/webapp/app/FaeBoo/Profile-temp/profile-temp.component.html View File

@@ -0,0 +1 @@
1
+<jhi-profile-head></jhi-profile-head>

+ 1
- 0
src/main/webapp/app/FaeBoo/Profile-temp/profile-temp.component.ts View File

@@ -1,4 +1,5 @@
1 1
 import { Component } from '@angular/core';
2
+import { ProfileHeadComponent } from 'app/FaeBoo/Profile-head/profile-head.component';
2 3
 
3 4
 @Component({
4 5
     selector: 'jhi-profile-temp',

+ 2
- 1
src/main/webapp/app/FaeBoo/Profile-temp/profile-temp.module.ts View File

@@ -4,10 +4,11 @@ import { RouterModule } from '@angular/router';
4 4
 import { FaeBooSharedModule } from 'app/shared';
5 5
 import { PROFILE_ROUTE } from 'app/FaeBoo/Profile-temp/profile-temp.route';
6 6
 import { ProfileTempComponent } from 'app/FaeBoo/Profile-temp/profile-temp.component';
7
+import { ProfileHeadComponent } from 'app/FaeBoo/Profile-head/profile-head.component';
7 8
 
8 9
 @NgModule({
9 10
     imports: [FaeBooSharedModule, RouterModule.forChild([PROFILE_ROUTE])],
10
-    declarations: [ProfileTempComponent],
11
+    declarations: [ProfileTempComponent, ProfileHeadComponent],
11 12
     schemas: [CUSTOM_ELEMENTS_SCHEMA]
12 13
 })
13 14
 export class ProfileTempModule {}

+ 3
- 3
src/main/webapp/app/app.module.ts View File

@@ -7,7 +7,7 @@ import { NgbDatepickerConfig } from '@ng-bootstrap/ng-bootstrap';
7 7
 import { Ng2Webstorage } from 'ngx-webstorage';
8 8
 import { NgJhipsterModule } from 'ng-jhipster';
9 9
 
10
-import { ProfileHeadComponent } from 'app/FaeBoo/Profile-head/profile-head.component';
10
+// import { ProfileHeadComponent } from 'app/FaeBoo/Profile-head/profile-head.component';
11 11
 import { ProfileTempComponent } from 'app/FaeBoo/Profile-temp/profile-temp.component';
12 12
 import { ProfileTempModule } from 'app/FaeBoo/Profile-temp/profile-temp.module';
13 13
 
@@ -51,8 +51,8 @@ import { JhiMainComponent, NavbarComponent, FooterComponent, PageRibbonComponent
51 51
         ErrorComponent,
52 52
         PageRibbonComponent,
53 53
         ActiveMenuDirective,
54
-        FooterComponent,
55
-        ProfileHeadComponent
54
+        FooterComponent
55
+        // ProfileHeadComponent,
56 56
     ],
57 57
     providers: [
58 58
         {

BIN
src/main/webapp/content/images/defaultphoto.png View File