website updates
This commit is contained in:
parent
2944f49974
commit
4ef1835bee
@ -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": "<h1>{0}</h1>".format(self.tagline or "Headline")+\
|
||||
'<p>'+_("This is an example website auto-generated from ERPNext")+"</p>"+\
|
||||
'<p><a class="btn btn-primary" href="/login">Login</a></p>',
|
||||
"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,
|
||||
|
@ -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;
|
||||
|
@ -1,26 +1,28 @@
|
||||
<p class="lead text-center">
|
||||
{{ _("We make world class products and offer world class services") }}
|
||||
<div class="slides">
|
||||
<div class="row slide">
|
||||
<h2 class="text-center">{{ _("Awesome Products") }}</h2>
|
||||
<div class="col-md-6 text-center">
|
||||
<div class="img-wrapper">
|
||||
<i class="icon-wrench text-muted" style="font-size: 100px;"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p>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.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row slide alt">
|
||||
<h2 class="text-center">{{ _("Awesome Services") }}</h2>
|
||||
<div class="col-md-6 text-center">
|
||||
<div class="img-wrapper">
|
||||
<i class="icon-phone text-muted" style="font-size: 100px;"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p>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.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-center" style="margin-bottom: 50px;">
|
||||
<a href="/products" class="btn btn-success">Explore <i class="icon-chevron-right"></i></a>
|
||||
</p>
|
||||
<div class="row slide">
|
||||
<h3 class="text-center">{{ _("Awesome Products") }}</h3>
|
||||
<div class="col-md-6 text-center">
|
||||
<div class="img-wrapper">
|
||||
<i class="icon-wrench text-muted" style="font-size: 100px;"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p>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.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row slide alt">
|
||||
<h3 class="text-center">{{ _("Awesome Services") }}</h3>
|
||||
<div class="col-md-6 text-center">
|
||||
<div class="img-wrapper">
|
||||
<i class="icon-phone text-muted" style="font-size: 100px;"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p>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.</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- no-sidebar -->
|
||||
|
@ -1,10 +1,14 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="input-group col-sm-6 col-sm-offset-3" style="margin-top: 7px;">
|
||||
<input class="form-control" type="text" id="footer-subscribe-email" placeholder="Your email address...">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="button" id="footer-subscribe-button">Stay Updated</button>
|
||||
</span>
|
||||
<div class="col-sm-6 col-sm-offset-3" style="margin-top: 7px;">
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" id="footer-subscribe-email"
|
||||
placeholder="{{ _('Your email address') }}...">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="button"
|
||||
id="footer-subscribe-button">{{ _("Stay Updated") }}</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user