Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit d3c5c75

Browse files
committed
feat(profile): extend profile view
Add private message form, information table and a general introduction to the users profile. --- scss/include/_variables.scss | 3 ++ scss/include/modules/_profile.scss | 18 +++++++++ scss/style.scss | 7 +++- src/views/profiles/view.html | 65 ++++++++++++++++++++++++++++++- 4 files changed, 89 insertions(+), 4 deletions(-)
1 parent 3813def commit d3c5c75

File tree

4 files changed

+89
-4
lines changed

4 files changed

+89
-4
lines changed

scss/include/_variables.scss

+3
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ $footer-icon-bg-color-linkedin: #007bb6;
3838
$footer-icon-bg-color-twitter: #00aced;
3939
$footer-icon-bg-color-google: #dd4b39;
4040
$footer-icon-bg-color-xing: #006567;
41+
42+
// tables
43+
$table-border-color: #ddd;

scss/include/modules/_profile.scss

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.profile-image {
2+
width: 120px;
3+
float: left;
4+
5+
img {
6+
width: 96px;
7+
height: 96px;
8+
}
9+
}
10+
11+
.profile-info {
12+
margin-left: 120px;
13+
}
14+
15+
img.circle-border {
16+
border: 6px solid #FFFFFF;
17+
border-radius: 50%;
18+
}

scss/style.scss

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
@import "../jspm_packages/github/FortAwesome/font-awesome@4.5.0/scss/font-awesome";
55
@import "../jspm_packages/github/twbs/bootstrap@4.0.0-alpha/scss/bootstrap.scss";
66

7-
/** project **/
7+
/** base **/
88
@import "include/_layout";
99
@import "include/_top_navigation";
1010
@import "include/_navigation";
1111
@import "include/_page";
1212
@import "include/_footer";
1313
@import "include/_basic";
14-
@import "include/_animation";
14+
@import "include/_animation";
15+
16+
/** modules **/
17+
@import "include/modules/_profile";

src/views/profiles/view.html

+63-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,70 @@
11
<template>
22
<section class="au-animate">
33
<div class="row">
4-
<div class="col-lg-12">
4+
<div class="col-lg-4">
5+
<div class="profile-image">
6+
<img src="img/user.jpg" class="img-circle circle-border m-b-md">
7+
</div>
8+
<div class="profile-info">
9+
<h2>
10+
${profile.username}
11+
</h2>
12+
<h4>Member of Guild XX</h4>
13+
<small>
14+
<!-- Todo: update last visit -->
15+
Joined on ${profile.created_at}, Last visit on ${profile.created_at}
16+
</small>
17+
</div>
18+
</div>
19+
<div class="col-lg-4">
20+
<table class="table small">
21+
<tbody>
22+
<tr>
23+
<td>
24+
<strong>3</strong> Settlements
25+
</td>
26+
<td>
27+
<strong>200</strong> Troop Strength
28+
</td>
29+
</tr>
30+
<tr>
31+
<td>
32+
<strong>3</strong> Fights Won
33+
</td>
34+
<td>
35+
<strong>40 000</strong> Resources
36+
</td>
37+
</tr>
38+
<tr>
39+
<td>
40+
<strong>0</strong> Artifacts
41+
</td>
42+
<td>
43+
<strong>67 040</strong> Overall
44+
</td>
45+
</tr>
46+
</tbody>
47+
</table>
48+
</div>
49+
</div>
50+
<div class="row">
51+
<div class="col-lg-3">
552
<div class="card card-default card-block">
6-
<h2 class="card-title">Profile of ${profile.username}</h2>
53+
<h4 class="card-title">Private message</h4>
54+
55+
<p class="small">
56+
Send a private message to ${profile.username}
57+
</p>
58+
59+
<div class="form-group">
60+
<label>Subject</label>
61+
<input type="email" class="form-control" placeholder="Message subject">
62+
</div>
63+
<div class="form-group">
64+
<label>Message</label>
65+
<textarea class="form-control" placeholder="Your message" rows="3"></textarea>
66+
</div>
67+
<button class="btn btn-primary btn-block">Send</button>
768
</div>
869
</div>
970
</div>

0 commit comments

Comments
 (0)