Skip to content

Commit 802b8c4

Browse files
committed
Change css
1 parent c562876 commit 802b8c4

18 files changed

+102
-5
lines changed

EPAM.MyBlog.UI.Web/Content/css/style.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,18 @@ a img {
8181

8282
.text-box{
8383
width:250px;
84+
}
85+
86+
p {
87+
font-family: 'Century Gothic', futura, 'URW Gothic L', Verdana, sans-serif;
88+
font-size: 16px;
89+
}
90+
91+
.username {
92+
font-family: Georgia, 'Times New Roman', Times, serif;
93+
font-size: 26px;
94+
}
95+
96+
.title-top{
97+
margin-top:20px;
8498
}

EPAM.MyBlog.UI.Web/Controllers/AccountController.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,14 @@ public ActionResult DeleteAc(ConfirmModel model)
164164

165165
return View();
166166
}
167+
168+
169+
[AllowAnonymous]
170+
[ChildActionOnly]
171+
public ActionResult Avatar()
172+
{
173+
174+
return PartialView();
175+
}
167176
}
168177
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
7+
namespace EPAM.MyBlog.UI.Web.Controllers
8+
{
9+
public class FilesController : Controller
10+
{
11+
//
12+
// GET: /Files/
13+
14+
public ActionResult Index()
15+
{
16+
return View();
17+
}
18+
19+
public ActionResult UploadAvatar(HttpPostedFile file)
20+
{
21+
return RedirectToAction("Index");
22+
}
23+
}
24+
}

EPAM.MyBlog.UI.Web/EPAM.MyBlog.UI.Web.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,17 @@
113113
<Compile Include="Controllers\AccountController.cs" />
114114
<Compile Include="Controllers\AdminController.cs" />
115115
<Compile Include="Controllers\CommentController.cs" />
116+
<Compile Include="Controllers\FilesController.cs" />
116117
<Compile Include="Controllers\HomeController.cs" />
117118
<Compile Include="Controllers\PostController.cs" />
118119
<Compile Include="GetDAL.cs" />
119120
<Compile Include="Global.asax.cs">
120121
<DependentUpon>Global.asax</DependentUpon>
121122
</Compile>
123+
<Compile Include="Models\AvatarModel.cs" />
122124
<Compile Include="Models\CommentModel.cs" />
123125
<Compile Include="Models\ConfirmModel.cs" />
126+
<Compile Include="Models\FileWorker.cs" />
124127
<Compile Include="Models\MyRoleProvider.cs" />
125128
<Compile Include="Models\PostModel.cs" />
126129
<Compile Include="Models\PresentPostModel.cs" />

EPAM.MyBlog.UI.Web/Logs/Debug/2015.01.02.log

Whitespace-only changes.

EPAM.MyBlog.UI.Web/Logs/Debug/2015.01.03.log

Whitespace-only changes.

EPAM.MyBlog.UI.Web/Logs/Errors/2015.01.02.log

Whitespace-only changes.

EPAM.MyBlog.UI.Web/Logs/Errors/2015.01.03.log

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
6+
namespace EPAM.MyBlog.UI.Web.Models
7+
{
8+
public class AvatarModel
9+
{
10+
11+
}
12+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Web;
7+
8+
namespace EPAM.MyBlog.UI.Web.Models
9+
{
10+
public class FileWorker
11+
{
12+
public void Upload(HttpPostedFile file, string name)
13+
{
14+
//string path = @"~\" + name + @"\";
15+
//if(!Directory.Exists(path))
16+
//{
17+
// Directory.CreateDirectory(path);
18+
//}
19+
//path += @"myAvatar";
20+
//if(File.Exists(path))
21+
//{
22+
// File.Delete(path);
23+
//}
24+
//file.SaveAs(path);
25+
}
26+
}
27+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@if (User.Identity != null && User.Identity.IsAuthenticated)
22
{
3-
<h2>#Blog: @User.Identity.Name.ToString() </h2>
3+
<div class="username">#Blog: @User.Identity.Name.ToString() </div>
44
}
55
else
66
{
7-
<h1>#Blog</h1>
7+
<div class="username">#Blog</div>
88
}

EPAM.MyBlog.UI.Web/Views/Home/Index.cshtml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@
44

55
@if (User.Identity != null && User.Identity.IsAuthenticated)
66
{
7-
<h1>Авторизация успешно пройдена </h1>
7+
<div class="row">
8+
<div class="col-lg-8 col-md-8 col-sm-8 col-md-offset-2 col-lg-offset-2 col-sm-offset-2 title-top">
9+
<p>Авторизация успешно пройдена </p>
10+
</div>
11+
</div>
812
}
913

1014
else
1115
{
12-
<h1>Добро пожаловать в #Blog</h1>
13-
<h2> Здесь вы можете завести свой блог и делится интересными новостями</h2>
16+
<div class="row">
17+
<div class="col-lg-8 col-md-8 col-sm-8 col-md-offset-2 col-lg-offset-2 col-sm-offset-2 title-top">
18+
<p>Добро пожаловать в #Blog</p>
19+
<p>Здесь вы можете завести свой блог и делится интересными новостями</p>
20+
</div>
21+
</div>
1422
}
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

EPAM.MyBlog.v11.suo

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)