Skip to content

Commit 56a368c

Browse files
committed
Add project files.
1 parent 7c0c6fa commit 56a368c

File tree

150 files changed

+49298
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+49298
-0
lines changed

Blog.sln

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.34301.259
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Blog", "Blog\Blog.csproj", "{E065602E-5A1C-4BA4-BB8E-8ECDDA578112}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{E065602E-5A1C-4BA4-BB8E-8ECDDA578112}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{E065602E-5A1C-4BA4-BB8E-8ECDDA578112}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{E065602E-5A1C-4BA4-BB8E-8ECDDA578112}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{E065602E-5A1C-4BA4-BB8E-8ECDDA578112}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {1F069939-1D9A-4729-871F-8E9CDC5F3B3E}
24+
EndGlobalSection
25+
EndGlobal

Blog/App_Start/RouteConfig.cs

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace Blog
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}

Blog/App_Start/Startup1.cs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using Microsoft.Owin;
2+
using Owin;
3+
using System;
4+
using System.Threading.Tasks;
5+
6+
[assembly: OwinStartup(typeof(Blog.App_Start.Startup1))]
7+
8+
namespace Blog.App_Start
9+
{
10+
public class Startup1
11+
{
12+
public void Configuration(IAppBuilder app)
13+
{
14+
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=316888
15+
app.UseCookieAuthentication(new Microsoft.Owin.Security.Cookies.CookieAuthenticationOptions()
16+
{
17+
AuthenticationType = "ApplicationCookie",
18+
LoginPath = new PathString("/Account/Login")
19+
});
20+
}
21+
}
22+
}

Blog/Blog.csproj

+303
Large diffs are not rendered by default.

Blog/Blog.sln

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blog", "Blog.csproj", "{B5811C0C-2B79-4B08-8955-3DEC763FA5A8}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{B5811C0C-2B79-4B08-8955-3DEC763FA5A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{B5811C0C-2B79-4B08-8955-3DEC763FA5A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{B5811C0C-2B79-4B08-8955-3DEC763FA5A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{B5811C0C-2B79-4B08-8955-3DEC763FA5A8}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {B0EF91C7-A6FF-4406-BE18-F2FF90B8A789}
24+
EndGlobalSection
25+
EndGlobal

Blog/Content/PagedList.css

+166
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
.pagination {
2+
display: inline-block;
3+
padding-left: 0;
4+
margin: 20px 0;
5+
border-radius: 4px;
6+
}
7+
8+
.pagination > li {
9+
display: inline;
10+
}
11+
12+
.pagination > li > a,
13+
.pagination > li > span {
14+
position: relative;
15+
float: left;
16+
padding: 6px 12px;
17+
margin-left: -1px;
18+
line-height: 1.428571429;
19+
text-decoration: none;
20+
background-color: #ffffff;
21+
border: 1px solid #dddddd;
22+
}
23+
24+
.pagination > li:first-child > a,
25+
.pagination > li:first-child > span {
26+
margin-left: 0;
27+
border-bottom-left-radius: 4px;
28+
border-top-left-radius: 4px;
29+
}
30+
31+
.pagination > li:last-child > a,
32+
.pagination > li:last-child > span {
33+
border-top-right-radius: 4px;
34+
border-bottom-right-radius: 4px;
35+
}
36+
37+
.pagination > li > a:hover,
38+
.pagination > li > span:hover,
39+
.pagination > li > a:focus,
40+
.pagination > li > span:focus {
41+
background-color: #eeeeee;
42+
}
43+
44+
.pagination > .active > a,
45+
.pagination > .active > span,
46+
.pagination > .active > a:hover,
47+
.pagination > .active > span:hover,
48+
.pagination > .active > a:focus,
49+
.pagination > .active > span:focus {
50+
z-index: 2;
51+
color: #ffffff;
52+
cursor: default;
53+
background-color: #428bca;
54+
border-color: #428bca;
55+
}
56+
57+
.pagination > .disabled > span,
58+
.pagination > .disabled > a,
59+
.pagination > .disabled > a:hover,
60+
.pagination > .disabled > a:focus {
61+
color: #999999;
62+
cursor: not-allowed;
63+
background-color: #ffffff;
64+
border-color: #dddddd;
65+
}
66+
67+
.pagination-lg > li > a,
68+
.pagination-lg > li > span {
69+
padding: 10px 16px;
70+
font-size: 18px;
71+
}
72+
73+
.pagination-lg > li:first-child > a,
74+
.pagination-lg > li:first-child > span {
75+
border-bottom-left-radius: 6px;
76+
border-top-left-radius: 6px;
77+
}
78+
79+
.pagination-lg > li:last-child > a,
80+
.pagination-lg > li:last-child > span {
81+
border-top-right-radius: 6px;
82+
border-bottom-right-radius: 6px;
83+
}
84+
85+
.pagination-sm > li > a,
86+
.pagination-sm > li > span {
87+
padding: 5px 10px;
88+
font-size: 12px;
89+
}
90+
91+
.pagination-sm > li:first-child > a,
92+
.pagination-sm > li:first-child > span {
93+
border-bottom-left-radius: 3px;
94+
border-top-left-radius: 3px;
95+
}
96+
97+
.pagination-sm > li:last-child > a,
98+
.pagination-sm > li:last-child > span {
99+
border-top-right-radius: 3px;
100+
border-bottom-right-radius: 3px;
101+
}
102+
103+
.pager {
104+
padding-left: 0;
105+
margin: 20px 0;
106+
text-align: center;
107+
list-style: none;
108+
}
109+
110+
.pager:before,
111+
.pager:after {
112+
display: table;
113+
content: " ";
114+
}
115+
116+
.pager:after {
117+
clear: both;
118+
}
119+
120+
.pager:before,
121+
.pager:after {
122+
display: table;
123+
content: " ";
124+
}
125+
126+
.pager:after {
127+
clear: both;
128+
}
129+
130+
.pager li {
131+
display: inline;
132+
}
133+
134+
.pager li > a,
135+
.pager li > span {
136+
display: inline-block;
137+
padding: 5px 14px;
138+
background-color: #ffffff;
139+
border: 1px solid #dddddd;
140+
border-radius: 15px;
141+
}
142+
143+
.pager li > a:hover,
144+
.pager li > a:focus {
145+
text-decoration: none;
146+
background-color: #eeeeee;
147+
}
148+
149+
.pager .next > a,
150+
.pager .next > span {
151+
float: right;
152+
}
153+
154+
.pager .previous > a,
155+
.pager .previous > span {
156+
float: left;
157+
}
158+
159+
.pager .disabled > a,
160+
.pager .disabled > a:hover,
161+
.pager .disabled > a:focus,
162+
.pager .disabled > span {
163+
color: #999999;
164+
cursor: not-allowed;
165+
background-color: #ffffff;
166+
}

Blog/Content/Site.css

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
body {
2+
padding-top: 50px;
3+
padding-bottom: 20px;
4+
}
5+
6+
/* Set padding to keep content from hitting the edges */
7+
.body-content {
8+
padding-left: 15px;
9+
padding-right: 15px;
10+
}
11+
12+
/* Set width on the form input elements since they're 100% wide by default */
13+
input,
14+
select,
15+
textarea {
16+
max-width: 280px;
17+
}
18+

0 commit comments

Comments
 (0)