move content and symlink

This commit is contained in:
unknown
2015-03-28 08:26:47 -04:00
parent e7b205ef3b
commit 24ce3861b2
7 changed files with 21 additions and 63 deletions

View File

@@ -1,48 +0,0 @@
.profile {
background-position: center 0px;
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, 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 white;
}
.profile .user-info .info {
padding: 46px 0 0 16px;
font-family: "ProximaNova", Helvetica Neue, Helvetica;
color: white;
display: inline-block;
}
/*# sourceMappingURL=jquery.UntappedWidget.css.map */

View File

@@ -1 +0,0 @@
{"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"}

View File

@@ -1,61 +0,0 @@
@background-main: #FFCC00;
@background-social: rgba(0, 0, 0, 0.6);
@border: white;
@font: "ProximaNova", Helvetica Neue, Helvetica;
@fontColor: white;
.profile {
background-position: center -0px;
background-repeat: no-repeat;
height: 240px;
max-width: 1024px;
position: relative;
.badges {
margin-right: 3px;
img {
width: 52px;
height: 52px;
border-radius: 27px;
}
}
.stats-bar {
position: absolute;
bottom: 0;
left: 0;
right: 0;
width: 100%;
background-color: rgba(0, 0, 0, 0.6);
height: 52px;
}
.user-info {
position: absolute;
left: 20px;
bottom: 55px;
z-index: 2;
.user-avatar {
display: inline-block;
vertical-align: top;
}
.avatar-holder {
overflow: hidden;
border-radius: 64px;
width: 124px;
height: 124px;
border: 4px solid @border;
}
.info {
padding: 46px 0 0 16px;
font-family: @font;
color: @fontColor;
display: inline-block;
}
}
}

View File

@@ -1 +0,0 @@
.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}

View File

@@ -1,42 +0,0 @@
(function ($) {
//I would love to use handlebars, but I am trying to limit the required packages
var buildProfileTemplate = function (data, badges) {
return "<div class=\"profile\" style=\"background-image: Url(" + data.headerBackgroundUrl + ")\"><div class=\"user-info\">\
<div class=\"user-avatar\">\
<div class=\"avatar-holder\">\
<img src=\""+ data.avatarUrl + "\" alt=\"User Avatar\" />\
</div>\
</div>\
<div class=\"info\">\
<h1>"+ data.info + "</h1>\
<span class=\"username\">"+ data.username + "</span>\
</div>\
</div>\
<div class=\"stats-bar\">\
<span class=\"badges\">"+ badges + "\
</span>\
</div>\
</div>";
}
var buildBadges = function (data) {
var badges = "";
$.each(data.badges, function (index, value) {
badges = badges + "<a href=\"" + value.linkUrl + "\" ><span><img src=\"" + value.imageUrl + "\" /></span></a>";
});
return badges;
}
$.fn.untappd = function (username) {
this.each(function () {
var that = this;
$.get("http://untappdwidget.azurewebsites.net/" + username, function(data) { $(that).html(buildProfileTemplate(data, buildBadges(data))); }, "jsonp");
});
};
})(jQuery);

View File

@@ -80,16 +80,13 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Content Include="..\..\jquery.UntappedWidget.js">
<Link>Scripts\jquery.UntappedWidget.js</Link>
</Content>
<Content Include="Content\bootstrap-theme.css" />
<Content Include="Content\bootstrap-theme.min.css" />
<Content Include="Content\bootstrap.css" />
<Content Include="Content\bootstrap.min.css" />
<Content Include="Content\jquery.UntappedWidget.css">
<DependentUpon>jquery.UntappedWidget.less</DependentUpon>
</Content>
<Content Include="Content\jquery.UntappedWidget.min.css">
<DependentUpon>jquery.UntappedWidget.css</DependentUpon>
</Content>
<Content Include="Content\Site.css" />
<Content Include="fonts\glyphicons-halflings-regular.svg" />
<Content Include="fonts\glyphicons-halflings-regular.woff2" />
@@ -98,15 +95,15 @@
<Content Include="fonts\glyphicons-halflings-regular.eot" />
<Content Include="Content\bootstrap-theme.css.map" />
<Content Include="Content\bootstrap.css.map" />
<Content Include="Content\jquery.UntappedWidget.css.map">
<DependentUpon>jquery.UntappedWidget.css</DependentUpon>
<Content Include="..\..\jquery.UntappedWidget.less">
<Link>Content\jquery.UntappedWidget.less</Link>
</Content>
<None Include="Properties\PublishProfiles\f.pubxml" />
<None Include="Scripts\jquery-1.9.1.intellisense.js" />
<Content Include="Scripts\bootstrap.js" />
<Content Include="Scripts\bootstrap.min.js" />
<Content Include="Scripts\jquery-1.9.1.js" />
<Content Include="Scripts\jquery-1.9.1.min.js" />
<Content Include="Scripts\jquery.UntappedWidget.js" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
@@ -119,7 +116,6 @@
<Content Include="Views\Index\Index.cshtml" />
<Content Include="packages.config" />
<Content Include="Views\Index\Badge.cshtml" />
<Content Include="Content\jquery.UntappedWidget.less" />
<Content Include="Views\Shared\_Layout.cshtml" />
<Content Include="Scripts\jquery-1.9.1.min.map" />
<Content Include="Views\Index\Profile.cshtml" />
@@ -169,10 +165,14 @@ xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.1.1\BuildProvider
xcopy /s /y /R "$(SolutionDir)packages\Nancy.Viewengines.Razor.1.1\lib\Net40\Nancy.ViewEngines.Razor.dll" "$(ProjectDir)bin\"
)</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<!--
<Target Name="BeforeBuild">
<ItemGroup>
<Content Include="..\..\jquery.UntappedWidget.js" />
</ItemGroup>
</Target>
To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="AfterBuild">
</Target>
-->