From 69deeefae835fa48b677297217bb622e0460401c Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 14 Feb 2023 07:04:29 +0300 Subject: [PATCH] Split Index into partials --- Views/Home/Index.cshtml | 177 ++-------------------------------- Views/Home/_About.cshtml | 16 +++ Views/Home/_Contact.cshtml | 41 ++++++++ Views/Home/_Masthead.cshtml | 11 +++ Views/Home/_Navigation.cshtml | 18 ++++ Views/Home/_Projects.cshtml | 29 ++++++ Views/Home/_SignUp.cshtml | 51 ++++++++++ 7 files changed, 173 insertions(+), 170 deletions(-) create mode 100644 Views/Home/_About.cshtml create mode 100644 Views/Home/_Contact.cshtml create mode 100644 Views/Home/_Masthead.cshtml create mode 100644 Views/Home/_Navigation.cshtml create mode 100644 Views/Home/_Projects.cshtml create mode 100644 Views/Home/_SignUp.cshtml diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index 64fecfa..7c575c3 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -1,175 +1,12 @@ -@model IQueryable; @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@using System.Globalization; @{ Layout = "_Layout"; } - - -
-
-
-
- -

Нижнее бельё ручной работы по индивидуальным меркам

- Узнать больше -
-
-
-
- -
-
-
-
-

Built with Bootstrap 5

-

- Grayscale is a free Bootstrap theme created by Start Bootstrap. It can be yours right now, - simply download the template on - the preview page. - The theme is open source, and you can use it for any purpose, personal or commercial. -

-
-
- ... -
-
- -
-
-
- @foreach (var bundle in @Model) - { -
-
- @bundle.Name - @for (int i = 1; i < @bundle.Figures.Count(); i++) - { - - } -
-
-
@bundle.Name
- @String.Format(new CultureInfo("ru-RU"), "{0:C0}", @bundle.Price) -
-
-
-
- } -
-
-
- - - -
-
-
-
-
-
- -

Address

-
-
4923 Market Street, Orlando FL
-
-
-
-
-
-
- -

Email

-
- -
-
-
-
-
-
- -

Phone

-
-
+1 (555) 902-8832
-
-
-
-
- -
-
\ No newline at end of file + + + + + + + \ No newline at end of file diff --git a/Views/Home/_About.cshtml b/Views/Home/_About.cshtml new file mode 100644 index 0000000..00386f8 --- /dev/null +++ b/Views/Home/_About.cshtml @@ -0,0 +1,16 @@ +
+
+
+
+

Built with Bootstrap 5

+

+ Grayscale is a free Bootstrap theme created by Start Bootstrap. It can be yours right now, + simply download the template on + the preview page. + The theme is open source, and you can use it for any purpose, personal or commercial. +

+
+
+ ... +
+
\ No newline at end of file diff --git a/Views/Home/_Contact.cshtml b/Views/Home/_Contact.cshtml new file mode 100644 index 0000000..bc2e6e7 --- /dev/null +++ b/Views/Home/_Contact.cshtml @@ -0,0 +1,41 @@ +
+
+
+
+
+
+ +

Address

+
+
4923 Market Street, Orlando FL
+
+
+
+
+
+
+ +

Email

+
+ +
+
+
+
+
+
+ +

Phone

+
+
+1 (555) 902-8832
+
+
+
+
+ +
+
\ No newline at end of file diff --git a/Views/Home/_Masthead.cshtml b/Views/Home/_Masthead.cshtml new file mode 100644 index 0000000..531a9a1 --- /dev/null +++ b/Views/Home/_Masthead.cshtml @@ -0,0 +1,11 @@ +
+
+
+
+ +

Нижнее бельё ручной работы по индивидуальным меркам

+ Узнать больше +
+
+
+
\ No newline at end of file diff --git a/Views/Home/_Navigation.cshtml b/Views/Home/_Navigation.cshtml new file mode 100644 index 0000000..fa82f81 --- /dev/null +++ b/Views/Home/_Navigation.cshtml @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/Views/Home/_Projects.cshtml b/Views/Home/_Projects.cshtml new file mode 100644 index 0000000..d35fc11 --- /dev/null +++ b/Views/Home/_Projects.cshtml @@ -0,0 +1,29 @@ +@model IQueryable; +@using System.Globalization; + +
+
+
+ @foreach (var bundle in @Model) + { +
+
+ @bundle.Name + @for (int i = 1; i < @bundle.Figures.Count(); i++) + { + + } +
+
+
@bundle.Name
+ @String.Format(new CultureInfo("ru-RU"), "{0:C0}", @bundle.Price) +
+
+
+
+ } +
+
+
\ No newline at end of file diff --git a/Views/Home/_SignUp.cshtml b/Views/Home/_SignUp.cshtml new file mode 100644 index 0000000..6ffabcc --- /dev/null +++ b/Views/Home/_SignUp.cshtml @@ -0,0 +1,51 @@ + \ No newline at end of file