Generalized product page so it could be used for more than just the front page.
This commit is contained in:
parent
ea3d11f11f
commit
e5b0dd0418
|
@ -11,7 +11,7 @@ from model.Note import Note
|
|||
from model.Notebook import Notebook
|
||||
from model.User import User
|
||||
from view.Main_page import Main_page
|
||||
from view.Product_page import Product_page
|
||||
from view.Front_page import Front_page
|
||||
from view.Notebook_rss import Notebook_rss
|
||||
from view.Upgrade_note import Upgrade_note
|
||||
from view.Json import Json
|
||||
|
@ -133,7 +133,7 @@ class Root( object ):
|
|||
redirect = u"/users/redeem_invite/%s" % invite_id,
|
||||
)
|
||||
|
||||
@expose( view = Product_page )
|
||||
@expose( view = Front_page )
|
||||
@strongly_expire
|
||||
@grab_user_id
|
||||
@validate(
|
||||
|
|
195
view/Front_page.py
Normal file
195
view/Front_page.py
Normal file
|
@ -0,0 +1,195 @@
|
|||
from Product_page import Product_page
|
||||
from Tags import Div, Img, A, P, Table, Td, Li, Span, I
|
||||
|
||||
|
||||
class Front_page( Product_page ):
|
||||
def __init__( self, user, notebooks, first_notebook, login_url, logout_url, rate_plan ):
|
||||
Product_page.__init__(
|
||||
self,
|
||||
user,
|
||||
first_notebook,
|
||||
login_url,
|
||||
logout_url,
|
||||
|
||||
Div(
|
||||
Div(
|
||||
Div(
|
||||
A(
|
||||
Img( src = u"/static/images/screenshot_small.png", width = u"400", height = u"291" ),
|
||||
href = u"/take_a_tour",
|
||||
),
|
||||
class_ = u"screenshot",
|
||||
),
|
||||
Div(
|
||||
Div(
|
||||
Img(
|
||||
src = u"/static/images/hook.png",
|
||||
width = u"400", height = u"51",
|
||||
alt = u"Collect your thoughts.",
|
||||
),
|
||||
),
|
||||
P(
|
||||
Img(
|
||||
src = u"/static/images/sub_hook.png",
|
||||
width = u"307", height = u"54",
|
||||
alt = u"Get organized with your own Luminotes personal wiki notebook.",
|
||||
),
|
||||
),
|
||||
Table(
|
||||
Td(
|
||||
Li( u"Gather all of your ideas into one place." ),
|
||||
Li( u"Easily link together related concepts." ),
|
||||
Li( u"Share your wiki with anyone." ),
|
||||
align = u"left",
|
||||
),
|
||||
align = u"center",
|
||||
),
|
||||
P(
|
||||
A( u"Take a tour", href = u"/take_a_tour", class_ = u"hook_action" ), u", ",
|
||||
A( u"Try the demo", href = u"/users/demo", class_ = u"hook_action" ), u", ",
|
||||
Span( u" or ", class_ = u"hook_action_or" ),
|
||||
A( u"Sign up", href = u"/sign_up", class_ = u"hook_action" ),
|
||||
class_ = u"hook_action_area",
|
||||
separator = u"",
|
||||
),
|
||||
class_ = u"explanation",
|
||||
),
|
||||
class_ = u"wide_center_area",
|
||||
),
|
||||
class_ = u"hook_area",
|
||||
),
|
||||
|
||||
Div(
|
||||
Div(
|
||||
Img(
|
||||
src = u"/static/images/what_is_luminotes.png",
|
||||
class_ = u"heading", width = u"214", height = u"29",
|
||||
alt = u"What is Luminotes?",
|
||||
),
|
||||
Div(
|
||||
P(
|
||||
u"""
|
||||
Luminotes is a personal wiki notebook for organizing your notes and ideas.
|
||||
You don't have to use any special markup codes or install any software. You
|
||||
simply start typing.
|
||||
""",
|
||||
),
|
||||
P(
|
||||
u"""
|
||||
With Luminotes, you deal with several notes all at once on the same web page,
|
||||
so you get a big-picture view of what you're working on and can easily make
|
||||
links from one concept to another.
|
||||
""",
|
||||
A( u"Read more.", href = u"/take_a_tour" ),
|
||||
),
|
||||
P(
|
||||
u"""
|
||||
Luminotes is open source / free software and licensed under the terms of the
|
||||
GNU GPL.
|
||||
""",
|
||||
),
|
||||
class_ = u"what_is_luminotes_text",
|
||||
),
|
||||
class_ = u"what_is_luminotes_area",
|
||||
),
|
||||
|
||||
Div(
|
||||
P(
|
||||
Img(
|
||||
src = u"/static/images/quotes.png",
|
||||
class_ = u"heading", width = u"253", height = u"31",
|
||||
alt = u"What people are saying",
|
||||
),
|
||||
),
|
||||
|
||||
Div(
|
||||
Div(
|
||||
u'"',
|
||||
Span(
|
||||
u"What I love most about Luminotes is the ", I( u"simplicity" ), u" of it.",
|
||||
class_ = u"quote_title",
|
||||
separator = u"",
|
||||
),
|
||||
u"""
|
||||
Maybe I have a touch of ADD, but I get so distracted with other products and
|
||||
all the gadgets, bells, and whistles they offer. I spend more time fiddling
|
||||
with the features than actually working. Luminotes, for me, recreates the old
|
||||
index card method we all used for term papers in high school."
|
||||
""",
|
||||
class_ = u"quote_text",
|
||||
separator = u"",
|
||||
),
|
||||
Div(
|
||||
u"-Michael Miller, President & CEO, Mighty Hero Entertainment, Inc.",
|
||||
class_ = u"quote_signature"
|
||||
),
|
||||
class_ = u"quote",
|
||||
),
|
||||
|
||||
Div(
|
||||
Div(
|
||||
u'"',
|
||||
Span(
|
||||
u"Marvelous! Simply marvelous!",
|
||||
class_ = u"quote_title",
|
||||
),
|
||||
u"""
|
||||
Very simple to use, and I can access it from any computer. Great idea!"
|
||||
""",
|
||||
class_ = u"quote_text",
|
||||
separator = u"",
|
||||
),
|
||||
Div(
|
||||
u"-Lydia Newkirk",
|
||||
class_ = u"quote_signature",
|
||||
),
|
||||
class_ = u"quote",
|
||||
),
|
||||
|
||||
Div(
|
||||
Div(
|
||||
u'"',
|
||||
Span(
|
||||
u"I just wanted to thank you for the great work with Luminotes!",
|
||||
class_ = u"quote_title",
|
||||
),
|
||||
u"""
|
||||
I use it both at home and at work, and it's a big help!"
|
||||
""",
|
||||
class_ = u"quote_text",
|
||||
separator = u"",
|
||||
),
|
||||
Div(
|
||||
u"-Brian M.B. Keaney",
|
||||
class_ = u"quote_signature",
|
||||
),
|
||||
class_ = u"quote",
|
||||
),
|
||||
|
||||
class_ = u"quotes_area",
|
||||
),
|
||||
class_ = u"wide_center_area",
|
||||
),
|
||||
|
||||
Div(
|
||||
P(
|
||||
A( u"Take a tour", href = u"/take_a_tour", class_ = u"hook_action" ), u", ",
|
||||
A( u"Try the demo", href = u"/users/demo", class_ = u"hook_action" ), u", ",
|
||||
Span( u" or ", class_ = u"hook_action_or" ),
|
||||
A( u"Sign up", href = u"/sign_up", class_ = u"hook_action" ),
|
||||
class_ = u"hook_action_area",
|
||||
separator = u"",
|
||||
),
|
||||
class_ = u"center_area",
|
||||
),
|
||||
P(
|
||||
Span( id = u"new_note_button_preload" ),
|
||||
Span( id = u"link_button_preload" ),
|
||||
Span( id = u"bold_button_preload" ),
|
||||
Span( id = u"italic_button_preload" ),
|
||||
Span( id = u"underline_button_preload" ),
|
||||
Span( id = u"title_button_preload" ),
|
||||
Span( id = u"bullet_list_button_preload" ),
|
||||
Span( id = u"numbered_list_button_preload" ),
|
||||
),
|
||||
)
|
|
@ -1,9 +1,9 @@
|
|||
from Page import Page
|
||||
from Tags import Link, Div, Img, A, P, Table, Td, Li, Span, I
|
||||
from Tags import Link, Div, Img, A, Span
|
||||
|
||||
|
||||
class Product_page( Page ):
|
||||
def __init__( self, user, notebooks, first_notebook, login_url, logout_url, rate_plan ):
|
||||
def __init__( self, user, first_notebook, login_url, logout_url, *nodes ):
|
||||
Page.__init__(
|
||||
self,
|
||||
None, # use the default title
|
||||
|
@ -77,186 +77,8 @@ class Product_page( Page ):
|
|||
class_ = u"header",
|
||||
),
|
||||
|
||||
Div(
|
||||
Div(
|
||||
Div(
|
||||
A(
|
||||
Img( src = u"/static/images/screenshot_small.png", width = u"400", height = u"291" ),
|
||||
href = u"/take_a_tour",
|
||||
),
|
||||
class_ = u"screenshot",
|
||||
),
|
||||
Div(
|
||||
Div(
|
||||
Img(
|
||||
src = u"/static/images/hook.png",
|
||||
width = u"400", height = u"51",
|
||||
alt = u"Collect your thoughts.",
|
||||
),
|
||||
),
|
||||
P(
|
||||
Img(
|
||||
src = u"/static/images/sub_hook.png",
|
||||
width = u"307", height = u"54",
|
||||
alt = u"Get organized with your own Luminotes personal wiki notebook.",
|
||||
),
|
||||
),
|
||||
Table(
|
||||
Td(
|
||||
Li( u"Gather all of your ideas into one place." ),
|
||||
Li( u"Easily link together related concepts." ),
|
||||
Li( u"Share your wiki with anyone." ),
|
||||
align = u"left",
|
||||
),
|
||||
align = u"center",
|
||||
),
|
||||
P(
|
||||
A( u"Take a tour", href = u"/take_a_tour", class_ = u"hook_action" ), u", ",
|
||||
A( u"Try the demo", href = u"/users/demo", class_ = u"hook_action" ), u", ",
|
||||
Span( u" or ", class_ = u"hook_action_or" ),
|
||||
A( u"Sign up", href = u"/sign_up", class_ = u"hook_action" ),
|
||||
class_ = u"hook_action_area",
|
||||
separator = u"",
|
||||
),
|
||||
class_ = u"explanation",
|
||||
),
|
||||
class_ = u"wide_center_area",
|
||||
),
|
||||
class_ = u"hook_area",
|
||||
),
|
||||
|
||||
Div(
|
||||
Div(
|
||||
Img(
|
||||
src = u"/static/images/what_is_luminotes.png",
|
||||
class_ = u"heading", width = u"214", height = u"29",
|
||||
alt = u"What is Luminotes?",
|
||||
),
|
||||
Div(
|
||||
P(
|
||||
u"""
|
||||
Luminotes is a personal wiki notebook for organizing your notes and ideas.
|
||||
You don't have to use any special markup codes or install any software. You
|
||||
simply start typing.
|
||||
""",
|
||||
),
|
||||
P(
|
||||
u"""
|
||||
With Luminotes, you deal with several notes all at once on the same web page,
|
||||
so you get a big-picture view of what you're working on and can easily make
|
||||
links from one concept to another.
|
||||
""",
|
||||
A( u"Read more.", href = u"/take_a_tour" ),
|
||||
),
|
||||
P(
|
||||
u"""
|
||||
Luminotes is open source / free software and licensed under the terms of the
|
||||
GNU GPL.
|
||||
""",
|
||||
),
|
||||
class_ = u"what_is_luminotes_text",
|
||||
),
|
||||
class_ = u"what_is_luminotes_area",
|
||||
),
|
||||
|
||||
Div(
|
||||
P(
|
||||
Img(
|
||||
src = u"/static/images/quotes.png",
|
||||
class_ = u"heading", width = u"253", height = u"31",
|
||||
alt = u"What people are saying",
|
||||
),
|
||||
),
|
||||
|
||||
Div(
|
||||
Div(
|
||||
u'"',
|
||||
Span(
|
||||
u"What I love most about Luminotes is the ", I( u"simplicity" ), u" of it.",
|
||||
class_ = u"quote_title",
|
||||
separator = u"",
|
||||
),
|
||||
u"""
|
||||
Maybe I have a touch of ADD, but I get so distracted with other products and
|
||||
all the gadgets, bells, and whistles they offer. I spend more time fiddling
|
||||
with the features than actually working. Luminotes, for me, recreates the old
|
||||
index card method we all used for term papers in high school."
|
||||
""",
|
||||
class_ = u"quote_text",
|
||||
separator = u"",
|
||||
),
|
||||
Div(
|
||||
u"-Michael Miller, President & CEO, Mighty Hero Entertainment, Inc.",
|
||||
class_ = u"quote_signature"
|
||||
),
|
||||
class_ = u"quote",
|
||||
),
|
||||
|
||||
Div(
|
||||
Div(
|
||||
u'"',
|
||||
Span(
|
||||
u"Marvelous! Simply marvelous!",
|
||||
class_ = u"quote_title",
|
||||
),
|
||||
u"""
|
||||
Very simple to use, and I can access it from any computer. Great idea!"
|
||||
""",
|
||||
class_ = u"quote_text",
|
||||
separator = u"",
|
||||
),
|
||||
Div(
|
||||
u"-Lydia Newkirk",
|
||||
class_ = u"quote_signature",
|
||||
),
|
||||
class_ = u"quote",
|
||||
),
|
||||
|
||||
Div(
|
||||
Div(
|
||||
u'"',
|
||||
Span(
|
||||
u"I just wanted to thank you for the great work with Luminotes!",
|
||||
class_ = u"quote_title",
|
||||
),
|
||||
u"""
|
||||
I use it both at home and at work, and it's a big help!"
|
||||
""",
|
||||
class_ = u"quote_text",
|
||||
separator = u"",
|
||||
),
|
||||
Div(
|
||||
u"-Brian M.B. Keaney",
|
||||
class_ = u"quote_signature",
|
||||
),
|
||||
class_ = u"quote",
|
||||
),
|
||||
|
||||
class_ = u"quotes_area",
|
||||
),
|
||||
class_ = u"wide_center_area",
|
||||
),
|
||||
|
||||
Div(
|
||||
P(
|
||||
A( u"Take a tour", href = u"/take_a_tour", class_ = u"hook_action" ), u", ",
|
||||
A( u"Try the demo", href = u"/users/demo", class_ = u"hook_action" ), u", ",
|
||||
Span( u" or ", class_ = u"hook_action_or" ),
|
||||
A( u"Sign up", href = u"/sign_up", class_ = u"hook_action" ),
|
||||
class_ = u"hook_action_area",
|
||||
separator = u"",
|
||||
),
|
||||
class_ = u"center_area",
|
||||
),
|
||||
P(
|
||||
Span( id = u"new_note_button_preload" ),
|
||||
Span( id = u"link_button_preload" ),
|
||||
Span( id = u"bold_button_preload" ),
|
||||
Span( id = u"italic_button_preload" ),
|
||||
Span( id = u"underline_button_preload" ),
|
||||
Span( id = u"title_button_preload" ),
|
||||
Span( id = u"bullet_list_button_preload" ),
|
||||
Span( id = u"numbered_list_button_preload" ),
|
||||
Span(
|
||||
*nodes
|
||||
),
|
||||
|
||||
Div(
|
||||
|
|
Reference in New Issue
Block a user