randomize and limit badges
This commit is contained in:
@@ -5,6 +5,9 @@
|
|||||||
max-width: 1024px;
|
max-width: 1024px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
.profile .badges {
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
.profile .badges img {
|
.profile .badges img {
|
||||||
width: 52px;
|
width: 52px;
|
||||||
height: 52px;
|
height: 52px;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["jquery.UntappedWidget.less"],"names":[],"mappings":"AAOA;EACI,+BAAA;EACA,4BAAA;EACA,aAAA;EACA,iBAAA;EACA,kBAAA;;AALJ,QAOI,QAEI;EACI,WAAA;EACA,YAAA;EACA,mBAAA;;AAZZ,QAiBI;EACI,kBAAA;EACA,SAAA;EACA,OAAA;EACA,QAAA;EACA,WAAA;EACA,oCAAA;EACA,YAAA;;AAxBR,QA2BI;EACI,kBAAA;EACA,UAAA;EACA,YAAA;EACA,UAAA;;AA/BR,QA2BI,WAMI;EACI,qBAAA;EACA,mBAAA;;AAnCZ,QA2BI,WAWI;EACI,gBAAA;EACA,mBAAA;EACA,YAAA;EACA,aAAA;EACA,uBAAA;;AA3CZ,QA2BI,WAmBI;EACI,sBAAA;EACA,aApDL,wCAoDK;EACA,YAAA;EACA,qBAAA","file":"jquery.UntappedWidget.css"}
|
{"version":3,"sources":["jquery.UntappedWidget.less"],"names":[],"mappings":"AAOA;EACI,+BAAA;EACA,4BAAA;EACA,aAAA;EACA,iBAAA;EACA,kBAAA;;AALJ,QAOI;EACI,iBAAA;;AARR,QAOI,QAEI;EACI,WAAA;EACA,YAAA;EACA,mBAAA;;AAZZ,QAiBI;EACI,kBAAA;EACA,SAAA;EACA,OAAA;EACA,QAAA;EACA,WAAA;EACA,oCAAA;EACA,YAAA;;AAxBR,QA2BI;EACI,kBAAA;EACA,UAAA;EACA,YAAA;EACA,UAAA;;AA/BR,QA2BI,WAMI;EACI,qBAAA;EACA,mBAAA;;AAnCZ,QA2BI,WAWI;EACI,gBAAA;EACA,mBAAA;EACA,YAAA;EACA,aAAA;EACA,uBAAA;;AA3CZ,QA2BI,WAmBI;EACI,sBAAA;EACA,aApDL,wCAoDK;EACA,YAAA;EACA,qBAAA","file":"jquery.UntappedWidget.css"}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.badges {
|
.badges {
|
||||||
|
margin-right: 3px;
|
||||||
img{
|
img{
|
||||||
width: 52px;
|
width: 52px;
|
||||||
height: 52px;
|
height: 52px;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
.profile{background-position:center 0;background-repeat:no-repeat;height:240px;max-width:1024px;position:relative}.profile .badges img{width:52px;height:52px;border-radius:27px}.profile .stats-bar{position:absolute;bottom:0;left:0;right:0;width:100%;background-color:rgba(0,0,0,.6);height:52px}.profile .user-info{position:absolute;left:20px;bottom:55px;z-index:2}.profile .user-info .user-avatar{display:inline-block;vertical-align:top}.profile .user-info .avatar-holder{overflow:hidden;border-radius:64px;width:124px;height:124px;border:4px solid #fff}.profile .user-info .info{padding:46px 0 0 16px;font-family:"ProximaNova",Helvetica Neue,Helvetica;color:#fff;display:inline-block}
|
.profile{background-position:center 0;background-repeat:no-repeat;height:240px;max-width:1024px;position:relative}.profile .badges{margin-right:3px}.profile .badges img{width:52px;height:52px;border-radius:27px}.profile .stats-bar{position:absolute;bottom:0;left:0;right:0;width:100%;background-color:rgba(0,0,0,.6);height:52px}.profile .user-info{position:absolute;left:20px;bottom:55px;z-index:2}.profile .user-info .user-avatar{display:inline-block;vertical-align:top}.profile .user-info .avatar-holder{overflow:hidden;border-radius:64px;width:124px;height:124px;border:4px solid #fff}.profile .user-info .info{padding:46px 0 0 16px;font-family:"ProximaNova",Helvetica Neue,Helvetica;color:#fff;display:inline-block}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using CsQuery;
|
using CsQuery;
|
||||||
using UntappedWidgetGenerator.Interface;
|
using UntappedWidgetGenerator.Interface;
|
||||||
using UntappedWidgetGenerator.Model;
|
using UntappedWidgetGenerator.Model;
|
||||||
@@ -37,7 +38,7 @@ namespace UntappedWidgetGenerator
|
|||||||
dom[".profile_header"].Css("background-image").ToLower().TrimStart("url".ToCharArray()).TrimStart('(').TrimEnd(')').Trim('\''),
|
dom[".profile_header"].Css("background-image").ToLower().TrimStart("url".ToCharArray()).TrimStart('(').TrimEnd(')').Trim('\''),
|
||||||
Info = dom[".info h1"].Text(),
|
Info = dom[".info h1"].Text(),
|
||||||
Username = dom[".username"].Text(),
|
Username = dom[".username"].Text(),
|
||||||
Badges = badges
|
Badges = badges.OrderBy(a=>Guid.NewGuid()).Take(17).ToList()
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user