summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-01-07 14:34:41 -0500
committerJules Laplace <jules@okfoc.us>2015-01-07 14:40:10 -0500
commit9c6f8f8568d20d75eb22955dbf2752ea777e59f8 (patch)
tree26a87018e7aa8794c96bd00ddfaed1472d2964b7
parent2d4ed7d888727e1b973c2581b694d900e30c2ebd (diff)
stub in brochure page
-rwxr-xr-xpublic/assets/stylesheets/app.css14
-rw-r--r--server/lib/schemas/Plan.js6
-rw-r--r--server/lib/schemas/Subscription.js2
-rw-r--r--server/lib/views/index.js5
-rw-r--r--server/lib/views/subscription.js1
-rw-r--r--views/about/_blank.ejs2
-rw-r--r--views/about/about.ejs16
-rw-r--r--views/about/brochure.ejs79
-rw-r--r--views/about/howto.ejs2
-rw-r--r--views/builder.ejs2
-rw-r--r--views/docs.ejs2
-rwxr-xr-xviews/editor.ejs2
-rwxr-xr-xviews/home.ejs2
-rw-r--r--views/modal.ejs2
-rw-r--r--views/profile.ejs2
-rw-r--r--views/reader.ejs2
-rw-r--r--views/staff/_header.ejs2
17 files changed, 116 insertions, 27 deletions
diff --git a/public/assets/stylesheets/app.css b/public/assets/stylesheets/app.css
index aecd6be..0463e26 100755
--- a/public/assets/stylesheets/app.css
+++ b/public/assets/stylesheets/app.css
@@ -673,7 +673,21 @@ iframe.embed {
font-weight: 300;
}
+.aboutintro {
+ text-align: center;
+ line-height: 43px;
+ font-size: 24px;
+ padding: 5% 0;
+ font-weight: 300;
+}
+.aboutintro .inner {
+ max-width: 800px;
+ margin: 0 auto;
+ text-align: center;
+}
+
/* PROFILE PAGE */
+
.profilePic {
background-size: cover;
background-position: center;
diff --git a/server/lib/schemas/Plan.js b/server/lib/schemas/Plan.js
index 3e74997..1057bb2 100644
--- a/server/lib/schemas/Plan.js
+++ b/server/lib/schemas/Plan.js
@@ -13,6 +13,12 @@ var PlanSchema = new mongoose.Schema({
monthly_price: { type: Number },
yearly_price: { type: Number },
+ basic_layout_monthly_price: { type: Number },
+ basic_layout_yearly_price: { type: Number },
+
+ pro_layout_monthly_price: { type: Number },
+ pro_layout_yearly_price: { type: Number },
+
basic_layout_limit: { type: Number },
pro_layout_limit: { type: Number },
diff --git a/server/lib/schemas/Subscription.js b/server/lib/schemas/Subscription.js
index 8d0b10e..8315009 100644
--- a/server/lib/schemas/Subscription.js
+++ b/server/lib/schemas/Subscription.js
@@ -15,7 +15,7 @@ var SubscriptionSchema = new mongoose.Schema({
plans: [{
tier: { type: String },
monthly: { type: Boolean },
- }]
+ }],
created_at: { type: Date, default: Date.now },
updated_at: { type: Date, default: Date.now },
diff --git a/server/lib/views/index.js b/server/lib/views/index.js
index 3326499..5f9088b 100644
--- a/server/lib/views/index.js
+++ b/server/lib/views/index.js
@@ -111,6 +111,11 @@ var views = module.exports = {
res.render('about/' + name)
return
}
+ if (name == "brochure") {
+ // TODO: fetch plans
+ res.render('about/' + name)
+ return
+ }
if (name == "about" || name == "index") {
res.render('about/' + name)
return
diff --git a/server/lib/views/subscription.js b/server/lib/views/subscription.js
index 77db1a0..ba54bb4 100644
--- a/server/lib/views/subscription.js
+++ b/server/lib/views/subscription.js
@@ -12,7 +12,6 @@ var subscription = module.exports = {
fields: {
user: "_id username displayName photo created_at updated_at last_seen created_ip last_ip",
- project: "_id name slug user_id privacy created_at updated_at",
},
defaults: {
diff --git a/views/about/_blank.ejs b/views/about/_blank.ejs
index 0e9ea7e..3c23fa7 100644
--- a/views/about/_blank.ejs
+++ b/views/about/_blank.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>VValls</title>
[[ include ../partials/meta ]]
</head>
<body class="loading">
diff --git a/views/about/about.ejs b/views/about/about.ejs
index dd536be..2aec982 100644
--- a/views/about/about.ejs
+++ b/views/about/about.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>About VValls</title>
[[ include ../partials/meta ]]
</head>
<body class="loading">
@@ -50,17 +50,3 @@
</body>
[[ include ../partials/scripts ]]
</html>
-<style>
-.aboutintro {
- text-align: center;
- line-height: 43px;
- font-size: 24px;
- padding: 5% 0;
- font-weight: 300;
-}
-.aboutintro .inner {
- max-width: 800px;
- margin: 0 auto;
- text-align: center;
-}
-</style> \ No newline at end of file
diff --git a/views/about/brochure.ejs b/views/about/brochure.ejs
new file mode 100644
index 0000000..00083cf
--- /dev/null
+++ b/views/about/brochure.ejs
@@ -0,0 +1,79 @@
+<!doctype html>
+<html>
+<head>
+ <title>VValls Subscriptions</title>
+ [[ include ../partials/meta ]]
+</head>
+<body class="loading">
+ <div class="rapper page">
+ [[ include ../partials/header ]]
+
+ <h1>Subscriptions</h1>
+
+ <div class="projectList about aboutintro">
+ <div class="inner">
+ Want to get more out of VValls? Consider becoming a subscription user.
+ </div>
+ </div>
+
+ <div>
+ <h3>[[- plans.free.name ]]</h3>
+ <ul>
+ <li> One exhibition with pre-designed template floor plan
+ </ul>
+ </div>
+
+ <div>
+ <h3>[[- plans.premium.name ]]</h3>
+ <ul>
+ <li> $[[- plans.premium.monthly_price ]]/mo or $[[- plans.premium.yearly_price ]]/year
+ <li> [[- plans.premium.stock_layout_project_limit ]] exhibitions included with pre-designed template floor plans
+ <li> Each new basic floor plan costs $[[- plans.premium.basic_layout_monthly_price ]]/mo
+ or $[[- plans.premium.basic_layout_yearly_price ]]/year, minimum 3 months
+ <li> Each new basic floor plan can have up to [[- plans.premium.basic_layout_project_limit ]] exhibitions
+ <li> VValls logo appears when embedding an exhibition on a web page
+ </ul>
+ </div>
+
+ <div>
+ <h3>[[- plans.pro.name ]]</h3>
+ <ul>
+ <li> $[[- plans.pro.monthly_price ]]/mo or $[[- plans.pro.yearly_price ]]/year
+ <li> Comes with [[- plans.premium.pro_layout_limit ]] pro floor plan and [[- plans.premium.pro_layout_project_limit ]] exhibitions
+ <li> Each new pro floor plan costs $[[- plans.pro.pro_layout_monthly_price ]]/mo
+ or $[[- plans.pro.pro_layout_yearly_price ]]/year, minimum 3 months
+ <li> Each new pro floor plan can have up to [[- plans.pro.pro_layout_project_limit ]] exhibitions
+ <li> Includes planning for 3D objects in the room
+ <li> No VValls logo on embed
+ </ul>
+ </div>
+
+ <div>
+ Buying any extra floor plan unlocks collaboration. Invite an artist or curator to work on the exhibition with you.
+ </div>
+
+ <div>
+ Basic Floor plan: Rectangle-based design of any dimension.
+ </div>
+
+ <div>
+ Pro Floor plan: Trace an arbitrary floorplan.
+ </div>
+
+
+ <div>
+ <h3>Custom</h3>
+ We offer many types of customizations and white-label options for business and educational uses.
+ <a>Contact us</a> for more information
+ </div>
+
+
+ [[ include ../partials/confirm-modal ]]
+ [[ include ../projects/layouts-modal ]]
+ [[ include ../partials/sign-in ]]
+ [[ include ../partials/footer ]]
+
+ </div>
+</body>
+[[ include ../partials/scripts ]]
+</html>
diff --git a/views/about/howto.ejs b/views/about/howto.ejs
index 5278a40..914c3b3 100644
--- a/views/about/howto.ejs
+++ b/views/about/howto.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>How to Use VValls</title>
[[ include ../partials/meta ]]
</head>
<body class="loading">
diff --git a/views/builder.ejs b/views/builder.ejs
index afb8c66..0ba4238 100644
--- a/views/builder.ejs
+++ b/views/builder.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>VValls</title>
[[ include partials/meta ]]
</head>
<body class="editing loading">
diff --git a/views/docs.ejs b/views/docs.ejs
index b3ead82..a1f081f 100644
--- a/views/docs.ejs
+++ b/views/docs.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>VValls</title>
[[ include partials/meta ]]
</head>
<body class="loading">
diff --git a/views/editor.ejs b/views/editor.ejs
index 656615c..74e4d6d 100755
--- a/views/editor.ejs
+++ b/views/editor.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>VValls</title>
[[ include partials/meta ]]
</head>
<body class="editing loading">
diff --git a/views/home.ejs b/views/home.ejs
index 36fc2fc..ffb0976 100755
--- a/views/home.ejs
+++ b/views/home.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>VValls</title>
[[ include partials/meta ]]
</head>
<body class="loading">
diff --git a/views/modal.ejs b/views/modal.ejs
index 7ca869c..732953d 100644
--- a/views/modal.ejs
+++ b/views/modal.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>VValls</title>
[[ include partials/meta ]]
</head>
<body class="loading">
diff --git a/views/profile.ejs b/views/profile.ejs
index a62652c..88af6b0 100644
--- a/views/profile.ejs
+++ b/views/profile.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>VValls | [[- profile.displayName ]]</title>
[[ include partials/meta ]]
</head>
<body class="loading">
diff --git a/views/reader.ejs b/views/reader.ejs
index 6c9856a..7035356 100644
--- a/views/reader.ejs
+++ b/views/reader.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>VValls</title>
[[ include partials/meta ]]
</head>
<body class="loading reader">
diff --git a/views/staff/_header.ejs b/views/staff/_header.ejs
index 3bbf4f1..a73c12e 100644
--- a/views/staff/_header.ejs
+++ b/views/staff/_header.ejs
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>vvalls | staff</title>
+ <title>VValls | staff</title>
[[ include ../partials/meta ]]
<link rel="stylesheet" href="/assets/javascripts/vendor/bower_components/jquery-jsonview/dist/jquery.jsonview.css"></script>
<link rel="stylesheet" href="/assets/stylesheets/staff.css"></script>