diff --git a/src/AboutMe.Web/AboutMe.Web.csproj b/src/AboutMe.Web/AboutMe.Web.csproj index 651c8ca..7ae3f54 100644 --- a/src/AboutMe.Web/AboutMe.Web.csproj +++ b/src/AboutMe.Web/AboutMe.Web.csproj @@ -171,6 +171,7 @@ + diff --git a/src/AboutMe.Web/Settings.cs b/src/AboutMe.Web/Settings.cs new file mode 100644 index 0000000..613fc6c --- /dev/null +++ b/src/AboutMe.Web/Settings.cs @@ -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 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)); + } + } +} \ No newline at end of file diff --git a/src/AboutMe.Web/Views/Index/AboutMe.cshtml b/src/AboutMe.Web/Views/Index/AboutMe.cshtml index 6084e23..b398117 100644 --- a/src/AboutMe.Web/Views/Index/AboutMe.cshtml +++ b/src/AboutMe.Web/Views/Index/AboutMe.cshtml @@ -2,9 +2,9 @@

About Me

-

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

+

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

-

On my free time I like to play guitar, and tinker with cloud providers

+

On my free time I like to play guitar, and tinker with various cloud technologies

\ No newline at end of file diff --git a/src/AboutMe.Web/Views/Index/Index.cshtml b/src/AboutMe.Web/Views/Index/Index.cshtml index 392060e..89f6342 100644 --- a/src/AboutMe.Web/Views/Index/Index.cshtml +++ b/src/AboutMe.Web/Views/Index/Index.cshtml @@ -1,4 +1,7 @@ -@{ +@using System.Globalization +@using System.Linq +@using AboutMe.Web +@{ Layout = null; } @@ -70,14 +73,20 @@ + + @if (!Settings.IsMobile(Request.Headers.UserAgent)) + {
+ } + @Html.Partial("RightPane") + diff --git a/src/AboutMe.Web/Views/Index/RightPane.cshtml b/src/AboutMe.Web/Views/Index/RightPane.cshtml index 7c16cce..aa58af7 100644 --- a/src/AboutMe.Web/Views/Index/RightPane.cshtml +++ b/src/AboutMe.Web/Views/Index/RightPane.cshtml @@ -17,7 +17,7 @@

Skills

- 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.