aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-12 11:34:54 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-12 11:34:54 +0000
commit334b34624ed1ad17dd489cc6ff62a4a8cd846940 (patch)
treee3b33c60bf67a99d826b24f0f5d057528a5baa0b /assets
parenta1a604aa6616d4bd9d2562f5c2dae2b6f6ca7b32 (diff)
parent748ccc35882b6ee243e867fa16b91261f8be7922 (diff)
Merge branch 'master' of https://github.com/HumairAK/solutions_repo
Diffstat (limited to 'assets')
-rw-r--r--assets/css/creative.css27
-rw-r--r--assets/css/style.css205
-rw-r--r--assets/js/script.js53
3 files changed, 90 insertions, 195 deletions
diff --git a/assets/css/creative.css b/assets/css/creative.css
index 9ec2c72..76f1049 100644
--- a/assets/css/creative.css
+++ b/assets/css/creative.css
@@ -341,4 +341,31 @@ header .header-content .header-content-inner hr {
margin-top:20px;
}
+/****************************************/
+/* user-profile-nav */
+/* only children of navbar-custom are affected*/
+.navbar-custom{
+ background-color: #ffffff; /* Green */
+ margin: 0 0 3px 0;
+ text-decoration: none;
+ font-size: 1em;
+ -webkit-transition-duration: 0.4s; /* Safari */
+ transition-duration: 0.4s;
+ border-radius: 10px 10px 0px 0px;
+}
+
+.navbar-custom .navbar-toggle{
+ border-color: #ddd;
+}
+.navbar-custom .navbar-toggle .icon-bar{
+ background-color: #888;
+}
+.navbar-custom li a{
+ padding: 12px;
+}
+.navbar-custom .navbar-nav li a:hover {
+ background-color: #d9edf7;
+ color: #3170a6;
+}
+/********************************************/
diff --git a/assets/css/style.css b/assets/css/style.css
index 6eb6a24..4f50205 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -353,205 +353,20 @@ p.solutions-type{
padding-bottom: 15px;
}
-/**********************************************************************************************************************/
-/*THE USER-PROFILE PAGE BEGINS HERE*/
-#user-profile-content{
- flex: 1;
- width: 60%;
- background-color: rgba(235,235,235, 0.6);
-
-}
-
-#user-menu-container{
-
- height: 100%;
-
- /* For column layout remove width below
- and add column class for container*/
- width: 25%;
- float: left;
-}
-
-#user-menu{
- padding: 3%;
- width: 100%;
-}
-
-#user-avatar{
- /* Center image display*/
- display: flex;
- justify-content: center;
- align-content: center;
-
- padding: 3%;
- background-color: white;
- border-radius: 15px;
- height: 200px;
- box-shadow: 7px 5px 10px #b3b3b3;
-
- /* top, right, bot, left */
- margin: 100px 10px 10px 10px;
-}
-#user-avatar img{
- max-width: 100%;
- height: auto;
- /*margin: 3px 3px 20px 3px;*/
-
-}
-#user-photo-edit{
- background-color: white;
- border-radius: 15px;
- height: auto;
- box-shadow: 7px 5px 10px #b3b3b3;
- margin: 10px 10px 10px 10px;
-}
-
-#user-options{
- background-color: white;
- border-radius: 15px;
- box-shadow: 7px 5px 10px #b3b3b3;
- margin: 10px 10px 10px 10px;
-}
-
-#user-info-container{
- display: flex;
- justify-content: center;
- align-content: center;
-
- /* For column layout remove width below
- and add column class for container*/
- width: 75%;
- float: left;
-}
-
-#user-info{
- background-color: white;
- border-radius: 15px;
- height: auto;
- width: 100%;
- box-shadow: 7px 5px 10px #b3b3b3;
-
- /* top, right, bot, left */
- margin: 110px 20px 20px 15px;
-
-}
-#user-info #user-name h1{
- padding: 20px;
- text-align: left;
- margin: 0;
- color: white;
- font-size: 1.5em;
+/********** user-profile styles **********/
+.user-info-content{
+ padding-top: 100px;
}
-
-#user-name{
- height: auto;
- width: 100%;
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- background-color: #73a195;
-}
-#user-content{
- min-height: 400px;
- text-align: left;
-
+.user-info-content img{
+ max-width: 100px;
}
-#user-content h2{
- margin: 0;
+.user-info-content p{
color: gray;
- padding: 10px 10px 10px 10px;
-
-}
-#user-content p{
- padding: 0 10px 10px 50px;
- display: block;
- word-wrap: break-word;
-}
-
-#user-content em{
- font-weight: bolder;
- font-style: normal;
-}
-#user-content span{
- padding-left: 10px;
-}
-
-/* Button styles*/
-
-
-[class^="menu-button"]{
- background-color: #ffffff; /* Green */
- width: 100%;
- border: none;
- color: #a4a4a4;
- padding: 15px 32px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- cursor: pointer;
- -webkit-transition-duration: 0.4s; /* Safari */
- transition-duration: 0.4s;
-
- border: solid #cfcfcf 1px;
-}
-
-[class^="menu-button"]:hover {
- background-color: #73a195;
- color: white;
-}
-
-.menu-button-first{
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- margin-top: 0;
-}
-.menu-button-last{
- border-bottom-left-radius: 10px;
- border-bottom-right-radius: 10px;
- margin-bottom: 0;
}
-
-
-.edit-button {
- display: inline-block;
- border-radius: 4px;
- background-color: #ffffff;
- border: none;
- color: #979797;
- text-align: center;
- font-size: 1em;
- padding: 10px;
- width: auto;
- transition: all 0.5s;
- cursor: pointer;
+.prf-sign-off{
margin: 15px;
- border: solid #c7c7c7 3px;
- border-radius: 15px;
-}
-
-.edit-button span {
- cursor: pointer;
- display: inline-block;
- position: relative;
- transition: 0.5s;
-}
-
-.edit-button span:after {
- content: 'ยป';
- position: absolute;
- opacity: 0;
- top: 0;
- right: -20px;
- transition: 0.5s;
}
-
-.edit-button:hover span {
- padding-right: 25px;
-}
-
-.edit-button:hover span:after {
- opacity: 1;
- right: 0;
+.prf-tables{
+ text-align: left;
}
-
-/********** !user-profile *********/ \ No newline at end of file
+/********** !user-profile styles *********/
diff --git a/assets/js/script.js b/assets/js/script.js
new file mode 100644
index 0000000..f73d7f0
--- /dev/null
+++ b/assets/js/script.js
@@ -0,0 +1,53 @@
+function main(){
+
+
+ // User-profile dynamic paging
+ var items = [
+ $("#profile-general"),
+ $("#profile-follows"),
+ $("#profile-friends"),
+ $("#profile-inbox"),
+ $("#profile-comments")];
+
+ function hidePages(){
+ items.forEach(function(item){
+ item.hide();
+ });
+ }
+
+ // Hide all pages at load
+ hidePages();
+
+ // Show General page
+ items[0].show();
+
+ $('.prf-page').bind('click', function(e){
+
+ e.preventDefault();
+ hidePages();
+
+ /* Each case will need to be changed to call a handler for fetching data
+ * from server*/
+ switch($(this).text()) {
+ case "General":
+ $("#profile-general").show();
+ break;
+ case "Follows":
+ $("#profile-follows").show();
+ break;
+ case "Friends":
+ $("#profile-friends").show();
+ break;
+ case "Inbox":
+ $("#profile-inbox").show();
+ break;
+ case "Comments":
+ $("#profile-comments").show();
+ break;
+ default:
+ console.log("Error: User page not found");
+ }
+ });
+
+}
+$(document).ready(main); \ No newline at end of file