Contact page
authorRafał Długołęcki <dlugolecki.rafal@gmail.com>
Thu, 11 Feb 2016 23:53:57 +0000 (00:53 +0100)
committerRafał Długołęcki <dlugolecki.rafal@gmail.com>
Thu, 11 Feb 2016 23:53:57 +0000 (00:53 +0100)
Projects/Controllers/HomeController.cs
Projects/Projects.csproj
Projects/Views/Home/About.cshtml [deleted file]
Projects/Views/Home/Contact.cshtml
Projects/Views/Shared/_Layout.cshtml

index 3f1f379839427ecf36ec15a21364e6310fbbd059..c5d394a44686af0865849f1c343c3a01b181f012 100644 (file)
@@ -13,13 +13,6 @@ namespace Projects.Controllers
             return View();
         }
 
-        public ActionResult About()
-        {
-            ViewBag.Message = "Your application description page.";
-
-            return View();
-        }
-
         public ActionResult Contact()
         {
             ViewBag.Message = "Your contact page.";
index 2475c622bdb6e7824291ed27cc764711a3815db8..50a07979e42ed8a097d3b3738dacc72dc7408cfc 100644 (file)
     <Content Include="Views\_ViewStart.cshtml" />
     <Content Include="Views\Shared\Error.cshtml" />
     <Content Include="Views\Shared\_Layout.cshtml" />
-    <Content Include="Views\Home\About.cshtml" />
     <Content Include="Views\Home\Contact.cshtml" />
     <Content Include="Views\Home\Index.cshtml" />
     <Content Include="Views\Account\_ExternalLoginsListPartial.cshtml" />
diff --git a/Projects/Views/Home/About.cshtml b/Projects/Views/Home/About.cshtml
deleted file mode 100644 (file)
index 4b2d9e8..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-@{
-    ViewBag.Title = "About";
-}
-<h2>@ViewBag.Title.</h2>
-<h3>@ViewBag.Message</h3>
-
-<p>Use this area to provide additional information.</p>
index 0f4327e7f1fb1aea19027c2228120e104aaa56d9..918511f01e2fcdd46d5c97323158dbb996c81c6f 100644 (file)
@@ -1,17 +1,39 @@
 @{
-    ViewBag.Title = "Contact";
+    ViewBag.Title = "Kontakt";
 }
 <h2>@ViewBag.Title.</h2>
-<h3>@ViewBag.Message</h3>
+<h3>Skontaktuj się ze mną!</h3>
 
-<address>
-    One Microsoft Way<br />
-    Redmond, WA 98052-6399<br />
-    <abbr title="Phone">P:</abbr>
-    425.555.0100
-</address>
+<form>
+    <address>
+        <strong>Email:</strong> <a href="mailto:kontakt@dlugolecki.net.pl">kontakt@dlugolecki.net.pl</a>
+    </address>
 
-<address>
-    <strong>Support:</strong>   <a href="mailto:Support@example.com">Support@example.com</a><br />
-    <strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
-</address>
\ No newline at end of file
+    <address>
+        Rafał Długołęcki<br />
+        ABCDEFGHIJ 1/2<br />
+        Warszawa
+    </address>
+
+    <div class="form-horizontal">
+        <div class="form-group">
+            <label class="control-label col-md-2" for="email">Twój adres email</label>
+            <div class="col-md-10">
+                <input class="form-control text-box single-line" id="email" name="email" type="email" value="" />
+            </div>
+        </div>
+        <div class="form-group">
+            <label class="control-label col-md-2" for="message">Wiadomość</label>
+            <div class="col-md-10">
+                <textarea class="form-control text-box multi-line" id="message" name="message"></textarea>
+            </div>
+        </div>
+
+        <div class="form-group">
+            <div class="col-md-offset-2 col-md-10">
+                <input type="submit" value="Wyślij" class="btn btn-default" />
+            </div>
+        </div>
+
+    </div>
+</form>
\ No newline at end of file
index 8d5369176e2578a4ca5bfb220f570141f0e3c5ae..2bef80412b7d8ccfaba958c8fa0ca9bd2191bbf5 100644 (file)
@@ -3,7 +3,7 @@
 <head>
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>@ViewBag.Title - My ASP.NET Application</title>
+    <title>@ViewBag.Title - Projects by Rafał Długołęcki</title>
     @Styles.Render("~/Content/css")
     @Scripts.Render("~/bundles/modernizr")
 
                     <span class="icon-bar"></span>
                     <span class="icon-bar"></span>
                 </button>
-                @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
+                @Html.ActionLink("Projects", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
             </div>
             <div class="navbar-collapse collapse">
                 <ul class="nav navbar-nav">
                     <li>@Html.ActionLink("Home", "Index", "Home")</li>
-                    <li>@Html.ActionLink("About", "About", "Home")</li>
                     <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
                     <li>@Html.ActionLink("List of Projects", "Index", "Projects")</li>
                     <li>@Html.ActionLink("List of Tasks", "Index", "ProjectTasks")</li>
@@ -35,7 +34,7 @@
         @RenderBody()
         <hr />
         <footer>
-            <p>&copy; @DateTime.Now.Year - My ASP.NET Application</p>
+            <p>&copy; @DateTime.Now.Year - Rafał Długołęcki</p>
         </footer>
     </div>