diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Catalog.WebForms.csproj b/src/Web/Catalog.WebForms/Catalog.WebForms/Catalog.WebForms.csproj index 391983c31..7a3595f36 100644 --- a/src/Web/Catalog.WebForms/Catalog.WebForms/Catalog.WebForms.csproj +++ b/src/Web/Catalog.WebForms/Catalog.WebForms/Catalog.WebForms.csproj @@ -131,8 +131,11 @@ + + + diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Content/app.component.css b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/app.component.css new file mode 100644 index 000000000..f56ff7d3b --- /dev/null +++ b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/app.component.css @@ -0,0 +1,20 @@ +.esh-app-footer { + background-color: #000000; + border-top: 1px solid #EEEEEE; + margin-top: 2.5rem; + padding-bottom: 2.5rem; + padding-top: 2.5rem; + width: 100%; +} + +.esh-app-footer-brand { + height: 50px; + width: 230px; +} + +.esh-app-footer-text { + color: #83D01B; + line-height: 50px; + text-align: right; + width: 100%; +} diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Content/brand.png b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/brand.png new file mode 100644 index 000000000..2afd3dccf Binary files /dev/null and b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/brand.png differ diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Content/brand_dark.png b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/brand_dark.png new file mode 100644 index 000000000..44a65364f Binary files /dev/null and b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/brand_dark.png differ diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Content/catalog.component.css b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/catalog.component.css new file mode 100644 index 000000000..39ba1cc43 --- /dev/null +++ b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/catalog.component.css @@ -0,0 +1,156 @@ +.esh-catalog-hero { + background-image: url("../Content/main_banner.png"); + background-size: cover; + height: 260px; + width: 100%; +} + +.esh-catalog-title { + position: relative; + top: 74.28571px; +} + +/* +.esh-catalog-filters { + background-color: #00A69C; + height: 65px; +} + +.esh-catalog-filter { + background-color: transparent; + border-color: #00d9cc; + color: #FFFFFF; + cursor: pointer; + margin-right: 1rem; + margin-top: .5rem; + outline-color: #83D01B; + padding-bottom: 0; + padding-left: 0.5rem; + padding-right: 0.5rem; + padding-top: 1.5rem; + min-width: 140px; + -webkit-appearance: none; +} + + .esh-catalog-filter option { + background-color: #00A69C; + } + +.esh-catalog-label { + display: inline-block; + position: relative; + z-index: 0; +} + + .esh-catalog-label::before { + color: rgba(255, 255, 255, 0.5); + content: attr(data-title); + font-size: 0.65rem; + margin-top: 0.65rem; + margin-left: 0.5rem; + position: absolute; + text-transform: uppercase; + z-index: 1; + } + + .esh-catalog-label::after { + background-image: url("../../images/arrow-down.png"); + height: 7px; + content: ''; + position: absolute; + right: 1.5rem; + top: 2.5rem; + width: 10px; + z-index: 1; + } + +.esh-catalog-send { + background-color: #83D01B; + color: #FFFFFF; + cursor: pointer; + font-size: 1rem; + transform: translateY(.5rem); + padding: 0.5rem; + transition: all 0.35s; +} + + .esh-catalog-send:hover { + background-color: #4a760f; + transition: all 0.35s; + } + +.esh-catalog-items { + margin-top: 1rem; +} + +.esh-catalog-item { + text-align: center; + margin-bottom: 1.5rem; + width: 33%; + display: inline-block; + float: none !important; +} + +@media screen and (max-width: 1024px) { + .esh-catalog-item { + width: 50%; + } +} + +@media screen and (max-width: 768px) { + .esh-catalog-item { + width: 100%; + } +} + + */ + +.esh-catalog-thumbnail { + max-width: 370px; + width: 100%; +} + +/* +.esh-catalog-button { + background-color: #83D01B; + border: none; + color: #FFFFFF; + cursor: pointer; + font-size: 1rem; + height: 3rem; + margin-top: 1rem; + transition: all 0.35s; + width: 80%; +} + + .esh-catalog-button.is-disabled { + opacity: .5; + pointer-events: none; + } + + .esh-catalog-button:hover { + background-color: #4a760f; + transition: all 0.35s; + } + */ + +.esh-catalog-name { + font-size: 1rem; + font-weight: 300; + margin-top: .5rem; + text-align: center; + text-transform: uppercase; +} + +.esh-catalog-price { + text-align: center; + font-weight: 900; + font-size: 28px; +} + +/* + .esh-catalog-price::before { + content: '$'; + } + +*/ \ No newline at end of file diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Content/main_banner.png b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/main_banner.png new file mode 100644 index 000000000..0f345a385 Binary files /dev/null and b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/main_banner.png differ diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Content/main_banner_text.png b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/main_banner_text.png new file mode 100644 index 000000000..47315ef58 Binary files /dev/null and b/src/Web/Catalog.WebForms/Catalog.WebForms/Content/main_banner_text.png differ diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Default.aspx b/src/Web/Catalog.WebForms/Catalog.WebForms/Default.aspx new file mode 100644 index 000000000..885422edc --- /dev/null +++ b/src/Web/Catalog.WebForms/Catalog.WebForms/Default.aspx @@ -0,0 +1,87 @@ +<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.eShopOnContainers.Catalog.WebForms._Default" Async="true" %> + + +
+
+ +
+
+ +
+ + + + + + +
Well, there's nothing in the catalog.
+
+ + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + <%#:Item.Name%> + + +
+ + Price: <%#:String.Format("{0:c}", Item.Price)%> + +
+
 
+ +
+ + + + + + + + + + + +
+ + +
+
+
+
+ + + + + +
+
diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Default.aspx.designer.cs b/src/Web/Catalog.WebForms/Catalog.WebForms/Default.aspx.designer.cs new file mode 100644 index 000000000..869c02f10 --- /dev/null +++ b/src/Web/Catalog.WebForms/Catalog.WebForms/Default.aspx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Microsoft.eShopOnContainers.Catalog.WebForms { + + + public partial class _Default { + + /// + /// catalogList control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ListView catalogList; + + /// + /// DataPager1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DataPager DataPager1; + } +} diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Modules/AutoFacHttpModule.cs b/src/Web/Catalog.WebForms/Catalog.WebForms/Modules/AutoFacHttpModule.cs index dae6493dc..78314fa94 100644 --- a/src/Web/Catalog.WebForms/Catalog.WebForms/Modules/AutoFacHttpModule.cs +++ b/src/Web/Catalog.WebForms/Catalog.WebForms/Modules/AutoFacHttpModule.cs @@ -15,9 +15,9 @@ namespace Microsoft.eShopOnContainers.Catalog.WebForms.Modules public class AutoFacHttpModule : IHttpModule { - private static IContainer Container => lazyContainer.Value; + private IContainer Container => lazyContainer.Value; - private static Lazy lazyContainer = new Lazy(() => CreateContainer()); + private Lazy lazyContainer = new Lazy(() => CreateContainer()); private static IContainer CreateContainer() { @@ -44,6 +44,7 @@ namespace Microsoft.eShopOnContainers.Catalog.WebForms.Modules public void Dispose() { Container.Dispose(); + } public void Init(HttpApplication context) diff --git a/src/Web/Catalog.WebForms/Catalog.WebForms/Site.Master b/src/Web/Catalog.WebForms/Catalog.WebForms/Site.Master new file mode 100644 index 000000000..154a459c9 --- /dev/null +++ b/src/Web/Catalog.WebForms/Catalog.WebForms/Site.Master @@ -0,0 +1,78 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="Microsoft.eShopOnContainers.Catalog.WebForms.SiteMaster" %> + + + + + + + + <%: Page.Title %> - My ASP.NET Application + + + <%: Scripts.Render("~/bundles/modernizr") %> + + + + + + + + +
+ + + <%--To learn more about bundling scripts in ScriptManager see https://go.microsoft.com/fwlink/?LinkID=301884 --%> + <%--Framework Scripts--%> + + + + + + + + + + + + + + <%--Site Scripts--%> + + + + +
+ + +
+ +
+ +
+ +