Skip to content

Commit a387018

Browse files
committed
Optimise mobile viewport
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 9a1d489 commit a387018

File tree

12 files changed

+124
-127
lines changed

12 files changed

+124
-127
lines changed

_data/customers.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@
66
logo: bryter.jpg
77
- name: BCubed Engineering
88
logo: bcubed.png
9-
- name: Curiflow
10-
logo: curiflow.png
119
- name: Deloitte Cyber LLC
1210
logo: deloitte.png
1311
- name: End to End Networks
1412
logo: e2enetworks.png
1513
- name: Fullscript
1614
logo: fullscript.png
17-
- name: Kubiya
18-
logo: kubiya.png
1915
- name: Lifetime Value Corporation
2016
logo: ltvco.png
2117
- name: Majesco

_includes/landing-page/landing-bottom-cta-cards.html

Lines changed: 53 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,63 @@
11
<div class="container">
2-
<div class="columns is-multiline">
3-
<div class="column is-12 is-spaced-bottom">
4-
<div class="cards-wrapper">
2+
<h2 class="title is-size-3-tablet is-size-2-desktop has-text-grey-darker mb-5">
3+
Start your Serverless Journey
4+
</h2>
5+
<div class="columns is-multiline is-centered">
56

6-
<div class="card has-text-centered">
7-
<div class="card-content">
8-
<div class="card-logo">
9-
<figure class="image">
10-
<img src="{{ site.baseurl }}/images/openfaas/whale.png" alt="logo">
11-
</figure>
12-
</div>
13-
<h3 class="title is-size-4 is-size-3-desktop has-text-grey-darker">
14-
Start your Serverless Journey
15-
</h3>
16-
<h3 class="title has-text-weight-light is-size-5 is-size-4-desktop has-text-grey">
17-
Understand the use-cases for functions and learn at your own pace with the OpenFaaS handbook: <i>Serverless For Everyone Else</i>.
18-
</h3>
19-
20-
</div>
21-
<a href="http://store.openfaas.com/l/serverless-for-everyone-else" target="_blank" class="button is-primary is-large">
22-
<span class="icon"><i class="fas fa-book-reader"></i></span>
23-
<span>GET THE EBOOK</span>
24-
</a>
7+
<div class="column is-12-mobile is-6-tablet is-4-desktop" style="padding: 0.75rem;">
8+
<div style="background: #E6E7E8; border-radius: 10px; padding: 2rem 1.5rem; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;">
9+
<div style="margin-bottom: 1.25rem;">
10+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: 48px; height: 48px; color: #3B5EE9;">
11+
<path stroke-linecap="round" stroke-linejoin="round" d="M17.25 6.75L22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3l-4.5 16.5" />
12+
</svg>
2513
</div>
14+
<h3 class="title is-size-4 is-size-3-desktop has-text-grey-darker">
15+
Get started with Python
16+
</h3>
17+
<p class="has-text-weight-light is-size-5 has-text-grey-dark" style="flex-grow: 1;">
18+
Build and scale your first Python function with a step-by-step walkthrough.
19+
</p>
20+
<a href="https://www.openfaas.com/blog/build-and-scale-python-function/" class="button is-primary is-large" style="margin-top: 1.5rem; border-radius: 7px;">
21+
<span>READ TUTORIAL</span>
22+
</a>
23+
</div>
24+
</div>
2625

27-
<div class="card has-text-centered">
28-
<div class="card-content">
29-
<div class="card-logo">
30-
<figure class="image">
31-
<span style="font-size: 60pt" class="icon"><i class="fas fa-server"></i></span>
32-
</figure>
33-
</div>
34-
<h3 class="title is-size-4 is-size-3-desktop has-text-grey-darker">
35-
Run OpenFaaS in Production
36-
</h3>
37-
<p class="title has-text-weight-light is-size-5 is-size-4-desktop has-text-grey">
38-
OpenFaaS Pro is a commercially licensed version of OpenFaaS meant for production use.
39-
</p>
40-
<p class="title has-text-weight-light is-size-5 is-size-4-desktop has-text-grey">
41-
You'll gain access to new features to make your team more efficient and productive.
42-
</p>
43-
</div>
44-
45-
<a href="https://openfaas.com/pricing" class="button is-primary is-large">
46-
<span class="icon"><i class="fas fa-server"></i></span>
47-
<span>VIEW PRICING</span>
48-
</a>
26+
<div class="column is-12-mobile is-6-tablet is-4-desktop" style="padding: 0.75rem;">
27+
<div style="background: #E6E7E8; border-radius: 10px; padding: 2rem 1.5rem; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;">
28+
<div style="margin-bottom: 1.25rem;">
29+
<img src="{{ site.baseurl }}/images/openfaas/whale.png" alt="Serverless For Everyone Else" style="width: 80px; height: auto;">
4930
</div>
31+
<h3 class="title is-size-4 is-size-3-desktop has-text-grey-darker">
32+
Serverless For Everyone Else
33+
</h3>
34+
<p class="has-text-weight-light is-size-5 has-text-grey-dark" style="flex-grow: 1;">
35+
Alex's hands-on eBook for building and deploying functions with Node.js.
36+
</p>
37+
<a href="http://store.openfaas.com/l/serverless-for-everyone-else" target="_blank" class="button is-primary is-large" style="margin-top: 1.5rem; border-radius: 7px;">
38+
<span>GET THE EBOOK</span>
39+
</a>
40+
</div>
41+
</div>
5042

43+
<div class="column is-12-mobile is-6-tablet is-4-desktop" style="padding: 0.75rem;">
44+
<div style="background: #E6E7E8; border-radius: 10px; padding: 2rem 1.5rem; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;">
45+
<div style="margin-bottom: 1.25rem;">
46+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: 48px; height: 48px; color: #3B5EE9;">
47+
<path stroke-linecap="round" stroke-linejoin="round" d="M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z" />
48+
</svg>
49+
</div>
50+
<h3 class="title is-size-4 is-size-3-desktop has-text-grey-darker">
51+
Run OpenFaaS in Production
52+
</h3>
53+
<p class="has-text-weight-light is-size-5 has-text-grey-dark" style="flex-grow: 1;">
54+
Deploy functions to production with autoscaling, SSO/IAM, and GitOps.
55+
</p>
56+
<a href="https://openfaas.com/pricing" class="button is-primary is-large" style="margin-top: 1.5rem; border-radius: 7px;">
57+
<span>VIEW PRICING</span>
58+
</a>
5159
</div>
5260
</div>
61+
5362
</div>
5463
</div>
55-

_includes/landing-page/landing-customers.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<style>
1818
.customer-logo{
1919
filter: grayscale(1);
20+
max-height: 60px;
21+
object-fit: contain;
2022
}
2123
</style>
2224

@@ -29,10 +31,10 @@ <h2 class="title is-size-3 is-size-2-desktop has-text-white" style="margin-botto
2931
</div>
3032

3133
<div class="column is-12" style="padding-top: 0;">
32-
<div class="columns is-multiline" style="margin-top: 0; margin-bottom: 0;">
34+
<div class="columns is-multiline is-mobile" style="margin-top: 0; margin-bottom: 0;">
3335
{% for customer in site.data.customers %}
3436
{% if customer %}
35-
<div class="column is-2-desktop is-4-tablet is-6-mobile" style="padding: 0.5rem;">
37+
<div class="column is-2-desktop is-3-tablet is-4-mobile" style="padding: 0.5rem;">
3638
<figure class="image is-customer-logo" style="margin: 0;">
3739
<img class="customer-logo" src="images/customers/{{ customer.logo }}" alt="{{ customer.name }} logo" title="{{ customer.name }}">
3840
</figure>

_includes/landing-page/landing-description.html

Lines changed: 36 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -4,79 +4,57 @@
44
<h2 class="title is-size-3-tablet is-size-2-desktop has-text-grey-darker">
55
Run your code anywhere with the same unified experience.
66
</h2>
7-
<p class="has-text-weight-light is-size-5 is-size-4-desktop has-text-grey mt-2">
8-
You can deploy OpenFaaS to any Kubernetes cluster
7+
<p class="has-text-weight-light is-size-5 is-size-4-desktop has-text-grey-dark mt-2">
8+
Deploy OpenFaaS to any Kubernetes cluster. Write a new function and ship it to production in minutes, knowing it will scale to meet demand.
99
</p>
10-
<p class="has-text-weight-light is-size-5 is-size-4-desktop has-text-grey mt-2">
11-
Our templates follow best practices meaning you can write and deploy a new function to production within a few minutes, knowing it will scale to meet demand.
12-
</p>
13-
<p class="has-text-weight-light is-size-5 is-size-4-desktop has-text-grey mt-2">
14-
OpenFaaS Pro brings flexible auto-scaling, event-connectors, monitoring dashboards, Single Sign On, RBAC, and direct to engineering support.
10+
<p class="has-text-weight-light is-size-5 is-size-4-desktop has-text-grey-dark mt-2">
11+
OpenFaaS Pro adds autoscaling, event connectors, monitoring dashboards, SSO, RBAC, and direct-to-engineering support.
1512
</p>
13+
<div class="mt-5">
14+
<a href="{{ site.baseurl }}/pricing" class="button is-primary solutions-button">
15+
Learn about OpenFaaS Pro
16+
</a>
17+
</div>
1618
</div>
1719
<div class="column is-12-tablet is-5-desktop is-offset-1-desktop">
1820
<div class="columns is-multiline">
1921
<div class="column is-12 is-spaced-bottom">
20-
<div class="columns">
21-
<div class="column is-3-tablet has-text-centered-mobile">
22-
<p><img src="{{ site.baseurl }}/images/openfaas/template.svg" alt="Reduce Boilerplating"></p>
23-
</div>
24-
<div class="column">
25-
<h2 class="title is-size-4 has-text-grey-darker">
26-
Templates that just work
27-
</h2>
28-
<p class="title has-text-weight-light is-size-5-tablet is-size-4 has-text-grey">
29-
Get code into production within minutes using our templates, or create your own.
30-
</p>
31-
</div>
32-
</div>
22+
<h2 class="title is-size-4 has-text-grey-darker" style="display: flex; align-items: center; gap: 0.5rem;">
23+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: 28px; height: 28px; min-width: 28px; color: #3B5EE9;">
24+
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" />
25+
</svg>
26+
Templates that just work
27+
</h2>
28+
<p class="has-text-weight-light is-size-5-tablet is-size-4 has-text-grey-dark">
29+
Get code into production within minutes using our templates, or create your own.
30+
</p>
3331
</div>
3432

3533
<div class="column is-12 is-spaced-bottom">
36-
<div class="columns">
37-
<div class="column is-centered-mobile is-centered-tablet is-6-mobile is-3-tablet has-text-centered-mobile has-text-grey-darker">
38-
<p><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
39-
<path stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6" />
40-
</svg>
41-
</p>
42-
</div>
43-
<div class="column">
44-
<h2 class="title is-size-4 has-text-grey-darker">
45-
Efficient scaling
46-
</h2>
47-
<p class="title has-text-weight-light is-size-5-tablet is-size-4 has-text-grey">
48-
Your functions can be fine-tuned to scale to match the type of traffic they receive, including to zero to save on costs.
49-
</p>
50-
</div>
51-
</div>
34+
<h2 class="title is-size-4 has-text-grey-darker" style="display: flex; align-items: center; gap: 0.5rem;">
35+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: 28px; height: 28px; min-width: 28px; color: #3B5EE9;">
36+
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15" />
37+
</svg>
38+
Efficient scaling
39+
</h2>
40+
<p class="has-text-weight-light is-size-5-tablet is-size-4 has-text-grey-dark">
41+
Your functions can be fine-tuned to scale to match the type of traffic they receive, including to zero to save on costs.
42+
</p>
5243
</div>
5344

5445
<div class="column is-12 is-spaced-bottom">
55-
<div class="columns">
56-
<div class="column is-6-mobile is-3-tablet is-centered-mobile is-centered-tablet has-text-centered-mobile has-text-grey-darker">
57-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
58-
<path stroke-linecap="round" stroke-linejoin="round" d="M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5" />
59-
</svg>
60-
</div>
61-
<div class="column">
62-
<h2 class="title is-size-4 has-text-grey-darker">
63-
Event-driven workloads
64-
</h2>
65-
<p class="title has-text-weight-light is-size-5-tablet is-size-4 has-text-grey">
66-
Invoke functions through events from Apache Kafka, AWS SQS/SNS, GCP Pub/Sub, RabbitMQ, Postgresql, Cron and MQTT.
67-
</p>
68-
</div>
69-
</div>
70-
</div>
46+
<h2 class="title is-size-4 has-text-grey-darker" style="display: flex; align-items: center; gap: 0.5rem;">
47+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: 28px; height: 28px; min-width: 28px; color: #3B5EE9;">
48+
<path stroke-linecap="round" stroke-linejoin="round" d="M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5" />
49+
</svg>
50+
Event-driven workloads
51+
</h2>
52+
<p class="has-text-weight-light is-size-5-tablet is-size-4 has-text-grey-dark">
53+
Invoke functions through events from Apache Kafka, AWS SQS/SNS, GCP Pub/Sub, RabbitMQ, Postgresql, Cron and MQTT.
54+
</p>
7155
</div>
7256
</div>
7357

74-
<div class="column is-3 solutions">
75-
<a href="{{ site.baseurl }}/pricing" class="button is-primary solutions-button">
76-
Learn about OpenFaaS Pro
77-
</a>
78-
</div>
79-
8058
</div>
8159

8260
</div>

_includes/landing-page/landing-solutions.html

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
<style>
22
@media (max-width: 768px) {
3-
.solutions-cards {
4-
padding-left: 1.5rem;
5-
padding-right: 1.5rem;
6-
}
7-
.solutions-cards .column {
8-
border-bottom: 1px solid #e0e0e0;
9-
padding-bottom: 2rem;
10-
margin-bottom: 1rem;
11-
}
12-
.solutions-cards .column:last-child {
13-
border-bottom: none;
3+
.solutions-section {
4+
display: none;
145
}
156
}
167
</style>
17-
<div class="container">
8+
<div class="container solutions-section">
189
<h2 class="title is-size-3-tablet is-size-2-desktop has-text-grey-darker">
1910
How teams use OpenFaaS
2011
</h2>

_includes/pricing-page/pricing-edge.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</div>
1515
<div class="column is-narrow">
1616
<a href="/edge/" class="button is-primary is-medium">
17-
<span>Learn more about OpenFaaS Edge &rarr;</span>
17+
<span>Learn about Edge &rarr;</span>
1818
</a>
1919
</div>
2020
</div>

_includes/pricing-page/pricing-table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="container mt-6">
1+
<div class="container mt-6 is-hidden-mobile">
22

33
<p class="title is-4">What you get at each tier</p>
44

_sass/openfaas/includes/landing-page/demo-samples.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,16 @@ a.button {
191191
padding: 6px 12px;
192192
border: 1px solid #ccc;
193193
border-top: none;
194+
overflow-x: auto;
195+
196+
pre {
197+
overflow-x: auto;
198+
}
199+
}
200+
201+
.code-samples {
202+
max-width: 100%;
203+
overflow: hidden;
194204
}
195205

196206
.tabs {

_sass/openfaas/includes/landing-page/general.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1+
body.landing-page {
2+
overflow-x: hidden;
3+
}
4+
15
.hero {
6+
overflow-x: hidden;
7+
8+
&.is-small .hero-body {
9+
padding-left: 0;
10+
padding-right: 0;
11+
12+
> .container {
13+
padding-left: 1.5rem;
14+
padding-right: 1.5rem;
15+
}
16+
}
17+
218
.wavy {
319
background: url('../images/openfaas/wave-a.svg'), linear-gradient(to bottom, transparent 46%, $of-grey 46%);
420
background-repeat: no-repeat;

images/customers/curiflow.png

-15.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)