remove github on mobile
This commit is contained in:
@@ -171,6 +171,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="Modules\Index.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Settings.cs" />
|
||||
<Compile Include="Startup.cs" />
|
||||
<Compile Include="AppStart\Bootstrap.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
25
src/AboutMe.Web/Settings.cs
Normal file
25
src/AboutMe.Web/Settings.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace AboutMe.Web
|
||||
{
|
||||
public static class Settings
|
||||
{
|
||||
public static IEnumerable<string> Phones = new[] {"iphone","ppc",
|
||||
"windows ce","blackberry",
|
||||
"opera mini","mobile","palm",
|
||||
"portable","opera mobi", "android" };
|
||||
|
||||
public static bool IsMobile(string userAgent)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(userAgent))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var agent = userAgent.ToLower();
|
||||
return Phones.Any(x => agent.Contains(x));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,9 +2,9 @@
|
||||
<div class="section-inner">
|
||||
<h2 class="heading">About Me</h2>
|
||||
<div class="content">
|
||||
<p>Sysadmin turned Software Engineer. I love to solve huge web problems. I love .NET, but I am open to using any language/technology. I really enjoy working with cloud technologies, and utilizing the latest Continous Intergration techniques</p>
|
||||
<p>Sysadmin turned Software Engineer. I love solving huge web problems. I love C#, but I am open to using any language/technology. I really enjoy working with cloud technologies, and utilizing the latest Continuous Integration techniques</p>
|
||||
|
||||
<p>On my free time I like to play guitar, and tinker with cloud providers</p>
|
||||
<p>On my free time I like to play guitar, and tinker with various cloud technologies</p>
|
||||
</div><!--//content-->
|
||||
</div><!--//section-inner-->
|
||||
</section><!--//section-->
|
||||
@@ -1,4 +1,7 @@
|
||||
@{
|
||||
@using System.Globalization
|
||||
@using System.Linq
|
||||
@using AboutMe.Web
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@@ -70,14 +73,20 @@
|
||||
</div><!--//content-->
|
||||
</div><!--//section-inner-->
|
||||
</section><!--//section-->
|
||||
|
||||
@if (!Settings.IsMobile(Request.Headers.UserAgent))
|
||||
{
|
||||
<section class="github section">
|
||||
<div class="section-inner">
|
||||
<div id="ghfeed" class="ghfeed">
|
||||
</div><!--//ghfeed-->
|
||||
</div><!--//secton-inner-->
|
||||
</section><!--//section-->
|
||||
}
|
||||
|
||||
</div><!--//primary-->
|
||||
@Html.Partial("RightPane")
|
||||
|
||||
</div><!--//row-->
|
||||
</div><!--//masonry-->
|
||||
<!-- ******FOOTER****** -->
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<h2 class="heading">Skills</h2>
|
||||
<div class="content">
|
||||
<p class="intro">
|
||||
I am heavily versed in .NET technologies, but that does not mean I cannot work with others. I love JavaScript (and node.js), I can use Ruby, and Dart. I am quick to pick up technologies quick.
|
||||
I am heavily versed in .NET technologies, but that does not mean I cannot work with others. I love JavaScript (including node.js), I can use Ruby, and Dart. I am quick to pick up technologies quick.
|
||||
</p>
|
||||
|
||||
<div class="skillset">
|
||||
|
||||
Reference in New Issue
Block a user