From 4ef1835bee65732b62c1a40a47692a50447fe09b Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 22 Apr 2014 16:52:11 +0530 Subject: [PATCH] website updates --- .../page/setup_wizard/default_website.py | 16 ++++++ .../page/setup_wizard/sample_home_page.css | 24 ++++++--- .../page/setup_wizard/sample_home_page.html | 50 ++++++++++--------- .../templates/includes/footer_extension.html | 14 ++++-- 4 files changed, 67 insertions(+), 37 deletions(-) diff --git a/erpnext/setup/page/setup_wizard/default_website.py b/erpnext/setup/page/setup_wizard/default_website.py index 3f1d8e1af9..c28a1ff0ab 100644 --- a/erpnext/setup/page/setup_wizard/default_website.py +++ b/erpnext/setup/page/setup_wizard/default_website.py @@ -18,6 +18,22 @@ class website_maker(object): self.make_blog() def make_web_page(self): + # home page + self.webpage = frappe.get_doc({ + "doctype": "Web Page", + "title": self.company, + "published": 1, + "header": "

{0}

".format(self.tagline or "Headline")+\ + '

'+_("This is an example website auto-generated from ERPNext")+"

"+\ + '

Login

', + "description": self.company + ":" + (self.tagline or ""), + "css": frappe.get_template("setup/page/setup_wizard/sample_home_page.css").render(), + "main_section": frappe.get_template("setup/page/setup_wizard/sample_home_page.html").render({ + "company": self.company, "tagline": (self.tagline or "") + }) + }).insert() + + # about page self.webpage = frappe.get_doc({ "doctype": "Web Page", "title": self.company, diff --git a/erpnext/setup/page/setup_wizard/sample_home_page.css b/erpnext/setup/page/setup_wizard/sample_home_page.css index 66eefcbca0..888d2f5cdc 100644 --- a/erpnext/setup/page/setup_wizard/sample_home_page.css +++ b/erpnext/setup/page/setup_wizard/sample_home_page.css @@ -1,28 +1,36 @@ .page-header { color: white; - background-color: #444; - padding: 40px 0px; + background: #263248; + text-align: center; + padding: 80px 0px; +} + +.page-header .page-header-left { + width: 100%; } .page-header h1 { color: white; } +.slide h2 { + margin-bottom: 30px; +} + +.slides { + margin-top: -15px; +} + .slide { padding: 60px 40px; - max-width: 900px; + max-width: 800px; margin: auto; - border-top: 1px solid #f2f2f2; } .container { max-width: 900px; } -.slide h3 { - margin-bottom: 70px; -} - .img-wrapper { text-align: center; padding: 30px; diff --git a/erpnext/setup/page/setup_wizard/sample_home_page.html b/erpnext/setup/page/setup_wizard/sample_home_page.html index 0149c755cb..990bc1eb29 100644 --- a/erpnext/setup/page/setup_wizard/sample_home_page.html +++ b/erpnext/setup/page/setup_wizard/sample_home_page.html @@ -1,26 +1,28 @@ -

- {{ _("We make world class products and offer world class services") }} +

+
+

{{ _("Awesome Products") }}

+
+
+ +
+
+
+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

+
+
+
+

{{ _("Awesome Services") }}

+
+
+ +
+
+
+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

+
+
+
+

+ Explore

-
-

{{ _("Awesome Products") }}

-
-
- -
-
-
-

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

-
-
-
-

{{ _("Awesome Services") }}

-
-
- -
-
-
-

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

-
-
diff --git a/erpnext/templates/includes/footer_extension.html b/erpnext/templates/includes/footer_extension.html index ba265923e2..e40825d576 100644 --- a/erpnext/templates/includes/footer_extension.html +++ b/erpnext/templates/includes/footer_extension.html @@ -1,10 +1,14 @@
-
- - - - +
+
+ + + + +