Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 808ef77

Browse files
committed
Merge branch 'hotfix-0.36.4'
Hotfix 0.36.4: Target landing page at open initiatives **Fixes:** - Replace landing page with new page targeted at open initiatives - Move previous landing page to '/platform'
2 parents d78c933 + 0e0cb73 commit 808ef77

25 files changed

+145
-22
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## v0.36.4 (Mar 5, 2019)
4+
5+
**Fixes:**
6+
- Replace landing page with new page targeted at open initiatives
7+
- Move previous landing page to '/platform'
8+
39
## v0.36.3 (Mar 4, 2019)
410

511
**Fixes:**

app/assets/images/static/open_collaboration/celebrate.svg

+1
Loading

app/assets/stylesheets/controllers/static.scss

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Styling for StaticController
22

3-
.c-static.a-index {
3+
.c-static.landing-page {
44
$header-color: #1b2733;
55
$header-color-light: #0009;
66
$box-shadow-color: rgba(99, 114, 130, .1);
@@ -45,6 +45,10 @@
4545
font-weight: normal;
4646
}
4747

48+
.light {
49+
font-weight: 400;
50+
}
51+
4852
nav {
4953
// scss-lint:disable ImportantRule
5054
background: none !important;

app/controllers/static_controller.rb

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
class StaticController < ApplicationController
55
layout 'landing'
66

7-
def index
8-
@color_scheme = 'blue darken-3'
7+
def github_for_documents
8+
@title = 'Manage Documents Just Like Code'
9+
render 'static/github_for_documents/index'
10+
end
11+
12+
def open_collaboration
13+
@title = 'Network of Open Initiatives'
14+
render 'static/open_collaboration/index'
915
end
1016
end

app/views/layouts/landing.slim

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ html
1111
gtag('config', 'UA-133689601-1');
1212
1313
title
14-
' Manage Documents just like Code -
14+
=> @title || 'Home'
15+
' -
1516
= Settings.app_name
1617
= csrf_meta_tags
1718

@@ -34,7 +35,7 @@ html
3435

3536
/ body class=[controller_action_identifier, color_scheme(@color_scheme)]
3637
/ TODO: Set correct color once identified by design team
37-
body class=[controller_action_identifier, color_scheme('blue darken-2')]
38+
body.landing-page class=[controller_action_identifier, color_scheme('blue darken-2')]
3839
main
3940
= render 'landing_navbar'
4041
= yield

app/views/static/index.slim renamed to app/views/static/github_for_documents/index.slim

+15-15
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
p.flow-text.gray-text.text-darken-2
77
' What if you could manage documents with the efficiency you know and
88
| love from software development?
9-
= render 'call_to_action'
9+
= render '/static/github_for_documents/call_to_action'
1010

1111
.col.s12.m6.l6
12-
= image_tag 'static/versioning.svg', class: 'responsive-img'
12+
= image_tag 'static/github_for_documents/versioning.svg', class: 'responsive-img'
1313

1414

1515
.spacing.v48px
@@ -23,21 +23,21 @@
2323
h3 The Best of Git & GitHub
2424
p.flow-text Repos, commits, diffs, pulls, and issue tracking &mdash; we’ve replicated the best of GitHub.
2525
.left-align
26-
= image_tag 'static/github.png', class: 'responsive-img'
26+
= image_tag 'static/github_for_documents/github.png', class: 'responsive-img'
2727

2828
.col.s12.m4.l4
2929
.card
3030
h3 Adapted for Documents
3131
p.flow-text Diffing and merging optimized for binary file formats &mdash; from documents to spreadsheets.
3232
.left-align
33-
= image_tag 'static/documents.png', class: 'responsive-img'
33+
= image_tag 'static/github_for_documents/documents.png', class: 'responsive-img'
3434

3535
.col.s12.m4.l4
3636
.card
3737
h3 Integrated with Cloud
3838
p.flow-text Your repositories are imported from the cloud service you trust &mdash; and always stay in sync.
3939
.left-align
40-
= image_tag 'static/clouds.png', class: 'responsive-img'
40+
= image_tag 'static/github_for_documents/clouds.png', class: 'responsive-img'
4141

4242
.gray.lighten-3
4343

@@ -46,7 +46,7 @@
4646
.container.features
4747
.row
4848
.col.s12.m6.l4
49-
= image_tag 'static/icons8/icons8-repository-100.png', class: 'responsive-img'
49+
= image_tag 'static/github_for_documents/icons8/icons8-repository-100.png', class: 'responsive-img'
5050
h3 Organize Your Work
5151
h4 Repositories
5252
ul
@@ -56,7 +56,7 @@
5656
li Keep files in your cloud updated with 2-way sync
5757

5858
.col.s12.m6.l4
59-
= image_tag 'static/icons8/icons8-transfer-100.png', class: 'responsive-img'
59+
= image_tag 'static/github_for_documents/icons8/icons8-transfer-100.png', class: 'responsive-img'
6060
h3 Track Changes
6161
h4 Version Control
6262
ul
@@ -69,7 +69,7 @@
6969
.clearfix
7070

7171
.col.s12.m6.l4
72-
= image_tag 'static/icons8/icons8-edit-property-100.png', class: 'responsive-img'
72+
= image_tag 'static/github_for_documents/icons8/icons8-edit-property-100.png', class: 'responsive-img'
7373
h3 Capture Insights
7474
h4 Commits
7575
ul
@@ -82,7 +82,7 @@
8282
.clearfix
8383

8484
.col.s12.m6.l4
85-
= image_tag 'static/icons8/icons8-workflow-100.png', class: 'responsive-img'
85+
= image_tag 'static/github_for_documents/icons8/icons8-workflow-100.png', class: 'responsive-img'
8686
h3 Streamline Workflows
8787
h4 Pull Requests
8888
ul
@@ -95,7 +95,7 @@
9595
.clearfix
9696

9797
.col.s12.m6.l4
98-
= image_tag 'static/icons8/icons8-solve-100.png', class: 'responsive-img'
98+
= image_tag 'static/github_for_documents/icons8/icons8-solve-100.png', class: 'responsive-img'
9999
h3 Tackle Problems
100100
h4 Issue Tracking
101101
ul
@@ -105,7 +105,7 @@
105105
li Integrate with Trello
106106

107107
.col.s12.m6.l4
108-
= image_tag 'static/icons8/icons8-secure-100.png', class: 'responsive-img'
108+
= image_tag 'static/github_for_documents/icons8/icons8-secure-100.png', class: 'responsive-img'
109109
h3 Safe &amp; Secure
110110
h4 Security
111111
ul
@@ -127,7 +127,7 @@
127127
.row
128128
.col.s3.m2.l1
129129
div.img
130-
= image_tag 'static/stephanie.jpg', class: 'responsive-img'
130+
= image_tag 'static/github_for_documents/stephanie.jpg', class: 'responsive-img'
131131
.col.s9.m10.l11
132132
p.flow-text I’ve wanted Git for Google Docs for ages.
133133
p.gray-text.text-darken-2 &mdash; Stephanie, PM, Microsoft
@@ -137,7 +137,7 @@
137137
.row
138138
.col.s3.m2.l1
139139
div.img
140-
= image_tag 'static/dave.jpg', class: 'responsive-img'
140+
= image_tag 'static/github_for_documents/dave.jpg', class: 'responsive-img'
141141
.col.s9.m10.l11
142142
p.flow-text We are working with dozens of people on our cloud and it was an absolute mess. Everyone just dumped files wherever they wanted, no one could find what they were looking for. We need Openly.
143143
p.gray-text.text-darken-2 &mdash; Dave, Founder and CEO, software development &amp; consulting
@@ -147,7 +147,7 @@
147147
.row
148148
.col.s3.m2.l1
149149
div.img.left
150-
= image_tag 'static/mike.jpg', class: 'responsive-img'
150+
= image_tag 'static/github_for_documents/mike.jpg', class: 'responsive-img'
151151
.col.s9.m10.l11
152152
p.flow-text Openly supports docs just like code and you don't even need to use the command line.
153153
p.gray-text.text-darken-2 &mdash; Mike, Senior Technical Writer
@@ -248,7 +248,7 @@
248248
h2 Curious? Experience it yourself.
249249

250250
.section
251-
= render 'call_to_action'
251+
= render '/static/github_for_documents/call_to_action'
252252

253253
.spacing.v64px
254254

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.spacing.v16px
2+
3+
a.btn-large.primary-color.primary-color-text[
4+
target='_blank'
5+
href='https://openlyone.typeform.com/to/qP2fCY']
6+
| Join Us
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
.hero.full-height.valign-wrapper
2+
.container.left-align.hero-content
3+
.row
4+
.col.s12.m6.l6
5+
h1 It's time to tackle the world's biggest challenges.
6+
h3.light
7+
' Join a network of the world's leading
8+
b
9+
' open initiatives
10+
| collaborating for systemic change.
11+
= render 'static/open_collaboration/call_to_action'
12+
13+
.col.s12.m6.l6
14+
= image_tag 'static/open_collaboration/celebrate.svg', class: 'responsive-img'
15+
16+
17+
.spacing.v48px
18+
19+
.container.highlights
20+
.row.no-margin-top.no-margin-bottom
21+
.col.s12
22+
h3 What is an open initiative?
23+
h3.light
24+
' Any organization, initiative, or startup that follows these core
25+
| principles:
26+
.row.no-margin-top
27+
.col.s12.m4.l4
28+
.card
29+
h3 Open
30+
p.flow-text
31+
' We do our work in the open. Learning, reusing, and building upon our
32+
| work is encouraged.
33+
34+
.col.s12.m4.l4
35+
.card
36+
h3 Collaborative
37+
p.flow-text
38+
' We work together with the communities we serve. Everyone is invited
39+
| to get involved.
40+
41+
.col.s12.m4.l4
42+
.card
43+
h3 Impact-Driven
44+
p.flow-text
45+
' We focus on creating lasting positive impact for people and planet.
46+
47+
48+
.spacing.v48px
49+
50+
51+
.black.white-text
52+
53+
.container
54+
55+
.spacing.v8px
56+
57+
.row
58+
.col.s12.l4
59+
.hide-on-med-and-down
60+
= image_tag 'logo-text.svg', class: 'responsive-img'
61+
.hide-on-large-only.center-align
62+
= image_tag 'logo.png', class: 'responsive-img', width: 100
63+
64+
.col.s6.l4
65+
p
66+
b Openly One Inc.
67+
br
68+
| Suite 631
69+
br
70+
| 1312 17th Street
71+
br
72+
| Denver, CO 80202
73+
br
74+
| USA
75+
76+
.col.s6.l4
77+
p
78+
= mail_to '[email protected]', nil, class: 'white-text'
79+
br
80+
br
81+
| We are a public benefit corporation &hearts;
82+
83+
.spacing.v8px
84+
85+
86+
/ add non-sticky footer here manually as a replacement for overriding the
87+
/ default footer
88+
= render 'footer'

config/routes.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
match '/422', to: 'errors#unacceptable', via: :all
2222
match '/500', to: 'errors#internal_server_error', via: :all
2323

24+
# Static pages
25+
get '/platform', to: 'static#github_for_documents'
26+
2427
devise_for :accounts, skip: %i[registrations sessions]
2528

2629
# Routes for signups
@@ -131,5 +134,5 @@
131134
end
132135
end
133136

134-
root 'static#index'
137+
root 'static#open_collaboration'
135138
end

spec/features/static_spec.rb

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
feature 'Static Pages' do
44
scenario 'Visiting the home page' do
55
visit '/'
6-
expect(page).to have_content 'Work on documents just like you do on code.'
6+
expect(page).to have_content(
7+
"It's time to tackle the world's biggest challenges."
8+
)
9+
expect(page).to have_link 'Join Us'
10+
end
11+
12+
scenario 'User can visit the platform landing page' do
13+
visit '/platform'
14+
expect(page).to have_content 'Work on documents just like you do on code'
715
expect(page).to have_link 'Get Started'
816
end
917
end

0 commit comments

Comments
 (0)